This project is for my own personal use and I take no responibility for any incident of killed plants or flooded apartments.
When I last year got my first apartment with a balcony, I realized that keeping the plats from dying wouldn't be as easy as it seems. After killing off several of them during my first months in Berlin (where the weather, in fact, is pretty warm and sunny during the summer months), I concluded that I would need a watering system.
My little pet project went, as they often tend to do, totally out of hand. After more than a few weekends in lockdown, and a winter break, I ended up with the following solution for my balcony.
The setup of the testing done in January, a "nicer" photo will be uploaded as soon as the snow is gone...
- A pump is pumping water from a bucket (or any water source) to a flower pot with a built-in manual irrigation system.
- A floating meter is attached to the bottom of a bucket. If the bucket would be empty - the pump won't start at all.
- A floating meter is attached to a flower pot. If the floating meter indicate that more water is needed, the pump will start pumping water from the bucket over to the flower pot.
- 1 x RaspberryPi Zero
- 1 x Water pump mini 5V
- 2 x Float switch magnetic NO
- 1 x Relay module 5V
- Speaker cables (I used about 4-5 meters for my setup, and it was more than enough)
- Flower pot with irrigation system
- 1 x bucket
- If you're brave enough and trust that your code is bug-free, a liquid valve or similar could replace the pump.
- If another type of flower pot would be needed, the second floating meter could be exchanged to a soil hygrometer module or a flow sensor.
Created with https://www.circuit-diagram.org/editor/
Please note that I've never studied electrical engineering and that the following circuit diagram could be way off. Use common sense while assembling.
Feel free to use and abuse the code however you like.
🌸 For reading from the GPIO pins, I use my pigpio library.
The pigpio C library (http://abyz.me.uk/rpi/pigpio/)
Install Erlang
sudo apt-get install erlang
Install the pigpio library
sudo apt-get install pigpio
Install pigpio
sudo apt-get install pigpio python-pigpio python3-pigpio
Start the pigpio daemon
sudo pigpiod
Start the web server
make run
An API skeletton is running on port 3000.