mmalmsten / PlantWatcher

๐ŸŒธ PlantWatcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐ŸŒต โžก๏ธ ๐ŸŒธ PlantWatcher

This project is for my own personal use and I take no responibility for any incident of killed plants or flooded apartments.

๐Ÿ’ก Background

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.

L298 DC Motor Driver Board

The setup of the testing done in January, a "nicer" photo will be uploaded as soon as the snow is gone...

๐ŸŽจ Design

  1. A pump is pumping water from a bucket (or any water source) to a flower pot with a built-in manual irrigation system.
  2. A floating meter is attached to the bottom of a bucket. If the bucket would be emptyโ€Š-โ€Šthe pump won't start at all.
  3. 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.

Design

๐Ÿ›ฐ Hardware

Notes

  1. If you're brave enough and trust that your code is bug-free, a liquid valve or similar could replace the pump.
  2. 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.

Hardware assembly

Design

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.

๐Ÿ‘ฉโ€๐Ÿ’ป Software

Feel free to use and abuse the code however you like.

๐ŸŒธ For reading from the GPIO pins, I use my pigpio library.

Prerequisites

The pigpio C library (http://abyz.me.uk/rpi/pigpio/)

Getting started

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.

About

๐ŸŒธ PlantWatcher


Languages

Language:Erlang 92.8%Language:Makefile 7.2%