Microduino Digital tube temperature and humidity meter(DHT11, SHT10, AM2321)

From Microduino Wikipedia
Jump to: navigation, search
Language: English  • 中文

Objective

This tutorial teach you how to use three temperature and humidity sensor, DHT11, SHT10 and AM2321, and use the digital tube to display result.

Equipment

First Experiment (DHT11)

DHT11 temperature and humidity sensor:

DHT11.jpg

Product overview DHT11 digital temperature and humidity sensor is a compound sensor with calibrated digital signal output. It use dedicated digital module acquisition technology and the temperature and humidity sensor technology, ensure that the product has a very high reliability and excellent long-term stability. Sensor consists of a resistance type moisture element and a NTC temperature measuring element, and connected to a high-performance 8-bit microcontroller. So the product has excellent quality, super fast response, strong anti-interference ability and extremely high performance-price ratio. Every DHT11 sensor in extremely precise humidity calibration laboratory calibration. Calibration factor stored in OTP memory in the form of program, the sensor need invoke these calibration coefficient in the detection model process. Single wire serial interface which make the system integration becomes simple and fast. Super small volume, low power consumption, making it to the class application the best choice for even the most demanding applications. Products for single row pin 4 needle assembly, convenient connection

  • Technical parameters
    • Input voltage: 3.3~5.5V DC
    • Output: Single bus digital signal
    • Measure range: humidity 20-90%RH, temperature 0~50℃
    • Measure accuracy: humidity +-5%RH, temperature +-2℃
    • Resolution ratio: humidity 1%RH, temperature 1℃
    • Interchangeability: Can be completely interchangeable
    • Long term stability: <±1%RH/year
  • Application field
    • Air conditioning test and inspection equipment
    • Vehicle, data recorder
    • Automatic control of consumer goods
    • Weather stations, home appliance
    • Humidity regulator, medical
    • Dehumidifier
  • Characters
    • Relative humidity and temperature measurement
    • All calibration, digital output
    • Long term stability
    • No additional parts
    • Long signal transmission distance
    • Ultra-low power consumption
    • 4 pin installation
    • Completely interchangeable

Schematic

Microduino数码管温湿度计原理图(DHT11).jpg

Pin Table:

Microduino pin Digital tube 74HC595 DHT11 sensor
10(A) Q0
9(B) Q1
1(C) Q2
4(D) Q3
3(E) Q4
6(F) Q5
5(G) Q6
2(DP) Q7
V5 VCC, MR VCC
GND GND, OE GUN
D11 DS
D10 ST_CP
D13 SH_CP
Q7’
D8 12
D4 9
D3 8
D1 6
D2 data

Program

Refer to DHT11Segments.ino

Debug

Step 1: Download DHTlib library, uncompress the library to libraries folder of Arduino IDE, then restart IDE. https://github.com/RobTillaart/Arduino/tree/master/libraries/DHTlib

Step 2: Copy the code to IDE and compile it.

Step 3: Set up the circuit, as follows:

Microduino数码管温湿度计连接图(DHT11).jpg

Step 4: Download the program and run it.

Step 5: Observe the digital tube. Find a hot object to close the temperature sensor or blowing on the sensor, the digital tube will display the result.

Result

After DHT11 sensor near the heat source, the digital tube displayed value will rise, leave the heat source temperature will gradually reduce. Blowing on the sensor, the number will rise too.

Second experiment (SHT10)

SHT10 temperature and humidity sensor:

SHT10.jpg

Main parameters Humidity measurement range: 0~100%RH; Temperature measurement range: -40~+123.8℃; Humidity measurement precision: ±4.5%RH Temperature measurement precision: ±0.5℃

Schematic

Microduino数码管温湿度计原理图(DHT11, SHT10, AM2321).jpg

Pin Tables:

Microduino pin Digital tube pin 74HC595 SHT10 sensor
10(A) Q0
9(B) Q1
1(C) Q2
4(D) Q3
3(E) Q4
6(F) Q5
5(G) Q6
2(DP) Q7
V5 VCC, MR VCC
GND GND, OE GUN
D11 DS
D10 ST_CP
D13 SH_CP
Q7’
D8 12
D4 9
D3 8
D1 6
D2 sck
D5 data

Program

Refer to SHT10Segments.ino

Debug

Step 1: Downlaoad SHT10 library, unzip it to libraries folder of Arduino IDE, and then restart IDE. https://github.com/practicalarduino/SHT1x

Step 2: Copy the code to IDE and compile it.

Step 3: Set up the circuit, as follows:

Step 4: Download the program and run it.

Step 5: Observe the digital tube. Find a hot object to close the temperature sensor or blowing on the sensor, the digital tube will display the result.

Result

After SHT10 sensor near the heat source, the digital tube displayed value will rise, leave the heat source temperature will gradually reduce. Blowing on the sensor, the number will rise too.



Third Experiment (AM2321)

AM2321 temperature and humidity sensor:

AM2321.jpg


Product overview AM2321 digital temperature and humidity sensor is a compound sensor with calibrated digital signal output sensor. Using special technology of collecting the data of temperature and humidity, ensure that the product has a very high reliability and excellent long-term stability. Includes a capacitive moisture sensor element and a high precision integrated temperature measuring element, and connected to a high performance microprocessor. The product has excellent quality, super fast response, strong anti-interference ability and extremely high performance-price ratio. AM2321 communication mode uses both mode, single bus and standard I2C communication mode. Standard single bus interface which make the system integration becomes simple and fast. Super small volume, low power consumption, signal transmission distance of 20 meters which make it to be the a best choice for all kinds of application, even the most demanding applications. I2C communication mode with a standard communication sequence, the user can be directly hung on the I2C bus, no additional wiring, simple to use. Two kinds of communication mode both used directly output after temperature compensation of humidity, temperature and the CRC check, such as digital information, users no need do the secondary calculation of digital output, no need to compensate the temperature humidity, accurate temperature and humidity information can be got. Two kinds of communication mode are free to switch, users can choose, easy to use. Product has 4 wires, convenient connection, special packaging format can be provided according to user's requirements.

Application field Air conditioner, dehumidifier, test and inspection equipment, consumer goods, automotive, automatic control, data recorder, weather stations, household appliances, humidity control, medical, and other relative humidity control.

Product advantages Completely interchangeable, the cost is low, long-term stability, relative humidity and temperature measurement, signal transmission distance long, digital signal output, accurate calibration, extremely low power consumption, standard single bus digital interface, standard I2C bus digital interface, communication can be free to choose.

Schematic

Microduino数码管温湿度计原理图(AM2321).jpg

Pin Tables:

Microduino Pin Digital Pin 74HC595
10(A) Q0
9(B) Q1
1(C) Q2
4(D) Q3
3(E) Q4
6(F) Q5
5(G) Q6
2(DP) Q7
V5 VCC, MR
GND GND, OE
D11 DS
D10 ST_CP
D13 SH_CP
Q7’
D8 12
D4 9
D3 8
D1 6

Program

Refer to AM2321Segments.ino

Debug

Step 1: Download AM2312 library, uncompress it to libraries folder of Arduino IDE, and then restart IDE. https://github.com/wangdong/AM2321

Step 2:Copy the code to IDE and compile it.

Step 3:Set up the circuit, as follows:

Microduino数码管温湿度计连接图(AM2321).jpg

Plug in the Microduino-Core and Microduino-FT232R to Microduino-Weatherstation module.

Step 4:Download the program and run it.

Step 5:Observe the digital tube. Find a hot object to close the temperature sensor or blowing on the sensor, the digital tube will display the result.


Result

After AM2321 sensor near the heat source, the digital tube displayed value will rise, leave the heat source temperature will gradually reduce. Blowing on the sensor, the number will rise too.


Video