June 21, 2020 at 6:41 pm #66927
I am a novice here. My goal is to create an automated sprinkler system based on soil moisture for my lawn and garden. I spent the better part of today researching. Would a setup like the following work? Need your advice before spending money on this. Thank you so much.
– Chirp Soil moisture sensor
– Raspberry Pi Zero W
– Opensprinkler Pi
– Solar panel, 9V battery, Car charger (this for later expansion to make the Raspberry Pi power supply automatic)
Phase I – Replace my Hunter sprinkler panel with Opensprinkler Pi. Insert Chirp soil moisture sensor in my flower bed. Connect Chirp Soil moisture sensor to Raspberry Pi Zero W. Get the Opensprinkler PI and Raspberry Pi on my wifi network. Output from the chirp soil moisture sensor should flow to Raspberry pi, use this output to change waterlevel of the Opensprinkler Pi.
Phase II – Use solar panel to charge 9V rechargeable battery, transform 9V with car charger to USB power and power the raspberry pi board.
Please let me know if this sounds like a reasonable setup that can work? Thank you.June 22, 2020 at 8:00 pm #66948
Yes what you’re asking about can definitely be done. I’ve done something very similar and it’s been working for a few years now. A few thoughts about your proposed setup come to mind.
- I’d suggest a more robust soil moisture sensor. I’ve got a chirp and mine definitely is not designed for outdoor use. I’d suggest considering the VH400. I’ve also got one of these and it is now in its 4th season outdoors in the containers on my deck. I’ve had absolutely zero problems with it. It uses the same method to measure soil moisture as the chirp.
- If the only thing you’re doing with the Raspberry Pi Zero W is using it to read the value from the chirp and send the data to Opensprinkler over WiFi, you should probably use an ESP8266 or ESP32. It’ll use way less power. That will mean you’ll need a much smaller battery and a smaller solar panel also. Just make sure that whichever version you choose you’ve got an analog to digital converter on it (ADC) if you use the VH400 as it outputs an analog signal.
- Instead of changing the waterlevel on the Opensprinkler, you could just turn the zone on through an API command. Seems more straightforward to me.
I’ve mentioned my setup before on the forum. Here’s a link to one of the mentions. https://opensprinkler.com/forums/topic/pi-customisation/ If you have any questions just ask.
MikeJune 25, 2020 at 10:43 am #66993
Thank you for the detailed explanation. Will take your advice and use the VH400 and ESP8266. Will get the parts ordered and ask questions as I run into them. Really appreciate this supportive environment!! Thank you!June 28, 2020 at 2:25 pm #67041
Can the VH400 and the ESP8266 be powered from the same supply? The VH400 says it takes 3.5V – 20V input. The ESP8266 board I ordered is UBB powered so goes up to 5 Volts. Can I tie the VH400’s VIN & GND to the ESP8266’s VIN and GND to power the VH400?
The VH400 analog out is 0-3V and the ESP8266 board’s analog A0 input pin range is 0 – 3.3V, so I think, I can connect the VH400’s analog out directly to the A0 pin on my ESP8266 board – can you please confirm?
Thank you again for all the help.June 29, 2020 at 9:22 pm #67067
- You must be logged in to reply to this topic.