0% found this document useful (0 votes)
50 views2 pages

DHT22/AM2302 Digital Temperature & Humidity Sensor: Pi - Scratch Interface Software Download From Our Web Site

This document provides instructions for using a DHT22/AM2302 digital temperature and humidity sensor with a Raspberry Pi. It describes downloading software and libraries, running test programs, and obtaining sensor readings from the DHT22 in Scratch programming. The sensor module measures temperature from -40°C to 80°C and humidity from 0-100% RH with ±2% accuracy. It connects to the Pi via a GPIO pin and requires a power supply of 3.5-6V DC.

Uploaded by

jose luis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views2 pages

DHT22/AM2302 Digital Temperature & Humidity Sensor: Pi - Scratch Interface Software Download From Our Web Site

This document provides instructions for using a DHT22/AM2302 digital temperature and humidity sensor with a Raspberry Pi. It describes downloading software and libraries, running test programs, and obtaining sensor readings from the DHT22 in Scratch programming. The sensor module measures temperature from -40°C to 80°C and humidity from 0-100% RH with ±2% accuracy. It connects to the Pi via a GPIO pin and requires a power supply of 3.5-6V DC.

Uploaded by

jose luis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DHT22/AM2302 Pi_Scratch interface software download from our web site

http://www.pridopia.co.uk/rs-pi-set-scratch.html
Digital Temperature & Humidity Sensor

1. broadcast "DHT22INIT" +"27" GPIO number


2. in Sensing --> Slider , you will see the
"DHT22-27Humidity" & "DHT22-27Temp" in the list

Type: AM2302 /DHT22


Voltage range: 3.5V-6V DC Humidity range: 0%-100%RH
Temperature range: -40°C to 80°C
Humidity accuracy: ±2RH% Temperature accuracy: ±0.5°C
Size: 3*1.3*0.6 cm
DHT22 python program
"sudo python dht22.py 4 " 4 is GPIO number (P1 pin7 GPIO 4) you can use other
GPIO pin number

Download GPIO library


https://pypi.python.org/pypi/RPi.GPIO GPIO library
GPIO library - RPi.GPIO-0.5.3a.tar.gz

Install python , library and run the test program


# sudo apt-get install python-dev
# wget http://www.pridopia.co.uk/pi-pgm/RPi.GPIO-0.5.3a.tar.gz
# gunzip RPi.GPIO-0.5.3a.tar.gz
# tar –xvf RPi.GPIO-0.5.3a.tar
# cd RPi.GPIO-0.5.3a
# sudo python setup.py install

Demo program download from our web site


http://www.pridopia.co.uk/pi-dht22-temp.html

Package Content
1x DHT22 /AM2302 sensor module
3x 20cm male to male cable
1x manual

You might also like