Each LED is tied to an if statement which is checking for different levels of humidity. As the target humidity is about to be reached, more LEDS are illuminated.
Scale:
1 | 10% Relative Humidity |
2 | 15% Relative Humidity |
3 | 20% Relative Humidity |
4 | 25% Relative Humidity |
5 | 30% Relative Humidity |
6 | 35% Relative Humidity |
7 | 40% Relative Humidity |
8 | 45% Relative Humidity |
9 | 50% Relative Humidity |
10 | 55% Relative Humidity |
Each different level in the chart shown above lights the corresponding number of LEDs on the LED bar graph.
In programming the device I used an Arduino library that can be found here: https://brainy-bits.com/blogs/tutorials/dht11-tutorial. This just makes the whole process faster and easier to read and make changes to.
All code can be found in the Details section of the project.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.