Simple, Scalable Raspberry Pi Garden Irrogation

by Tkdwn in Circuits > Raspberry Pi

15350 Views, 100 Favorites, 0 Comments

Simple, Scalable Raspberry Pi Garden Irrogation

temp_1236952860.jpg

This is one of the projects I'm currently working on. The idea behind the project is to build a simple yet scalable and eficiant garden irrogation, using as little resources as posible.

The end product will be a IOT garden project, but I'll update you as i go.

List of Parts

11666964_946512572059083_1107769755_n.jpg
1.3.jpg
solenoid-valve-24v.jpg
51zxwPReQSL._SY300_.jpg
41rfZkmnj5L._SY300_.jpg
temp_1379354983.jpg

1 x Raspberry Pi with raspbian installed

1 x Drip irrigation kit

n x Relays

n x Moisture sensors for Arduino, we will use thair digital output.

n x Solanoid valves or water pumps

*n x - If you use more valve/sensor pairs your irrigation will be more eficiant.

The Python Code and GPIO

pinout.jpe

https://github.com/VBranimir/GardenPIO/blob/master/gardenpio.py

Read the code, it's simple and short.

Change GPIO pins or just add more if you need.

# Set up GPIO pins:

sensor=[27,22,23]

sensorPow = 18

pump=[17,24,25]

# Schedule irrigation function to be run on every day 7 and 22 o'clock, you cen edit or add more times but keep in mind that the more you reed the sensor, the faster it will oxidate.

sched.add_job(irrigation, 'cron', hour='7,21')

Raspberry has no Real Time Clock so it has to be connected to the internet to keep track of time in this case.

Connecting It All

temp_2011670687.jpg
pinout.jpe
temp_341969205.jpg
7.2.jpg

Here are a few notes on connecting the project:

1. Do not put the sensor to near to the irrigation nozzle.

2. Be careful around the highvoltage AC and isolate the relays from the rest of the project.

3. Becouse Raspberry has no analog inputs you can use digital output pin (DO) on sensors controller. The controller has a neat treshold regulator and labeled on the image.

Other options include analog/digital converters and arduino/avr microcontrollers, but i won't use them this time.