Simple, scalable Raspberry pi garden irrogation

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.

Step 1: List of parts

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.Simple, scalable Raspberry pi garden irrogation

Step 2: The Python code and GPIO

The Python Code and GPIO

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.

Step 3: Connecting it all

Connecting It All

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 high voltage AC and isolate the relays from the rest of the project.

3. Because 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.

 

Source: Simple, scalable Raspberry pi garden irrogation


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top