DIY IoT Sprinkler Controller, made with Raspberry Pi and OpenSprinkler
ฝัง
- เผยแพร่เมื่อ 16 ม.ค. 2023
- You too can build an outdoor computer with a Raspberry Pi and some other bits, install OpenSprinkler on it, and use it as a WiFi-enabled home irrigation controller!
Visit vabadesign.com and follow me on Instagram to see my works-in-progress: / eikimart
Crimp terminal organizer: eikimartinson.com/archives/159...
Paid Amazon links to products used in this project:
Waterproof Aluminum Enclosure - amzn.to/4auSlBY
Waterproof Cable Glands - amzn.to/3PX9FHs
Transformer - amzn.to/3PY4wPi
Liquid-Tight Conduit Connector - amzn.to/3PTbaGr
Terminal Block Barrier Strip - amzn.to/4cSVooT
UPTOU USB Wi-Fi Adapter - amzn.to/3xwTudD
Two-Channel Relay Board - amzn.to/3JgBNBw
Aluminium Plate - amzn.to/3vDNUpn
Standoff Kit Suitable for Raspberry Pi Installation - amzn.to/3xHHYMk
Antenna Extension Cable - amzn.to/3vKpWZv
SMA Bulkhead Connectors - amzn.to/3xoWHM7
Music:
Track: Vision - KV [Audio Library Release]
Music provided by Audio Library Plus
Watch: • Vision - KV | Free Bac...
Free Download / Stream: alplus.io/vision
Track: Stable - KV [Audio Library Release]
Music provided by Audio Library Plus
Watch: • Stable - KV | Free Bac...
Free Download / Stream: alplus.io/stable
Light by KV / kvmusicprod
Creative Commons - Attribution 4.0 International - CC BY 4.0 www.creativecommons.org/licen... - แนวปฏิบัติและการใช้ชีวิต
Thanks dude, enjoyed that!
You're welcome!
THX
Nice work. Like your vice bender.
Thank you!
And probably I should have explicitly mentioned the earth wire I attach to the plate at 16:07. You're right: it's a very important electrical safety feature!
Very very nicely done. Your work is neat and well thought out. I am impressed. The only possible suggestion I would’ve had would be to use a different color wires for the sprinkler line. While it’s easy for you to distinguish between which is power and which one is 24 VAC.. there’s always a possibility that someone else might come along if you sell the house. But honestly, you did a fantastic job.
Thank you for your kind words! The next owners will probably be mystified to learn their sprinklers are controlled by a "raspberry pie". ;) Handing over IoT hardware like this is a tricky thing in any case for reasons of network provisioning if nothing else (I think about this a lot). I agree with your comment though; other colors for 24V would certainly have been the right thing to do in this case. But you know how it goes: all I have handy is black, white, green, and sometimes red!
This is a great video. I’m not sure I’ve seen a video I could relate to this much in awhile. Certainly the best video on OpenSprinkler that I’ve seen.
Thank you so much! There was a lot to think about in that installation related to packaging, weatherproofing, power, etc. that I perceive gets glossed over very often.
Nice and clean👌
Thank you!
Yo, I would suggest you, to equalize the loudness of your monologue from cut to cut, that is your "voice over" is louder than when you speak straight to the camera, try to use a lavalier mic or just make some changes in post, but the video as a whole is very cool, loved the stamping part (was a nice touch), keep it up.
Thank you, the audio quality is one thing I'm dissatisfied with. I've made some changes since this video but there's more improvement to be made. Keep up your efforts too!
Very nicely done. Now just to get some grass :)
You're not wrong! 😆
Looks like there is mains power exposed in a area that you have a switch. It probably be better if that was behind a non-conductive plate. It probably doesn't matter too much since you would have to get on a ladder to get to the box. I am not sure but is the box grounded?
I have been hesitant to go after my sprinkler system but seeing how you used the 24 volt transformer I am ready to tackle my 6 station system. I use MOSFETS instead of mechanical relays. I would us a ESP32 and Home Assistant. I have used them for the last six months and they have been bombproof.
The box is grounded, yes. The switch is really just a convenience for myself, and you're right it's not the safest thing because you could touch the terminal strips with your finger while accessing the inside of the enclosure, although it's not really worse in this respect than the old timer was. A safety upgrade would be to put a little sub-enclosure around the terminal strip area. I may do that in a future video. Thanks for the comment!
Very Neatly but you can do that with esp32 too it would cost you less and also it have wifi and bluetooth and will consume less power afterall you are just switching a relay
Sure could! I already had this R.Pi 1 though, and there might be other things I want to do with an outdoor computer in the future too. Thanks for your comment!
Very nice idea. Perhaps you can also use the camera to deactivate the system while people are there.
A very interesting idea Juan! Or perhaps the opposite at night time when no one should be there? I wonder if Ring has an API for this...
I would assume it would be possible with home assistant to connect platforms and frigate to get human detection.
Great video. I like your enclosure box but can't find it on Amazon. Can you post a link, please?
I've added Amazon links to the description but unfortunately it seems like this "BestTong" enclosure is no longer available. Let me know if you find a good substitute!
It is against the NEC to run high voltage in the same conduit with low voltage.
That's why I was initially talking about two conduits. But this was easier and cleaner. Can you articulate the specific risk posed by this configuration?
I have an old controller that no longer activates the circuits but an unused b+ as we.. Could you share the pinout info from the pi to the transformer. I think I can harvest parts from my controller and basically get build a replacement as well.
Hi! Thanks for your comment. You can use any of the Pi's GPIO pins to drive a relay board. Depending on how that board is set up, you may choose active high or active low in Open Sprinkler. And you can use the relay to switch the mains power to the transformer. In my case I'm taking 5V power and ground to the relay board from Pi pins 4 and 6, then using pin 12 (GPIO 18) as the signal to the relay. Does that make sense?
Upgrades watering system, paints house. Please come upgrade my watering system. I like your attention to detail.
Thanks so much for your comment! Sometimes the sort of thinking you reference can hold me back too; if I think too much about everything that ideally should get done before doing something else, I'll never get started!
Or just use an Amazon smartplug inside feeding a solenoid to your water supply?
Oh there's a thousand ways to do this, no doubt. Share your results!
Drilling metal when barefoot? (8:33)
A bad habit to be sure!
I noticed and thought of myself 😏
pfff, a rpi just for that? you can do this with esp8266/32 or arduino
You can! But like I said, "an outdoor general-purpose computer". There may be other things I want this RPi to do...
@@EikiMartinson then you can add a speaker and play internet radio, rf433mhz receiver to you can control sprinklers and play/pause internet radio via a rf remote control (faster than using web browser). You can also attach a pir sensor and TH sensor and get outside weather conditions. You can also add a small led strip (maybe 10leds - not to draw too much current) but ws28XX and use it to “announce” things (red means rain is coming, blue means dinner is ready, green means internet is down, etc)
@@emaneht9886 All good ideas! A weather station was definitely part of my original plans.
how do you get open sprinkler to map to a gpio pin?
Ya, those old timers were SCARY! The boxes weren't even weather proof.