element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs 1 - Introduction
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ge0rgej
  • Date Created: 26 Aug 2013 1:14 PM Date Created
  • Views 1531 views
  • Likes 0 likes
  • Comments 12 comments
  • python
  • piface_digital
  • homeautom8
  • raspberry_pi
  • twitter
  • home_automation
  • iautom8
  • homeautom8.com
Related
Recommended

1 - Introduction

ge0rgej
ge0rgej
26 Aug 2013

Hi

 

 
Having been hooked on the Raspberry Pi for my home media system for some time now, and having an unhealthy obsession with Home Automation, I decided to investigate how the Raspberry Pi could be useful in my current Home Automation setup.

 

 
When I came across the PiFace addon for the Raspberry Pi it became clear that the possibilities of using the Raspberry Pi and PiFace together are almost endless. Couple this together with the fact that I am an Electrical Design Engineer (by day) and a programming dabbler (by night) its not hard to see how this project was almost inevitable. There are very few things around our home that are not automated, but Garden Irrigation is one of them,  …....  and so the Garden Irrigation Project was conceived.

 

 
The purpose of this project is to use rainwater harvesting to fill two water tanks, used in conjunction with a mains water solenoid valve to fill the tanks if no rain water is available. The fill state of the tanks will be detected and controlled by the Raspberry Pi and Piface .... and under the right conditions a water pump will be activated to start watering the garden. System status will be reported back via Twitter alerts, with the irrigation system ultimately being activated by an iPhone app or Cloud Scheduling.

 

 
The following Blogs in this project will detail;
 
 
  • ·     Section 2 - Equipment needed to create this project
  • ·     Section 3a - Setting Up The Raspberry Pi
  •       Section 3b - Setting Up PiFace Digital
  • ·     Section 4 - Exploring PiFace Digital
  •       Section 5 - PiFace Digital Inputs & PiFace Emulator
  •       Section 6 - Monitoring The Float Switches With Python
  • ·     Section 7a - Preparing For Twitter
  • ·     Section 7b - Setting Up SuperTweet
  •       Section 7c - Irrigation Alerts With Python
  •       PiFace Outputs
  • ·      How to activate the Garden Irrigation system via an iPhone app & Cloud Scheduling
  •       Schematic & Connections
  •       Constructing The Project

 

You are more than welcome to comment, correct me on my mistakes and add your input as this project progresses.
I will try my best to update this Blog on a weekly basis.

PLEASE NOTE : This guide is designed for total newcomers to both the Raspberry Pi and Linux and whilst some of the programming blogs featured later on in this project will hopefully be useful to more advanced users please be mindful when the 'obvious' questions start being posted ..... We all started at the beginning at some point in time.
 
Disclaimer
WARNING - No Adults, Children or Puppies were harmed during the creation of this project. However, whilst the
majority of circuits and voltages being used in this project are either No Volt or ELV - mains voltages are still present.
Should you be unaware of the electricity regulations for your local jurisdiction, and the connection of mains
voltages, please either consult a qualified electrician and / or have a qualified electrician carry out these works for you.
I am unable to accept any responsibility for ( i )  electric shock / death, ( ii ) drowning,  ( iii ) flooding .... or your partner
divorcing you due to the amount of time and money you are about to spend on this project.

 

  • Sign in to reply

Top Comments

  • mcb1
    mcb1 over 12 years ago +1
    George It sounds like a great project. For any sort of external interfacing, I've always prefered switching grounds (ie pull or hold the input LOW), as the worst that can happen if the cable gets shorted…
  • ge0rgej
    ge0rgej over 12 years ago in reply to bithead942 +1
    bit head You are right this is exactly what I am putting together. I have shown the need for 4 floats but only 2 off them are used for activation .... all four however are used to provide status on how…
Parents
  • bithead942
    bithead942 over 12 years ago

    Great project, George.  I'm looking forward to reading the rest. 

     

    I've done something similar with an Arduino Mega and a PC.

    http://bithead942.wordpress.com/2012/09/20/automated-irrigation-system-take-2/

     

    I"m always looking to evolve my solution, so I'm hoping you to borrow some ideas from you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ge0rgej
    ge0rgej over 12 years ago in reply to bithead942

    bithead

     

    what a great project.

     

    You have achieved a lot more that I am setting out to do. Your input on my garden irrigation project would be very welcome.

     

    The next few posts are boring stuff for newcomers but it will hopefully get a bit more interesting after that. Out of interest what ideas are you interested in borrowing ?

     

    George

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • bithead942
    bithead942 over 12 years ago in reply to ge0rgej

    Thanks so much.

     

    I have some ideas around collecting rain water in barrels and then using a pump and hose to later perform irrigation.  I was thinking of using some microcontroller technology to intelligently determine the best time to use the water, detect how much water is left in the barrel, etc.  Looking at your parts list, I thought it might be close to what you are doing. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • bithead942
    bithead942 over 12 years ago in reply to ge0rgej

    Thanks so much.

     

    I have some ideas around collecting rain water in barrels and then using a pump and hose to later perform irrigation.  I was thinking of using some microcontroller technology to intelligently determine the best time to use the water, detect how much water is left in the barrel, etc.  Looking at your parts list, I thought it might be close to what you are doing. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • ge0rgej
    ge0rgej over 12 years ago in reply to bithead942

    bit head

     

    You are right this is exactly what I am putting together. I have shown the need for 4 floats but only 2 off them are used for activation .... all four however are used to provide status on how full / empty the tanks are

     

    Determining the best time to use the water is done via a basic rain sensor, but once I have this up and running I can look at something a bit more reliable like weather stations etc

     

    keep watching - hopefully the project will be of use to you

     

    George

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • bithead942
    bithead942 over 12 years ago in reply to ge0rgej

    George,

        At first, I considered a weather station as well, but later discovered there were Internet sites that provided RSS feeds with the information I needed.  I developed a basic XSLT file to filter the XML stream to give me only the data values I needed and then wrote some code to read in the values and take action.  I've not tried it on the Pi, but it seems doable.  Thoughts?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ge0rgej
    ge0rgej over 12 years ago in reply to bithead942

    bit head

     

    I also considered an RSS feed, I believe this can be done via weather.com but thought this would probably be a bit too advanced for my programming capabilities. Definately interested in implementing this along the way though

     

    George

    • 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