1. Sprinkler Remote Garden System (Riego Por Aspersion Remota) on Rpi

Introduction: 1. Sprinkler Remote Garden System (Riego Por Aspersion Remota) on Rpi

Here explain how build a sprinkler system with Rpi and Relay in 5 step

1. Components: RasberryPi 2, Relay

2. Software

3. Set up

4. Test

1. This is very simple example how install your auto sprinkler system or automatic garage door etc... all depend of your imagination, your limits are in your mind. :)

I didn't code any time, you no need to have knowledge of programming or electronic. Let's go.

We need a RaspberryPi 2, B+ or Zero, in this case I have used my RaspberryPi2 and Relay that I both on Internet.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: 2. Here Explain How Build a Sprinkler System With Rpi and Relay in 10 Steps

2. Software

The software used in the chapter is very simple.

1. Apache Web server, sudo apt-get install apache2.

2. Install sqlite, sudo apt-get install libsqlite3-dev build-essential -y

- wget http://stuff.intelligent-isi.com/sprinklers_pi/sp...

3. php5 sudo apt-get install php5

4. the wiringpiri http://wiringpi.com/ is GPIO Interface library for the Raspberry Pi

- http://wiringpi.com/download-and-install/ and follow the steps

- sudo apt-get install git-core

If you get any errors here, make sure your Pi is up to date with the latest versions of Raspbian:

sudo apt-get update

sudo apt-get upgrade

To obtain WiringPi using GIT: git clone git://git.drogon.net/wiringPi

If you have already used the clone operation for the first time, then cd wiringPi git pull origin

Will fetch an updated version then you can re-run the build script below.

To build /install there is a new simplified script:

cd wiringPi ./build


- gpio readall ( this command show you all pins output correspond to your Raspberry Pi, so you can see where do you want to connect your relay output)

6. Sprinklerpi is a web inteface for mobiles very useful and very simple to used, just clone the repository in to your Rpi and make install, follow the instructions on this link, https://github.com/rszimm/sprinklers_pi.git when you install it, go to your RaspberryPi IPaddress follow port 8080 ex. and you will can access to your sparkling system.

Step 2: 1.3 Set Up the Files

3. Set up

Here we have the system with sprinkler automation. example.

and Now a manual example. you will need 3 files.

1. index.php with the images

2. javascript file to control the images and outputs

3. gpio file to control the out puts

Here is the instructable.


Step 3: 1.4 Test

4. Test

Now Enjoy Guys, if you have any question or need help, just contact with me please.


Be the First to Share


    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • First Time Author Contest

      First Time Author Contest

    4 Discussions


    4 years ago

    Nice project,you can logon from internet to control relay,but how far the sprinkle area covers?if you add esp8266,the sprinkle area could be bigger.isn't it?


    Reply 4 years ago

    Hello Gada888 if you mean a bigger range of wifi I don't know, I just connected the electrovalve to the relay so easy and quick you can cover as far as you put the pipes for spring your garden. Good luck


    4 years ago

    Very nice, thanks for sharing!

    Congrats on posting your first instructable! Hope you share many more :)


    Reply 4 years ago

    thanks a lot, I need to dedicate more time for the next :)