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 Automatic Arduino Garden-Watering Project
  • 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: sasquatch84
  • Date Created: 7 Aug 2017 4:35 PM Date Created
  • Views 786 views
  • Likes 2 likes
  • Comments 7 comments
  • gogreench
Related
Recommended

Automatic Arduino Garden-Watering Project

sasquatch84
sasquatch84
7 Aug 2017

This is the first entry of my first project since joining here.  I work a lot and would like to have my garden watered by my Arduino.  I want the water to turn on every morning at the same time for the same duration. 

As far as parts go, I have an adafruit water valve, 4 module relay, Arduino Uno for prototyping and a nano for the finished product. 

It appears my first job is to figure out how to make the Arduino activate the solenoid at the same time.  I could ise a clock of some kind, but I could also have it turn on with the rising of the sun. 

Both ideas seem like they are possible for my level of skill.  Decisions, decisions.

  • Sign in to reply

Top Comments

  • ntewinkel
    ntewinkel over 6 years ago +2
    A few years ago I built a similar watering setup for my greenhouse, but using pumps. Mine has 2 relays - 1 for the water pump, and 1 for a fertilizer pump. It would run the fertilizer pump at the start…
  • dougw
    dougw over 6 years ago +1
    Cool project. It will be interesting to watch it develop. Be sure to ask questions here if you run into snags. Thanks for sharing.
  • DAB
    DAB over 6 years ago +1
    I suggest you start small and build up capability as you get experience with the project. DAB
  • ntewinkel
    ntewinkel over 6 years ago in reply to sasquatch84

    Hi Clinton,

     

    So sorry this completely slipped my mind for a few weeks!

     

    I've uploaded it: greenhouse_water_fertilizer_basic.ino

     

    It's not super accurate for time, but by the 80/20 rule works plenty well enough image

    At quick glance it looks like the start time is offset by the run times, but you could adjust the wait time to a number that subtracts the run times.

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • sasquatch84
    sasquatch84 over 6 years ago in reply to ntewinkel

    I'd love to see the sketch!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • adiclepcea
    adiclepcea over 6 years ago

    I did a project that might help you with some ideas.

    It uses however an older version of Arduino IDE.

    Arduino Multiple Timer. Day Based and Alarm Based: 3 Steps

    With it you can use up to 6 timers and set up the period they run for and also choose the days of the week when they run.

    It uses a DS1307 timer but other compatible timers have been used for this project with success.

     

    HTH.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 6 years ago in reply to ntewinkel

    oh ps, to avoid using a clock or having to set the time, the timer starts with a watering cycle upon startup, and then repeats that every 24 hours - or whatever interval you set for it. One year I tried every 6 hours and as it turns out, tomatoes don't like swampy conditions image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 6 years ago

    A few years ago I built a similar watering setup for my greenhouse, but using pumps.

    Mine has 2 relays - 1 for the water pump, and 1 for a fertilizer pump.

    It would run the fertilizer pump at the start of the watering cycle to inject fertilizer in with the water, and shutting the fertilizer off early so that none of it was left in the lines (to avoid algae and such).

    The timing doesn't have to be accurate, so the software just relies on the internal clock. That seemed to stay close enough on time that I didn't notice any deviation throughout the watering season.

    I use 120v (not really safe for beginners) but it can be done with lower safer voltages too if you choose 12v pumps, for example.

     

    I originally had much bigger plans, like tracking sunlight, humidity, temperature, soil moisture, and the idea was to only water the plants when the soil moisture was down to a certain point. Ultimately I ran into issues with sensor numbers being unreliable, likely due to wire lengths, so I settled for having it just be a timer.

     

    I like the water valve you mentioned - it sounds like you could use the same 9v supply to run the Arduino as well as open the valve. And no need for a water barrel and pump!

     

    Let me know if you want the source code for that, I'd be happy to share. I don't have schematics or anything, but it's really just as simple as "connect pin A to relay 1, connect pin B to relay 2). And you don't even need relay2. It was mostly unused in my setup for several years. In any case, it might give you some starting ideas.

     

    Cheers,

    -Nico

    • Cancel
    • Vote Up +2 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