So sánh dth11 và dth22
Looking for low-cost temperature and humidity sensors? Perfect timing! In this blog, we will be talking about DHT11and DHT22, the two most common temperature and humidity modules for Arduino and Raspberry Pi.
Despite being slower than other temperature sensors, they have advantages including low power consumption and excellent long-term stability. Furthermore, relatively high measurement accuracy can be obtained at a very low cost. The single-bus digital signal is output through the built-in ADC, which saves the I/O resources of the control board as well.
These DHT sensors are perfect for home projects like weather stations, environmental automatic control systems, testing/inspection of equipment, farm/garden monitoring systems, and many more!
DHT sensors are made up of two parts, a capacitive humidity sensor, and a thermistor with a basic chip that is responsible for analog to digital conversions.
DHT11 vs DHT22
Before we jump right into their differences, let’s look at an introduction about each temperature sensor first:
Grove – Temperature & Humidity Sensor (DHT11)
The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It is able to detect temperature and also relative humidity which is the amount of water vapour in the air vs the saturation point of water vapour in the air.
DHT11 is the most common temperature and humidity module for Arduino and Raspberry Pi. Thus, widely favoured by hardware enthusiasts for its many advantages. Our DHT11 temperature humidity sensor is based on the new DHT11 module as well!
For comparison, here’s the difference between the new module and the old module:
As you can tell, the new module has a wider humidity range, temperature range and also a lower temperature resolution.
Grove – Temperature & Humidity Sensor Pro
The DHT22 is also known as AM2302 or RHT03, it includes a capacitive humidity sensor and a high precision temperature sensor. It uses dedicated digital module acquisition technology and temperature and humidity sensing technology to ensure high reliability and excellent long-term stability.
The DHT22 also has a capacitive sensing element and a high precision temperature measuring element connected to a high-performance 8-bit microcontroller. Thus, it has the advantages of excellent quality, ultra-fast response, strong anti-interference ability, and high-cost performance
Do note that we also sell the sensor module individually, it is also easy to connect with 3 leads (single bus interface). If you want to connect your sensor with a longer wire, you can easily just add a pull-up resistor.
How are they different?
Therefore, if you want a sensor with a wider range and accuracy, go for the DHT22. If not, the DHT11 should work fine for your projects as well.
Overall, these DHT sensors are basic and slow temperature and humidity sensors that are suitable for beginners and hobbyists looking to do basic data logging. They both use a single digital pin and are a little slow where you can’t query them more than once every second.
Getting started with DHT11 / DHT22 and Arduino
Need help getting started with your DHT11 and DHT22? We’ve got you! Here’s a tutorial on how to get started together with the Arduino together with our DHT modules!
What you’ll need:
If you do not have a Grove Base Shield, you can also directly connect Grove – Temperature and Humidity Sensor to your Arduino / Seeeduino as shown below:
Both DHT11 and DHT22 sensors are sharing this library. No matter which product you are using, make sure that you have made the definition line of the sensor of your board into effect and commented out the definition lines of other specs. The default setting of the library is DHT 22, so you need to change it into manually if you are using DHT11.
For example, if you are using the DHT 11, the definition part of the sensor spec should be:
That is all on the comparison between DHT11 and DHT22 together with a short tutorial on how to get started with these DHT sensors and the Arduino. Both the DHT11 and DHT22 are great low-cost temperature and humidity sensors and you will not be disappointed with both! However, the great minds behind both sensors have recently released a new sensor! Find out more below!
Wonder how other temperature sensors like the DS18B20 or BME280 and many more compare to the DHT temperature sensor? Check out our other guides here!
Introducing the DHT20, a Successor of DHT11
Aosong Electronics has introduced us to a new temperature and humidity sensor module, the DHT20!
The DHT20 comes with a brand-new ASIC chip and several other new internals bringing along all-rounded performance upgrades! Here at Seeed, we will also be upgrading our sensors that use DHT11 to the new DHT20! You can find out more information about the DHT 20 at “Introducing DHT20 Temperature and Humidity Sensor and Comparing it with DHT11!”!