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
Robotics
  • Technologies
  • More
Robotics
Forum Automatic irrigation system using pic microcontroller
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Robotics to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 22 replies
  • Answers 15 answers
  • Subscribers 62 subscribers
  • Views 4473 views
  • Users 0 members are here
Related

Automatic irrigation system using pic microcontroller

akashm.m
akashm.m over 7 years ago

Any one pls tell me how to build a automatic irrigation system using pic microcontroller. & It's programming

  • Sign in to reply
  • Cancel

Top Replies

  • gadget.iom
    gadget.iom over 7 years ago in reply to jw0752 +9 suggested
    I totally agree with what jw0752 is saying here. The community is very supportive, and your experiences will help others far more than you might immediately think. Where other on-line communities might…
  • jw0752
    jw0752 over 7 years ago in reply to urkraft +7 suggested
    Hi Raymond, I have to disagree with you a little. Everyone who has ever made anything NEW has been through the same process as you have described. I respect you for your in process posting of your results…
  • mcb1
    mcb1 over 7 years ago in reply to urkraft +7 suggested
    Am quite sure that is the problem. Adding hysterisis to the relay will help stop it destroying itself. This is one of the biggest advantages of adding any form of controller BUT it can be achieved by capacitors…
  • urkraft
    0 urkraft over 7 years ago

    I am not acquainted with the pic microcontroller, but i have made an automatic irrigation system for my olive tree with only a few components:

    image

    You only need the following componets:

    - 1 5v 1A DC power supply

    - 1 12v 1A DC power supply (https://www.kjell.com/no/produkter/elektro-og-verktoy/stromforsyning/stromforsyning/ac-dc/fast-utgangsspenning/ac-dc-stromadapter-12-v-(dc)-12-w-p44382)

    - 1 soil moisture sensor (https://www.kjell.com/no/produkter/elektro-og-verktoy/arduino/moduler/luxorparts-jordfuktmaler-p87941)

    - 1 100 ohm 1/4w resistor

    - 1 10k 1/4w resistor

    - 1 30 ohm 1/4w resistor

    - 2 1n4148 diodes

    - 1 IRF520N MOSFET (https://www.kjell.com/no/produkter/elektro-og-verktoy/elektronikk/halvledere/transistorer/luxorparts-transistor-mosfet-irf520-5-pk--p90630?gclid=EAIaIQobChMIrsPMzIbh1gIVxLUYCh2xUAiqEAQYASABEgJWSfD_BwE)

    - 1 VR05R241A single pole DIL relay (https://www.kjell.com/no/produkter/elektro-og-verktoy/elektronikk/electromechanics/releer/1-polet-dil-rele-5-v-dc-0-5-a-30-v-p36110)

    - 1 pump (https://www.kjell.com/no/produkter/elektro-og-verktoy/elektronikk/electromechanics/motorer/luxorparts-vaeskepumpe-peristaltisk-p90782)

     

    Another suggestion for a full blown irrigation system based on the Arduino is well documented in "Make: Getting Started with Arduino" (https://www.amazon.co.uk/Make-Electronics-Prototyping-Publisher-Paperback/dp/B00SLUYAS4/ref=sr_1_3?ie=UTF8&qid=150746740… )

     

    Good luck!

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • urkraft
    0 urkraft over 7 years ago in reply to urkraft

    I have finished testing my design and have concluded that it should not be used. It is not stable. I cannot find any documentation for the moisture sensor that i have used with specifications for the D0 output pin, but it appears that it is a bad choice for controlling the circuitry i built around it. I have tried different variations of circuitry to control with the D0 output pin, but have been unable to get them to work reliably. My latest attempt is based on the A0 output pin input to the A0 pin of an Adafruit Feather HUZZAH, and that solution appears more promising (although i did not want to have to use anything so extravagant). This latest attempt is still being tested and i do not plan on repeating my previous mistake of publishing detailed information about it before it is fully developed and tested - and certainly not unless someone expresses an interest in it.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • the48sicks
    0 the48sicks over 7 years ago in reply to urkraft

    I’ve often tried things and not had them work first time around, only having to go back and try something different.

     

    The fact that you stuck with it and resolved your issue is more important than your project not working from the start. That is part of the fun

     

     

     

     

    Thanks for the update on your project Raymond

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • jw0752
    0 jw0752 over 7 years ago in reply to urkraft

    Hi Raymond,

     

    I have to disagree with you a little. Everyone who has ever made anything NEW has been through the same process as you have described. I respect you for your in process posting of your results to date. I have found that when we wait for success and perfection we never quite get to the point of publishing. Keep up the great work and please continue to post work in progress. Another plus is that I find my friends here on the forum will give me helpful suggestions from time to time if they know what I am working on. All I have to do is keep my mind and eyes open to the possibilities.

     

    John

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • gadget.iom
    0 gadget.iom over 7 years ago in reply to jw0752

    I totally agree with what jw0752 is saying here. The community is very supportive, and your experiences will help others far more than you might immediately think.

     

    Where other on-line communities might punish you for your tribulations, this community tends to jump in and offer support, guidance and help.

    You don't learn to walk by following rules. You learn by doing, and by falling over.

                                                                                    - Richard Branson... or somebody or other...

    • Cancel
    • Vote Up +9 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • urkraft
    0 urkraft over 7 years ago in reply to gadget.iom

    Thank you for the words of encouragement Matt, John, and Paul! I believe the point all of you are making is a very important one - something i first began to grasp while taking an online FutureLearn course called "Prepare to Run a Code Club".

     

    The people presenting the course shared some of their experiences running code clubs. One of those was about what happened when they asked the children in a club if there was anything special they wanted to do. Some of the children wanted to have a club event where their technology challenged parents could attend in order to better understand what they were doing. On the night they implemented this suggestion one of the parents was very discouraged and disappointed when his attempts to complete a project failed. But his son had a remarkable response to the situation. He said: "But dad, you have just learned something important - that this approach was not quite right. You should look at it that way and try another approach towards a solution." (or something along those lines).

     

    I was truly amazed! Could this be an important difference between people who fail and those who are successful in life - the ability to accept that it is ok to err if we choose to perceive it as a learning experience rather than some kind of failure as a human being?

     

    Anyway, i will publish my latest attempt shortly (after dinner).

     

    Thank you all.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 7 years ago in reply to urkraft

    >I have finished testing my design and have concluded that it should not be used. It is not stable.

     

    Sorry to hear about the hurdles you're running into. However, these projects are often like puzzles - some more difficult than others - and part of the challenge can be just trying to work out the bugs image

     

    Interestingly, I just noticed this on the element14/Farnell/Newark store:

    http://canada.newark.com/global-specialties/gsk-947/edu-kit-automatic-sprinkler-controller/dp/75X8167

    "The  GSK-947GSK-947 is an automatic sprinkler control kit This kit is used to control the water pump for watering plants automatically It measures the soil moisture in 3 levels with delay time controls the time of watering and adjusts the watering according to soil moisture "

     

    At $20 CAD it's a pretty good deal too.

     

    It might also help you figure out the design of it, as it's a build-it kit. Here's the PDF tech specs.

     

    Also @Akash for your project.

     

    -Nico

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 7 years ago in reply to urkraft

    The moisture sensor module looks like one of these LM393 comparator based sensor modules.

     

    Module schematic:

    https://www.modmypi.com/download/moisture-sensor.jpg

    LM393 data sheet:

    https://www.modmypi.com/download/lm393.pdf

     

    There is a similar looking project using that module both with and without a microcontroller here:

    http://electroschematics.com/12065/arduino-soil-moisture-sensor-module/

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • urkraft
    0 urkraft over 7 years ago in reply to ntewinkel

    Cool! Thanks for the tip Nico - maybe i will take a closer look at it later on, but i would like to continue with the solution i am working with for a while in order to gather more knowledge about a lot of things i am wondering about. My present solution appears to be working satisfactorily and i have a few ideas for making it better (for example sending me messages when problems occur). I guess it could be perceived as overkill to use an Adafruit Feather HUZZAH ESP8266 for something as banal as this, but then again it only cost me £23.50 (shipping included) and it has quite a few advantages over a hardwired solution. It has built in wifi and it is programmable with quite a bit of I/O that i can use to connect sensors and actuators and control them - and i do see a few future possibilities that i find interesting (for example: sending me status messages if assistance is required).

     

    -raymond

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • urkraft
    0 urkraft over 7 years ago in reply to beacon_dave

    Interesting. I am quite sure that the one without an arduino will have the same problems that i was experiencing (i have done quite a bit of experimenting with different solutions of that type and believe that the D0 signal from the soil moisture sensor can be very unstable resulting in problems controlling the relay). At this point in time i am not really interested in pursuing that line of investigation further though. The solution i am working with at present is performing quite well and has spawned new ideas that i plan to pursue.

     

    Thank you though!

     

    -raymond

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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