Pi4J / pi4j-example-components

Apache License 2.0
9 stars 6 forks source link

DHT22 temperature and humidity #9

Open FDelporte opened 2 years ago

FDelporte commented 2 years ago

This component to measure temperature and humidity is a "tricky one". It requires very strict timing to get correct results. As it is also a component in the CrowPi, there has already been done quit some experiments to get good results, but at the end both Java and Python didn't deliver very good results and a different approach was chosen with a Linux file.

But in this discussion other approaches are listed with SPI and active polling: https://github.com/Pi4J/pi4j-v2/discussions/191

Can a full functional Java implementation for the DHT22 be included in this example project?

https://components101.com/sensors/dht22-pinout-specs-datasheet