Any reason this won't work on a Raspberry Pi 0?
I don't see the Pi 0 listed in the compatibility table, but sounds to me like it should work - any reason why not?
Nick Edwards
Showing 1 to 1 of 1 (1 pages)
Audible Sensor Readings
Dec 08, 2014
This tutorial will show you how to make the reading of a sensor audible. In this example, we will be using the HC-SR04 Ultrasonic sensor, but it can be applied ..
AM2302 Temp/Humidity Sensor
Oct 20, 2014
Wiring up the sensor
First things first, let’s connect the sensor to the Raspberry Pi.
Red wire connects to pin 1
Black wire connects to pin 6
..
The AM2302 is a wired version of the DHT22, in a large plastic body. It is a basic, low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin (no analog input pins needed). Its fairly simple to use, but requires careful timing to grab data. The only real downside of this sensor is you can only get new data from it once every 2 seconds, so when using our library, sensor readings can be up to 2 seconds old.
Simply connect the red 3-5V power, the yellow wire to your data input pin and the black wire to ground. Although it uses a single-wire to send data it is not Dallas One Wire compatible! If you want multiple sensors, each one must have its own data pin! Adafruit have written an Arduino library with example code
There is a 5.1K resistor inside the sensor connecting VCC and DATA so you do not need any additional pull-up resistors
Technical Data
- 3 to 5V power and I/O
- 2.5mA max current use during conversion (while requesting data)
- Good for 0-100% humidity readings with 2-5% accuracy
- Good for -40 to 80°C temperature readings ±0.5°C accuracy
- No more than 0.5 Hz sampling rate (once every 2 seconds)
- Body size 27mm x 59mm x 13.5mm (1.05" x 2.32" x 0.53")
- 3 wires 23cm long (9")
- 27mm wide x 58.75mm tall x 13.30mm deep
Tutorials
Arduino library and example code