element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs 1 - Introduction
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ge0rgej
  • Date Created: 26 Aug 2013 1:14 PM Date Created
  • Views 442 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 10 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 10 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…
  • ge0rgej
    ge0rgej over 10 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
  • bithead942
    bithead942 over 10 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 10 years ago in reply to Former Member

    Abie

     

    keep watching this blog - hopefully something may be of use to you

     

    George

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ge0rgej
    ge0rgej over 10 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
  • Former Member
    Former Member over 10 years ago

    I am only starting on this Raspberry thing and I like your irrigation idea. How about sharing some of your micro electronics knowledge with me. I am looking for an alternative controlling system for my irrigation system.

    • 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 © 2023 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