DHT22 readings not smooth
Moderators: grovkillen, Stuntteam, TD-er
DHT22 readings not smooth
Hi all
I am new to ESPEasy.
I have connected a DHT22 to GPIO5 and i have linked it to Domoticz.
All look fine except that the readings look a bit "choppy", i expected a much smoother graph that this, readings are updated every 30sec.
Anyone that can shed some light on this?
I am new to ESPEasy.
I have connected a DHT22 to GPIO5 and i have linked it to Domoticz.
All look fine except that the readings look a bit "choppy", i expected a much smoother graph that this, readings are updated every 30sec.
Anyone that can shed some light on this?
- Attachments
-
- ESPEasy-Domoticz DHT22-160613.jpg (70.11 KiB) Viewed 14589 times
Re: DHT22 readings not smooth
Hi
How are you powering your dht11? The sensor really wants 5 volts. I had one doing something similar and I was trying to run it on 3.3volts.
Running the sensor on 5 volts won't affect your Esp because the output of the sensor is open drain (thus the required pull up resistor). Just make sure the pull up resistor pulls up to 3.3v and the sensor power is 5v.
Regards
Dave
How are you powering your dht11? The sensor really wants 5 volts. I had one doing something similar and I was trying to run it on 3.3volts.
Running the sensor on 5 volts won't affect your Esp because the output of the sensor is open drain (thus the required pull up resistor). Just make sure the pull up resistor pulls up to 3.3v and the sensor power is 5v.
Regards
Dave
Re: DHT22 readings not smooth
Same thing for me... It's in the tolerances for the DHT22:
Accuracy humidity +-2%RH(Max +-5%RH); temperature +-0.2Celsius
Resolution or sensitivity humidity 0.1%RH; temperature 0.1Celsius
Repeatability humidity +-1%RH; temperature +-0.2Celsius
If you take the same measure several times, it could vary from 0.2°c and % humidity. The resolution also makes it so that if you are right between two steps (+-19.55°c), you could read 19.5 or 19.6...
You can still smooth the measure in software with node-red for example if you use it.
Accuracy humidity +-2%RH(Max +-5%RH); temperature +-0.2Celsius
Resolution or sensitivity humidity 0.1%RH; temperature 0.1Celsius
Repeatability humidity +-1%RH; temperature +-0.2Celsius
If you take the same measure several times, it could vary from 0.2°c and % humidity. The resolution also makes it so that if you are right between two steps (+-19.55°c), you could read 19.5 or 19.6...
You can still smooth the measure in software with node-red for example if you use it.
Re: DHT22 readings not smooth
I run it on 3.3V without problem... But if you go below this then you don't get any reading. Measurement are acurate or are not provided.dduley wrote:Hi
How are you powering your dht11? The sensor really wants 5 volts. I had one doing something similar and I was trying to run it on 3.3volts.
Running the sensor on 5 volts won't affect your Esp because the output of the sensor is open drain (thus the required pull up resistor). Just make sure the pull up resistor pulls up to 3.3v and the sensor power is 5v.
Re: DHT22 readings not smooth
I have something weird. With the ESP8266 my DHT22 Humidity readings are 15-20% off...
See: http://www.emoncms.org/Edegem/dht22comp
Any idea why the open energy monitor ones give another result? They're using the same DHT library...
See: http://www.emoncms.org/Edegem/dht22comp
Any idea why the open energy monitor ones give another result? They're using the same DHT library...
Re: DHT22 readings not smooth
Last edited by harry56 on 27 Mar 2018, 15:47, edited 1 time in total.
Re: DHT22 readings not smooth
I have the same output, in detail choppy +- 0.1 C°. Probably as mentioned related to sensor accuracy.
My friend recommended me to try "HTU21D Temperature and Humidity Sensor" should be more accurate so will see.
I have two identical dht22 sensors, difference between temperature 0.5 but humidity 8.
My friend recommended me to try "HTU21D Temperature and Humidity Sensor" should be more accurate so will see.
I have two identical dht22 sensors, difference between temperature 0.5 but humidity 8.
-
- Normal user
- Posts: 25
- Joined: 29 Apr 2016, 06:54
Re: DHT22 readings not smooth
I had to give up on them. Try the BME280. It works really well.
Re: DHT22 readings not smooth
Ah, ok didn't know about this one, Im gonna try it out
Re: DHT22 readings not smooth
It's another name for the SI7021.
Far more precise then the DHT22 series sensors.
I've tested some, running nicely.
If you want a really precise sensor you'll have to pay a lot more money.
For that i'd take the Sensirion SHT11 or SHT15.
Swiss made precision sensor, keep your wallet ready
There are cheaper versions on AliExpress, but i doubt if they are as precise as the genuine ones.
Far more precise then the DHT22 series sensors.
I've tested some, running nicely.
If you want a really precise sensor you'll have to pay a lot more money.
For that i'd take the Sensirion SHT11 or SHT15.
Swiss made precision sensor, keep your wallet ready

There are cheaper versions on AliExpress, but i doubt if they are as precise as the genuine ones.
Regards
Shardan
Shardan
Who is online
Users browsing this forum: Bing [Bot] and 11 guests