element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi Projects
  • Products
  • Raspberry Pi
  • Raspberry Pi Projects
  • More
  • Cancel
Raspberry Pi Projects
Blog Raspberry Pi Home Irrigation system using Node Red
  • Blog
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Raspberry Pi Projects requires membership for participation - click to join
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: lawsonkeith
  • Date Created: 18 Jun 2019 2:54 PM Date Created
  • Views 2849 views
  • Likes 6 likes
  • Comments 1 comment
  • rpiintermediate
  • remotemonitoringcontrolch
  • raspberry_pi_projects
Related
Recommended

Raspberry Pi Home Irrigation system using Node Red

lawsonkeith
lawsonkeith
18 Jun 2019

Introduction

For this project I'm going to use a raspberry Pi to create a home irrigation system using node red to provide the user interface.

 

The build for the control box is covered in my homebrew controller project here:

Raspberry Pi Homebrew controller with Node Red UI

 

So I'm going to use the same controller and use web service to count the number of days without rain in the town that I live.  I'm using the https://openweathermap.org/  site which has a python API that allows your python code to get a weather summary.  With this service you get a free account then you can enter a key into the python API and use it int the pyowm python library.

 

The code to do this is surprisingly straightforwards:

image

So we basically just get a weather summary string and look for the substring 'rain' within it every hour, count up the number of hours and turn on an irrigation solenoid if it's past a threshold.

 

image

The API returns the above forecast in string format.

 

Equipment

I use the control box from my previous project and a cheap micro irrigation kit off ebay.

image

 

Solenoid

I'm using a micro 24V water solenoid that I can control direct from my PiIO PCB.  I've made a small junction box so it can go outside and then put it inline of my micro irrigation hose.  It's important that this isn't kinked.  The solenoid has an in and out feed, I've tie wrapped it here to ensure the hose doesn't kink.

 

image

 

image

Which can be wall mounted near my water butt, the rubber attachment then goes on the water butt as the water source.

image

Next it's just a case of attaching the drain lines and moving them to my most important plants (strawberries and blueberries).

imageimage

Node red

Like the previous example I do all the main processing in a python program and interface to node red using MQTT.  This gives me a user interface with auto and manual irrigation control as well as some basic stats on irrigation usage.

 

image

 

Source code can be viewed here.

https://github.com/lawsonkeith/PiIO/blob/master/examples/hydro_ADIO.py

  • Sign in to reply
  • DAB
    DAB over 5 years ago

    Nice update.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube