My first attemp at creating an arduino project. I developed it for myself to be able to measure the water level in my rain recuperation tank.
Basicly I know the dimensions of my underground tank (cube). By measuring the distance between the sensor and the water, I know the remaining distance to the bottom of the tank. With these variables I'm able to calculate the remaining volume of water.
I also know how much water I spend watering my lawn and plants (automated system). So each LED is equal to 1 watering turn. More then 5 available turns wil just light up all LED's.
My breadboard lay-out is created with a HC-SR04 (4-pin) sonic range meter. But my code (and actual setup) is made with a Parallax Ping)) 3-pin sonic range meter (didn't have the other components available in Fritzing). Basicly I have 1 pin for trigger and echo.
The code isn't perfect yet and is probably over complicated. So any tips for optimization are welcome.
A small video.
With special thanks to @Erel and @inakigarm for the tutorials that pointed me in the right direction.
Basicly I know the dimensions of my underground tank (cube). By measuring the distance between the sensor and the water, I know the remaining distance to the bottom of the tank. With these variables I'm able to calculate the remaining volume of water.
I also know how much water I spend watering my lawn and plants (automated system). So each LED is equal to 1 watering turn. More then 5 available turns wil just light up all LED's.
My breadboard lay-out is created with a HC-SR04 (4-pin) sonic range meter. But my code (and actual setup) is made with a Parallax Ping)) 3-pin sonic range meter (didn't have the other components available in Fritzing). Basicly I have 1 pin for trigger and echo.
The code isn't perfect yet and is probably over complicated. So any tips for optimization are welcome.
A small video.
With special thanks to @Erel and @inakigarm for the tutorials that pointed me in the right direction.
Attachments
Last edited: