Close
0%
0%

Solar Powered Garden Irrigation System

Minimal effort Solar powered wireless controlled automatic watering

Similar projects worth following
The. aim of this Project is to design and build a Garden Irrigation System incorporating PCBs low powered SMD components to control the Zone Solenoids thus permitting wireless control of watering periods with limited water pressure from an external Pump Unit fed from a Waterbutt. The Project, initially submitted at the Concept Stage, now covers multiple Raised Beds.

Let's be clear from the beginning. This will not be a particularly innovative Project and it won't result in a 'cheap and cheerful' watering aid. You can't produce a waterproof reliable Product without some relatively expensive parts. This Project is about (hopefully) demonstrating that it's never too late to learn new skills and apply them to a practical requirement that will help people whose physical health precludes using simpler, albeit less costly, solutions.

Open-source, lower cost and expandability are key features that will diffentiate this Unit from most commerciall

Regular watering is key to successful vegetable and flower growth. Not all gardeners are able to carry water to their precious plants particularly when other commitments take them away from home or when, as is the case with this Amateur Gardener, poor health precludes carrying water buckets from tap (faucet) or reservoir to the beds. This Project is aimed at developing a wireless controlled Irrigation System that will facilitate the regular watering in a controlled manner to Raised) Garden Beds without having to lift and carry heavy water containers.

The major steps to achieve this goal are:

  • Design a Control Board (PCB) embodying a wireless controller with micro-processor (including appropriate firmware) which interfaces to a Solar Panel and Water Solenoid
  • Build prototype PCB and test with Solar Panel and Solenoid
  • Assemble one or more proven design PCBs and house in waterproof box
  • Assess suitable programming languages and development environments
  • Test proposed Network Tooplology (the use of MQTT is currently being assessed)
  • Write an Application for a suitable Laptop or Tablet to provide timing for the Controller.
  • Expand the basic system to cater for multiple Zones by sequentially switching the limited water pressure/pipe flow between Zones.

Several new skills will need to be learnt including:

  • CAD to produce drawings that will allow the bare PCB to be manufactured
  • Mastering SMD soldering techniques to allow satisfactory assembly of the PCB components
  • Essential programming basics using a suitable coding language.

Fortunately the Developer of this ambitious Project starts with many years of experience in electronic design both from industry and from amateur radio. He also has a passion for Raised Bed Gardening

Key features of the design are:

  • Low power consumption to preserve battery life
  • Small size
  • Readily available components
  • Modular expandable configuration

Hopefully the Project will also show that 'you're never too old' to learn new skills, the Developer now being in his eightieth year.

Outside The Box

The Solenoid Control PCB is just one element of the System. Also necessary is a suitable Solar Panel and a Solenoid. These are readily available and proposed items for my System are shown in the Photo Gallery. The BACO Solenoid is the 12V CR05 version as this has 5 wires, 2 for the 12V solenoid drive and 3 others giving feedback as to the position of the Solenoid which will be sensed by the Microprocessor. Cheaper 'washing machine ' solenoids have been ruled out as they draw current for the whole period they are on. The Solar Panel is a 5V unit with s/c current of 50 mA.

A Raspberry Pi will be used as an MQTT broker, this will be in the house and connected to the Main WiFi Network. An LCD connected to this Unit will provide the UI.

Another part of the System (already built) is a pump driven by a shed roof mounted Solar Panel and housed in a small box together with a Solar Charge Controller, Battery and Timer. Fed from a Waterbutt, this will be used to create some pressure in the 13 mm main distribution pipe into which the Zone Solenoids will be inserted.

  • 4 × Solenoid Baco CR05 preferred. 12V, 3 port with position feedback
  • 4 × Solar Panel Small Small panel with >50 mA or more short circuit current. Nominal 5V
  • 4 × Waterproof housing Small metal or plastic box with gasket to house PCB. and battery
  • 4 × Solenoid Control PCB Custom designed printed circuit board with Suface Mount Components, - Gerber files and schematic will be Open-source when designed proven

  • Reflections

    Michael Frank Taylor05/21/2017 at 20:12 0 comments

    As forecast in my previous log, I have reluctantly decided to abandon the current design as I have spent a disproportionate amount of time attempting to resolve the problems without recourse to modifying the PCB layout (not in itself a problem) and having the new PCBs assembled (which is a problem on account of cost). I have now decided to concentrate on a modular design that will, if successful, be easier to prototype, use cheaper components and be much simpler to assemble with simple tools.

    Meanwhile I've added two more Raised Beds but am still struggling with manual watering pending completion oh the automatic system! We'll get there eventually

  • Major revision required!

    Michael Frank Taylor03/30/2017 at 21:57 0 comments

    Regretfully this Project has run into problems and solutions have yet to be found. Despite having has some PCBs professionally assembled, testing has been problematic with unreliable results that almost certainly are attributable to shortcomings with the board layout and particularly with insufficient attention to decoupling of the ESP8266 supply. Also for reasons unknown there is a wide variation in the current drawn from the supply by individual units. Currently I'm trying to decide whether to redesign the PCB layout to accommodate improved supply decoupling (this would mean the expense of fabricating and assembling the boards) or whether to completely start again and build using commercially available components, namely The Adafruit Solar Charge Controller, a Huzzah ESP8266 module together with standard Boost Converter and H Bridge Driver sub-modules. The larger Waterproof Box required would facilitate the use of a more powerful Solar Panel as it has been ascertained that the existing panel is insufficient to keep the battery cell charged. I still have one or two things to try before deciding but it looks increasingly likely that a new solution that will not involve attempting 'hot plate soldering ' of QFN components or awaiting deliveries from China is preferred.

  • Inadequate Power Supply

    Michael Frank Taylor02/12/2017 at 21:03 0 comments



    Those of you who are following this Project will know from my last log that I have been plagued by intermittent resets whilst loading firmware and testing the pcb. I have at last managed to trace the cause and capture the offending waveforms on my digital 'scope. The design uses an LDO to provide the 3.3V required by the ESP8266. The particular LDO used TPS77733 monitors the regulated voltage and provides a signal should it drop by 5% . This signal can be used either as a 'power low' or as a Reset'. Unfortunately I chose the latter. Consequently whenever the ESP8266 draws heavily on the regulated supply, for for example during wireless setup or firmware loading, then the PCB resets.

    The screen capture above shows the 3.3V (red trace) and the reset line (blue trace). The Input Voltage tothe LDO (Vcc) comes from the GPIO pins of a Raspberry Pi, Nonimally 6V at 600 mA but obviously inadequate. I now await delivery of a stabilised Laboratory PSU to continue testing. Hopefully these problems won't recur when powering from the a solar panel with a fully charged backup battery.

  • A frustrating problem - solved

    Michael Frank Taylor02/05/2017 at 20:49 0 comments

    Testing of the boards looked to be going well until the stage of flashing the firmware was attempted when, in spite of careful attention to the state of the input pins of the ESP8266 device, it was relactant to enter 'boot mode' on application -of power. As is often the case with such problems the cause was not simplistic but a combination of design errors compounded by a faulty (fake) chip in the external FTDI USB to TTL converter being used to load the firmware.

    Fortunately only component value changes are necessary on the board itself to correct the design shortcomings and the firmware has now been successfully loaded and testing can proceed. Now that the initial loading of firmware has been achieved it is hoped that future changes can be covered by Over the Air (OTA) capability that facilitates changing and uploading the code 'wirelessly '.

  • Got a few problems

    Michael Frank Taylor01/26/2017 at 23:05 2 comments

    Seems that I underestimated the problems that would result from attempting to assemble the PCB without the benefits of a reflow oven and a pick and place machine. After several attempts using a hot plate I have had to concede defeat as the QFN device (MCP73871) proved impossible to position and solder with the crude equipment at my disposal. Lessons learnt are to ensure that you have a good quality stainless steel stencil, preferably with a jig, and a reliable controlling the heat setting whilst monitoring the temperature of the hot plate.

    So I admitted defeat and had half a dozen boards assembled professionally.

    Testing is now underway but it seems that there is a problem that prevents uploading of the firmware. I have had much experience with ESP8266 devices although this is the first time I've used the -F version. Believe me, I am aware of most of the pitfalls to be avoided when setting up the correct conditions for 'boot mode' but currently, in spite of my best efforts, the devices fail to yield their MAC addresses which leads me to believe that the system has not defaulted to the correct mode on power-up. Thankfully I have a, cheap and cheerful, digital oscilloscope that should help get to the source of the problem.

    Hopefully a solution will be found soon as the gardening season is rapidly approaching and there is much to do before I can deploy the system.

  • Populating the bare board

    Michael Frank Taylor11/06/2016 at 16:39 0 comments

    Armed with a cheap stencil, solder paste, tweezers, hot plate and packets of small SMD components the time had come to take the plunge and 'hot plate solder' the bare board to be able to finally test the design before committing to having a batch of PCBs professionally assembled. The result is shown in the attached image, pasted but only slightly heated.hence not yet reflowed. So all looks good however the eagle-eyed amongst you may have noticed that one or two components, critically U1, U2 and U4 are, slightly misaligned. Durin my efforts to correct this by reheating the board and nudging them into position, I accidently dropped the Assembly with disastrous consequences. Ah well, you can't win every time so if at first you don't suceeed then try again and maybe again,

  • Oops! correcting the errors

    Michael Frank Taylor10/22/2016 at 21:52 0 comments

    Unfortunately having had the new layout fabricated I carried out some further checks on the layout which revealed a couple of errors that, whilst not rendering the boards completely unusable, will require changes to the firmware that I had hoped to employ. The errors are being corrected for the follow up PCBs that, once finally proved are to be professionally assembled. My 'hotplate' endeavours, whilst good enough for prototype testing do not satisfy my aims of consistent quality and a repeatable product.

    The Gerber files will eventually be available on Github but to give a 'taster' of the design I am attaching two images, courtesy of a 3rd party Gerber Viewer. Highly recommended as a check that your chosen fabricator has got a correct interpretation of the files. I've only shown two views but all layers can be viewed individually or collectively.

  • Link to rushed youtube video

    Michael Frank Taylor10/03/2016 at 21:17 0 comments

    Not a very good effort and it will need much updating but just to say there is a video on you tube showing a few details

  • The Final Steps

    Michael Frank Taylor10/02/2016 at 20:00 0 comments

    Work is progressing steadily and today I am creating the Bill of Materials (BOM) for the modified PCB after which, assuming all works as expected, the final assembly will be carried out during which I intend creating a video showing all the steps necessary for construction of the final Unit. For this purpose I have already purchased a couple of the 'Solar Powered Garden Lights' that provide the core features of Solar Panel, Battery and Waterproof Housing that are essential for this Project. These units are available from Amazon or possibly directly from the Manufacturer. Gerbers for the PCB will be put on GitHub in due course together with links to firmware when the latter has finally been proven.

    I hope to add a short video before the deadline for this Stage. As I'm in the GMT Zone and the Organisers are in the PDT time zone then I might just have sufficient daylight tomorrow morning for my iPad to earn its keep! Watch this space.

  • A step nearer

    Michael Frank Taylor09/26/2016 at 17:19 0 comments

    Once again the summer months have flown by and the vegetables and other plants in my Raised Beds have suffered from a lack of regular watering. I now have the Autumn and Winter months to complete my irrigation Project if next season is to be more successful.

    However, progress has been made on the design of the PCB and prototypes have been manufactured although they have yet to be populated with components and tested. Completing the layout and preparing the gerber files took considerably longer than anticipated and, as yet, there is no guarantee that this is error free! So it's back to the 'hot-plate' soldering before the board can be proved.

    The firmware fis another aspect of the work still in progress. Programming is not my strong suite so I was very relieved to find a Project on GitHub that looks very promising ad even provides pre-compiled binaries for flashing to the ESP8266-12E. Although it would be too much to expect that it will fulfil the Requirement without any modification it will certainly form, with Node-Red and the other supported features a good basis for the Project. My PCB is an adaptation of the board designed for the Home Automation Project that is fully documented on the http://tech.scargill.net blog pages that are the work of Peter Scargill and Adian Ruff .

    Work outside has continued and I now have the irrigation piping in place (buried) and two of the Solenoids mounted adjacent to their respective Raised Beds. Now, before the Winter sets in I need to clear the ground of this year's 'failures' ready for a new season in 2017 with automated solar powered irrigation.

View all 22 project logs

Enjoy this project?

Share

Discussions

Michael Frank Taylor wrote 04/12/2016 at 15:18 point

Yes they are ChineseEuropean  made PCBs but to generate the drawings I had to learn a CAD program (Diptrace) which was a new skill for me and I had to due some research of Application Notes to ensure that I had a workable layout

  Are you sure? yes | no

Michael Frank Taylor wrote 04/10/2016 at 20:20 point

Yes that's right, I had some made in China and some made in Europe. 

  Are you sure? yes | no

M. Bindhammer wrote 04/10/2016 at 18:32 point

I see Chinese PCB's!

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates