Ready to get started? Move on to the next step for a full materials list!
If this is your very first time using a Raspberry Pi, there are a TON of getting started with Raspberry Pi projects out there - please check those out first if you need answers to things like "how do I install the OS?" or "what type of power supply do I need?" Please note that this is not a "how to use a Raspberry Pi" Instructable. The advantage of this approach is that it's flexible and easy to expand - for example, if I want to decide how long to water based on how much it rained, water based on the future forecast, or water in multiple short intervals throughout the day, that just requires changing a few lines of code.
That's what this Instructable will show you how to do, including the electronics, programming, and plumbing. If we're watering the plants by hand, we roughly follow a rule of "Did it rain yesterday? If not, water the plants." So, why not automate that with a Raspberry Pi? Use a weather API to answer "did it rain yesterday?" and then the GPIO pins to control a solenoid valve to water the garden. The bar is set pretty low here - I just want to keep the plants alive. I also don't care about being super picky about maintaining an optimal soil moisture level. I really didn't want to deal with calibrating or cleaning a soil moisture sensor. A quick search on Instructables shows that I'm not the first one to do this, but I think my project will take a unique approach. But, in the true spirit of Instructables.where's the fun in buying one when you could build it yourself? Enter the Raspberry Pi-Controlled Irrigation System. You can buy all sorts of fancy programmable hose, irrigation, and water timers (not sure about the difference between those three terms, but that's how Lowe's has them listed) if you want to automatically water your garden. While I can't automate some maintenance tasks like weeding*, I can certainly automate the watering and I figure that will give our poor plants a better chance at survival. As the summer drags on, ambition turns to laziness and unfortunately many of the plants die a slow, withering death from neglect due to lack of weeding and watering (except for the tomato plants, which grow like mutants in our climate even if you neglect them.so every August we wind up with 10,000 tomatoes and no other vegetables). Every spring my wife gets really ambitious and plants a big vegetable garden.