Arduino temperature and humidity sensors
Currently I am expanding my sensor network with various environmental sensors. As a base I rely on Arduinos which are connected via KNX and provide data from temperature and humidity sensors.
As a sensor I have decided for a DHT22 temperature sensor. It is cheap, very precise and there is a ready Arduino library so that the query of the temperature and humidity values are relatively simple. You can install the required Arduino library directly from your Android IDE.
Circuit diagram
Arduino | DHT22 |
---|---|
GND | GND (PIN 4) |
Digital Input (Pin 4) | Data (PIN 2) |
VCC | VCC (PIN 2) |
Accuracy and calibration
As for accuracy. It must always be calibrated. There are no sensors that do not have to be calibrated. Even if they are pre-calibrated, they have to be recalibrated at the latest after 1-2 years as the properties of the components change slightly over time. It should also calibrate as close as possible in the later range of values. As a reference to calibrate the temperature I use the temperature measuring device GTH 175 PT from Greisinger. He “should be” very accurate for this price. The address where you can buy the measuring device can be found in my component list.
I will carry out the humidity via a saturation measurement. Simply fill a glass with saline. Some water on it. Put the bag together with the sensor and seal the air tight. After 24 - 48 hours and a temperature from approximately 20°C, an air humidity of 75.4% should be adjusted.
On average, my deviation from the reference point was between -0.1 ° C and +0.1 ° C, with 13 of 14 sensors. A sensor had a deviation of +0.3 ° C. So no bad values. The humidity was between 0% and 8%.
Power consumption
Mode | Consumption |
---|---|
Deep Sleep | 1.20mA (3,63mW) |
Measurement (min) | 4.73mA (15.60mW) |
Measurement (max) | 7,50mA (24.75mW) |
Here you can get better results if you:
1. You disable the “Progress” LED in the source code.
2. You disable the power LED. For this, however, one has to cut the cable on the conductor with a cutter knife.
Installation
On the last picture you can see a small slit on the bottom for better air circulation.
Component list
- DHT22 AM2302 Temperatursensor
- GTH 175 PT from Greisinger
- 10kOhm resister
- Siemens bus coupler 5WG1117-2AB12
- Arduino Pro Mini 3.3V
- Pin strip
- Pin Header 6-polig
- Pin Header 5-polig
- Pin Header cable 10cm
- Merten MEG4450-0319 central plate
Arduino Sourcecode
|
|