Hi all.
I’ve built a 4 channel irrigation controller using:
- Pi 4
- Freenove Breakout Board for Raspberry Pi 5 4 B 3 B+ Zero 2 W HAT, Term
- 5V 4 Channel Relay Module 10A | Buy in Australia | CE05279 | Core Electronics
- 16mm Illuminated Pushbutton - Green Momentary | Buy in Australia | ADA1440 | Adafruit | Core Electronics
- https://www.bunnings.com.au/holman-25mm-solenoid-valve-with-flow-control_p3112814
- 2 pin double insulated, 230/24vac, 750mA plug pack to power the solenoids.
Basic operation for now is:
- Each day run a schedule where the 4 channels run consecutively for x minutes with a 10s delay between channels.
- Each channel has a PB override.
- Channel ON enunciated via the LED in the PB.
- Press a PB outside of the schedule starts that channel. Press again stops it.
- Logic allows only 1 channel to run at a time.
This works well on the bench with the PBs, LEDs and relays operating correctly.
In the field I have issues. When the 24vac is switched by the relay to energise the solenoid I get random switching. Sometimes the channel (LED and relay) will switch off immediately. Other times that channel switches off and other channel switches on. I can see the status LEDs on the Freenove board switching so it is the Pi’s GPIO doing this.
Thinking I have a dodgy relay board I tested one channel with a Gravity: Digital Relay Module (Arduino and Raspberry Pi Compatible) | Buy in Australia | DFR0473 | DFRobot | Core Electronics . Same issue.
I have tried wiring and testing with the 24 VAC floating, grounded to house LV earth, and the Pi gnd. I have replaced the 24 VAC PS. Thinking I may have some weird noise/emf/whatever from the 24VAC PS I tried powering it from a different circuit. I put the Pi’s PS and then the solenoid PS on a power rail that has suppression. None of these changes made any difference.
I’ve check AC and DC voltages, and AC loads. All as expected.
To be clear, with the solenoid PS switch off everything works fine. Turn it on and the madness starts.
There is NO link between the 24VAC supply to the solenoids and the PI GPIO wiring.
My so so schematic come layout drawing below FYI.
What have I done wrong?



