# WiFi enabled Sprinkler controller with RPi Pico 2W

**URL:** <https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217>\
**Category:** Wireless & IoT\
**Tags:** processor\
**Created:** [July 9, 2026, 3:14pm UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217 "2026-07-09T15:14:08Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![viskr1](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/viskr1/32/12907_2.png) [@viskr1](https://community.sparkfun.com/u/viskr1)\
**Post date:** [July 9, 2026, 3:14pm UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/1 "2026-07-09T15:14:08Z")

</div>

There are WiFi controlled sprinklers out there, doubtful any open sourced for control. According to Google it is a popular DIY project, so why should they get all the fun.

Most people seem to be using 8 relay boards available on Amazon for under $10. That really is quite deal, but relays are overkill for a sprinkler system running at 24 VAC.

Most consumer units use run of the mill triacs. And you can get opto-isolated versions.

So here is the schematic design. I have to go through some of the unsorted boxes (unsorted from the move to FL) to figure out what I have to order, vs what I have on hand.

 ![Sprinkles](https://canada1.discourse-cdn.com/sparkfun/original/2X/a/a1d30c143cee1faeb3b33a42463d57a3e35712ed.jpeg)

I will post the KiCAD project when finished (layout to do)

---

<div class="post-metadata">

**Author:** ![TS-Russell](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ts-russell/32/6092_2.png) [@TS-Russell](https://community.sparkfun.com/u/TS-Russell)\
**Post date:** [July 9, 2026, 5:41pm UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/2 "2026-07-09T17:41:53Z")

</div>

Neat-o…I like the detailed note about using double-sided pins!

---

<div class="post-metadata">

**Author:** ![viskr1](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/viskr1/32/12907_2.png) [@viskr1](https://community.sparkfun.com/u/viskr1)\
**Post date:** [July 9, 2026, 6:15pm UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/3 "2026-07-09T18:15:01Z")

</div>

There are wirewrap pins you could order, but the simplest is start with a right angle pin.

Bend with a pair of needle nose plyers

and …

 ![lonPin](https://canada1.discourse-cdn.com/sparkfun/original/2X/5/5caec1eac97e7d69802139f81392f0fbbf8b84c5.jpeg)

---

<div class="post-metadata">

**Author:** ![TS-Russell](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ts-russell/32/6092_2.png) [@TS-Russell](https://community.sparkfun.com/u/TS-Russell)\
**Post date:** [July 9, 2026, 9:03pm UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/4 "2026-07-09T21:03:25Z")

</div>

In case you’d find them useful we do sell some ~18mm doubles [Long Centered Header - Male (PTH, 0.1in., 40-Pin) - SparkFun Electronics](https://www.sparkfun.com/long-centered-header-male-pth-0-1in-40-pin.html)

---

<div class="post-metadata">

**Author:** ![viskr1](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/viskr1/32/12907_2.png) [@viskr1](https://community.sparkfun.com/u/viskr1)\
**Post date:** [July 12, 2026, 6:53pm UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/5 "2026-07-12T18:53:26Z")

</div>

I got the box in that I intend to use. Glad I waited as the PCB mounting bosses are not where shown in the picture. With proper location I completed the layout and will send it out to OSHpark this week. Looking for any comments, concerns…

 ![sprinkle2](https://canada1.discourse-cdn.com/sparkfun/original/2X/4/47691671d9e6d7af56757e33cd2cfbc109bf942c.jpeg)

 ![sprinkle1](https://canada1.discourse-cdn.com/sparkfun/original/2X/9/906e059ae49e3def50c6fe259c3c1c7627a3e4a6.jpeg)

---

<div class="post-metadata">

**Author:** ![TS-Russell](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ts-russell/32/6092_2.png) [@TS-Russell](https://community.sparkfun.com/u/TS-Russell)\
**Post date:** [July 14, 2026, 3:19am UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/6 "2026-07-14T03:19:09Z")

</div>

This is a bit above my head but I tossed your photos and description to claude and after reading it through everything it mentions sounds pertinent. It only really has a couple notes, mostly concerning the potential use of a snubber and double-checking R1’s bus rating - see if you find the response useful 🙂 [Claude](https://claude.ai/share/a973bdec-836d-444e-9adc-04ed8fee550e)

---

<div class="post-metadata">

**Author:** ![viskr1](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/viskr1/32/12907_2.png) [@viskr1](https://community.sparkfun.com/u/viskr1)\
**Post date:** [July 14, 2026, 11:47am UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/8 "2026-07-14T11:47:40Z")

</div>

Thanks for checking, while I have been using Claude for software and even writing some documents based on screen shots, I had not thought about tossing a schematic or board layout at it. R1 is fine as only 1 zone will be on at a time.

Looks like I do need to add a bigger triac, I was hoping not to, but I am off by a factor of 10 to drive the solenoids. I could canabalize my Rainbird and see what is inside their drive modules, pretty small circuit to drive 4 lines.

---

<div class="post-metadata">

**Author:** ![YellowDog](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/yellowdog/32/1782_2.png) [@YellowDog](https://community.sparkfun.com/u/YellowDog)\
**Post date:** [July 14, 2026, 12:48pm UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/9 "2026-07-14T12:48:09Z")

</div>

Recommend you use a resistor for each optoisolator, you never know when your code is going to go haywire and turn multiple things on at the same time. Resistors are cheap to boot.

---

<div class="post-metadata">

**Author:** ![viskr1](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/viskr1/32/12907_2.png) [@viskr1](https://community.sparkfun.com/u/viskr1)\
**Post date:** [July 14, 2026, 5:25pm UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/10 "2026-07-14T17:25:39Z")

</div>

OK got the snubbers in, switched to SMD for MC03022 and triacs. I didn’t want to expand the board anymore. As for duplicating the pullup resistors, actually it would be better if multiple ones are enabled that the current would be limited so maybe solenoid valves won’t turn on. No real perfect solution for that.

 ![sprinkle1](https://canada1.discourse-cdn.com/sparkfun/original/2X/1/13ce7c73771453a5aa38461321e34c69a7cb9041.jpeg)

 ![sprinkle2](https://canada1.discourse-cdn.com/sparkfun/original/2X/6/64e3f827e8111f7e52a8cb71ca2c619839c95b2a.jpeg)

 ![sprinkle3](https://canada1.discourse-cdn.com/sparkfun/original/2X/b/be04a8e05e3add2732cd92e471f40533bb7ed720.jpeg)

---

<div class="post-metadata">

**Author:** ![viskr1](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/viskr1/32/12907_2.png) [@viskr1](https://community.sparkfun.com/u/viskr1)\
**Post date:** [August 11, 2026, 3:56pm UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/11 "2026-08-11T15:56:08Z")

</div>

Well boards are in, and after long discussions with Google AI have a couple component choices. So rather than build up 8 channels, I built one channel on a breadboard with a real valve solenoid.

 ![jig](https://canada1.discourse-cdn.com/sparkfun/original/2X/5/5d80fc7940359945ae20bb014744e05d9ff68e74.jpeg)

The zero cross opto-triacs seem very well behaved and will be the way I go, though it suggested I use a much lower resistor (and higher power) than I had allowed. I’ll double up a couple resistors in parallel.

For the random trigger triac, voltage spikes were less than 20% so really the snubber would not be necessary, though for belt and suspenders 4700pF 47ohm would be best.

The old PC power supply box with guts removed and replaced with a 24VAC transformer (from an old themorstat project).

---

<div class="post-metadata">

**Author:** ![viskr1](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/viskr1/32/12907_2.png) [@viskr1](https://community.sparkfun.com/u/viskr1)\
**Post date:** [August 15, 2026, 8:11pm UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/12 "2026-08-15T20:11:21Z")

</div>

Time to write some software. I will install the 24VAC-\>5V after the software is running.

MOC3032 on the backside. Google picture of the zones.

 ![sprinkleR](https://canada1.discourse-cdn.com/sparkfun/original/2X/8/8c30449d700af8baeca5a428de9d5cfb4f81be99.jpeg)

---

<div class="post-metadata">

**Author:** ![billiejeanisnotmylover](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@billiejeanisnotmylover](https://community.sparkfun.com/u/billiejeanisnotmylover)\
**Post date:** [August 16, 2026, 7:01am UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/13 "2026-08-16T07:01:29Z")

</div>

Thanks for sharing. By the way, wouldn’t it be more cost effective if you had used the ESP32?

---

<div class="post-metadata">

**Author:** ![viskr1](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/viskr1/32/12907_2.png) [@viskr1](https://community.sparkfun.com/u/viskr1)\
**Post date:** [August 16, 2026, 8:42am UTC](https://community.sparkfun.com/t/wifi-enabled-sprinkler-controller-with-rpi-pico-2w/69217/14 "2026-08-16T08:42:58Z")

</div>

It’s more a question of tools. I have been using home grown gcc and BASIC for 20 years on ARM processors. At times code bases were ported to Keil and Expresso. Arduino tools were too unstable to use.

As for cost the PCB was most expensive at about $25. Next the power supply, which for a low volume build the encapsulated one was less head aches and probably not much more that a discrete switcher. Then 8 channels of triacs and opto-isolated triacs, screw terminals.

ESP32 might run into pin limitations too, so the $2-3 there might not really be a saving.

Most of DIY sprinklers I’ve seen start with a cheap relay board (big saving) and then controlled from a RPi which is a lot more than the Pico, and for the most part the CPU is idle 90% of the time.
