SMART RAIN BARREL WITH RASPBERRY PI
by jonasoosterlinck in Circuits > Raspberry Pi
531 Views, 5 Favorites, 0 Comments
SMART RAIN BARREL WITH RASPBERRY PI
A device that knows how much water is in the barrel + checks the temperature of the water!
Supplies
- rain barrel
- hc-04 ultrasonic sensor
- temperature sensor
- lcd 2X16
- cabels
- rasberry pi 4
Connecting the Sensors to the Pi
!!!! temp sensor on 3.3V
!!!! hc-04 on 5V
Connect to the Pi With Visual Studio Code
Explaining the Code
- we need to create a formula to calculate the amount of water in the barrel with the height of the water.
- we want to see the temperature so we need to activate the bus in the config of the pi!
- we want to send al the information to the LCD display!