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....
  • Навчання та стиль

КОМЕНТАРІ • 60

  • @profd808
    @profd808 Місяць тому

    Your editing and your skills are on another level!

  • @tekperson
    @tekperson 4 місяці тому +1

    Nice video. I like that you show how one small project balloons into several other projects as you go along. Just like mine do.

    • @EikiMartinson
      @EikiMartinson  4 місяці тому

      Ah, you understand! Don't they always? I've got a few more videos coming that are even more like that!

  • @muzguz7276
    @muzguz7276 7 місяців тому +2

    Nice work. Like your vice bender.

    • @EikiMartinson
      @EikiMartinson  7 місяців тому

      Thank you!

    • @EikiMartinson
      @EikiMartinson  7 місяців тому

      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!

  • @shaunbrassell68
    @shaunbrassell68 5 місяців тому +1

    Thanks dude, enjoyed that!

  • @AdventureOften
    @AdventureOften 5 місяців тому

    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.

    • @EikiMartinson
      @EikiMartinson  5 місяців тому

      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.

  • @vinniemoscaritolo3318
    @vinniemoscaritolo3318 4 місяці тому

    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.

    • @EikiMartinson
      @EikiMartinson  4 місяці тому

      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!

  • @darapps
    @darapps 7 місяців тому +2

    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.

    • @EikiMartinson
      @EikiMartinson  7 місяців тому +1

      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!

  • @tiloalo
    @tiloalo 2 місяці тому

    Probably super overkill to have a raspberry for the job, an esp32 does a great job at doing that, and much more reliably

  • @pro_coder
    @pro_coder Рік тому +1

    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

    • @EikiMartinson
      @EikiMartinson  Рік тому +1

      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!

  • @SezginRuhi
    @SezginRuhi 4 місяці тому +1

    THX

  • @juandaye
    @juandaye Рік тому +1

    Very nice idea. Perhaps you can also use the camera to deactivate the system while people are there.

    • @EikiMartinson
      @EikiMartinson  Рік тому +1

      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...

    • @tyfroom5151
      @tyfroom5151 Рік тому +2

      I would assume it would be possible with home assistant to connect platforms and frigate to get human detection.

  • @aminroustapour1011
    @aminroustapour1011 Рік тому

    Nice and clean👌

  • @libertine5606
    @libertine5606 Рік тому +1

    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.

    • @EikiMartinson
      @EikiMartinson  Рік тому +2

      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!

  • @jmyler
    @jmyler Рік тому +1

    Very nicely done. Now just to get some grass :)

  • @rab9212
    @rab9212 Рік тому +1

    Great video. I like your enclosure box but can't find it on Amazon. Can you post a link, please?

    • @EikiMartinson
      @EikiMartinson  Рік тому

      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!

  • @cisco-man8638
    @cisco-man8638 11 місяців тому +1

    It is against the NEC to run high voltage in the same conduit with low voltage.

    • @EikiMartinson
      @EikiMartinson  11 місяців тому

      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?

    • @PatrikTheDev
      @PatrikTheDev 2 місяці тому +1

      @@EikiMartinsonthe cables get damaged, high voltage runs through low voltage wires, some low voltage electronics burns out and starts a fire

    • @EikiMartinson
      @EikiMartinson  2 місяці тому

      @@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.

    • @PatrikTheDev
      @PatrikTheDev 2 місяці тому +1

      @@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

    • @EikiMartinson
      @EikiMartinson  2 місяці тому

      @@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!

  • @HappinessInSeconds
    @HappinessInSeconds 5 місяців тому

    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.

    • @EikiMartinson
      @EikiMartinson  5 місяців тому

      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?

  • @-______-______-
    @-______-______- 12 днів тому +1

    Do you mean 24V DC?

    • @EikiMartinson
      @EikiMartinson  11 днів тому +1

      Nope, the transformer makes 24 VAC; no rectification happening there. That's the standard for irrigation system solenoid valves.

    • @-______-______-
      @-______-______- 11 днів тому +1

      @@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.

    • @EikiMartinson
      @EikiMartinson  11 днів тому +1

      ​@@-______-______-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!

  • @Grovesternator
    @Grovesternator 7 місяців тому

    Upgrades watering system, paints house. Please come upgrade my watering system. I like your attention to detail.

    • @EikiMartinson
      @EikiMartinson  7 місяців тому

      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!

  • @rodwilkins1614
    @rodwilkins1614 Рік тому

    Or just use an Amazon smartplug inside feeding a solenoid to your water supply?

    • @EikiMartinson
      @EikiMartinson  Рік тому

      Oh there's a thousand ways to do this, no doubt. Share your results!

  • @emaneht9886
    @emaneht9886 Рік тому +5

    pfff, a rpi just for that? you can do this with esp8266/32 or arduino

    • @EikiMartinson
      @EikiMartinson  Рік тому +2

      You can! But like I said, "an outdoor general-purpose computer". There may be other things I want this RPi to do...

    • @emaneht9886
      @emaneht9886 Рік тому

      @@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)

    • @EikiMartinson
      @EikiMartinson  Рік тому

      @@emaneht9886 All good ideas! A weather station was definitely part of my original plans.

    • @thomasgregory1018
      @thomasgregory1018 Рік тому

      how do you get open sprinkler to map to a gpio pin?

    • @libertine5606
      @libertine5606 Рік тому

      Ya, those old timers were SCARY! The boxes weren't even weather proof.

  • @waalwink
    @waalwink 2 місяці тому

    Or just buy an already compleated piece of hardware from open sprinkler.

  • @PARitter
    @PARitter Рік тому

    Drilling metal when barefoot? (8:33)

    • @EikiMartinson
      @EikiMartinson  Рік тому

      A bad habit to be sure!

    • @dmcook333
      @dmcook333 5 місяців тому

      I noticed and thought of myself 😏