Författare:
Per Stenebo
Per Stenebo
Skapad:
2014-07-11 20:47:20
2014-07-11 20:47:20
Ändrad:
2019-11-10 21:01:07
2019-11-10 21:01:07
Hum. & Temp. sensor - RHT03
Beskrivning: The RHT-03 is a low cost humidity and temperature sensor with a single wire digital interface. The sensor is calibrated and doesn't require extra components so you can get right to measuring relative humidity and temperature.
Features:
• 5V Input
• 1-1.5mA measuring current
• 40-50 uA standby current
• Humidity from 0-100% RH
• -40 - 80 degrees C temperature range
• +-2% RH accuracy
• +-0.5 degrees C
Installation på BeagleBone Black Rev. B med Ångström Linux
cat /etc/angstrom-version Angstrom v2012.12 (Core edition)
git clone https://github.com/adafruit/Adafruit_Python_DHT.git Cloning into Adafruit_Python_DHT... error: while accessing http://github.com/adafruit/Adafruit_Python_DHT.git/info/refs fatal: HTTP request failed
nano .gitconfig
[http] sslVerify = true sslCAinfo = /etc/ssl/certs/ca-certificates.crt [user] email = me@example.com name = myname
Klona med git igen.
cd Adafruit_Python_DHT
opkg install task-native-sdk istället för apt-get install build-essential
python setup.py install
Traceback (most recent call last): File "setup.py", line 1, in from ez_setup import use_setuptools File "/home/root/Adafruit_Python_DHT/ez_setup.py", line 20, in import zipfile ImportError: No module named zipfile