DIY IoT Sprinkler Controller, made with Raspberry Pi and OpenSprinkler
Вставка
- Опубліковано 6 жов 2024
- 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.c...
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.creativeco.... - Навчання та стиль
Your editing and your skills are on another level!
Well thank you!
Nice video. I like that you show how one small project balloons into several other projects as you go along. Just like mine do.
Ah, you understand! Don't they always? I've got a few more videos coming that are even more like that!
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!
Thanks dude, enjoyed that!
You're welcome!
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.
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!
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!
Probably super overkill to have a raspberry for the job, an esp32 does a great job at doing that, and much more reliably
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!
THX
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.
Nice and clean👌
Thank you!
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 nicely done. Now just to get some grass :)
You're not wrong! 😆
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?
@@EikiMartinsonthe cables get damaged, high voltage runs through low voltage wires, some low voltage electronics burns out and starts a fire
@@PatrikTheDev Damaged inside the conduit? I suppose I can think of some unlikely scenarios in which that could happen, maybe some small creature gaining access to the inside of the conduit and chewing through two insulations. But note also the electronics are isolated from the low voltage line in question anyway. You could burn out the solenoid though, I grant, and then there's this scenario: if all four wires in the conduit are damaged and touch in such a way that the HV energizes both sides of the transformer at once, that could lead to interesting consequences for the transformer, yes. Since I have some other changes in mind also, I may redo this aspect of the project.
@@EikiMartinson I wouldn’t worry about it that much, I was just saying why it’s against code in some/most places. Cables can rub on themselves slightly or animals could chew on the cables but the more likely scenario is a short in the high voltage cable tripping your breaker. If you have the time to redo it, go for it but I wouldn’t feel bad if you don’t wanna bother
@@PatrikTheDev Thanks for you comment though! I'm all about completeness and correctness. It's also worth covering the terminal strip for safety since the switch implies users can access the internals, as pointed out by another commentator. Then there's the other things I could do with an outdoor Raspberry Pi... this installation is very near a defunct satellite dish that would make a great mounting point for a weather monitoring station!
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?
Do you mean 24V DC?
Nope, the transformer makes 24 VAC; no rectification happening there. That's the standard for irrigation system solenoid valves.
@@EikiMartinson outside of the USA I frequently see 220 VAC solenoid valves, and all of the others of lower voltage are DC.
To me, using 220 VAC with water just seems too dangerous. Especially the ones that frequently have no waterproof casing around the power terminals.
@@-______-______-Ah, fair enough! I don't know about solenoid valves outside the US. But 24VAC is common for residential systems here at least. I assume you're talking about places that have 220V mains so they're just switching that directly. I too would be less than comfortable with that!
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!
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.
Or just buy an already compleated piece of hardware from open sprinkler.
Drilling metal when barefoot? (8:33)
A bad habit to be sure!
I noticed and thought of myself 😏