Skip to content

automatically monitor plants and water as necessary, keep history and draw a chart of moisture and waterings

Notifications You must be signed in to change notification settings

frantisekbrabec/auto-waterer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto watering system using Raspberry Pi

This is a software package for a Raspberry Pi based automatic watering system built with an analog moisture sensor. The software design supports up to four independently managed plants (each handled by one sensor and one pump). Besides monitoring moisture and watering as needed it also captures measurements and pump activity in a database and charts stats in a web diagram. Hardware is only covered to clarify compatibility, this is not a step-by-step guide on wiring your system (see for example here for a guide on wiring everything together).

Also provided are 3d print models for the enclosure of the control unit as well as an adapter to spread water evenly over the surface of the pot.

Software

Starting from Raspbian Lite OS install perform the following steps:

  • raspi-setup - configure wifi, locale and in Interfacing Options enable I2C
  • apt-get install sqlite3
  • apt-get install libsqlite3-dev
  • apt-get install i2c-tools
  • apt-get install python-smbus
  • pip install pysqlite
  • pip install flask
  • pip install adafruit-ads1x15

Unpack this software to /home/pi

To detect moisture and possibly water the plant periodically, run:

crontab -e

Add this line to the bottom to run every 2 hours

* */2 * * * (cd /home/pi/pi_auto_waterer/ || exit 1; sudo python ./auto_water.py)

To start the web server automatically, add the following line to /etc/rc.local

python /home/pi/pi_auto_waterer/web_plants.py &

Edit config.json to match your hardware configuration (e.g., GPIO assignments) as well as the watering parameters appropriate for your plants. The stats web site is available at the root of your device, ie. http://<IP address of your Pi here>

Hardware

This software is built for the following hardware. Since a single AD converter can handle up to four separate analog signals, it is easy to modify the hardware configuration by adding sensors and using a relay with more channels to support up to four plants.

Box

You can 3d-print the box to put everything in using the included STL files. You will need the following fasteners:

About

automatically monitor plants and water as necessary, keep history and draw a chart of moisture and waterings

Resources

Stars

Watchers

Forks

Packages

No packages published