Hello all!
I have a strange issue that’s really been bugging me with my 4ch relay.
The relay is controlling 3 solenoid valves for my drip irrigation system. It’s working but, every time I use the buttons on my Lovelace frontend it sporadically looses connection to the switch. The buttons become greyed out and I can’t stop the solenoid for a period of time. It’s worrying me because the setup is on a terrace balcony with people downstairs and I am scared of a water spill if I can’t stop the solenoid.
Of course I can stop the pump but still.
Commons linked together with one side of all the solenoids all 3 “neg” wires together to a jumper that goes in COM 1 then jumpers to com 2 and 3 and the other side is in the NO of ch 1,2 &3.
Educated guess here, but the problem could very well be the EMF created by the solenoid coil when it is disengaged. When power is cut, the magnetic field collapses which induces a voltage back into the coil. Could be a big spike, and even though it appears you are using the relays in an isolated configuration, the fact that there are unprotected connections directly to the MCU pins around could be crashing the processor.
Put a reverse biased diode across each solenoid coil. 1N4007 is my go to for these things.
I was saying this because the first set of pictures are MY setup! but the picture where i’m asking is this okay was not my setup it was following the previous answer i posted this picture to have visual confirmation if this was the right way.
thats why your answer made no sense to me.
sorry about the confusion here are the pictures from my PSU and how it is plugged
i dont know how to do that. i dont have all the knowlege you have i am seeking help. if you dont want to, you dont have to… just at least suggest something i can provide or do to help you help me, dont just repeat yourself i do not know how to do schematics
the positive wire from the 24v brand new psu is pluged in the common with jumpers for the two other ones and one of the legs of each solenoid is pluged into the NC the other legs from the solenoids are all plugges to the negative wire of the psu.
Guys- a little help here? The OP still doesn’t get it.
None of your pictures show how the coil of the relays is powered. A schematic would show that. Your descriptions do not.
I’ve had problems with those type of relay boards on several occasions. At least for me the problem of relays randomly clicking or not working was because the boards that have terminals for breadboard wires don’t make good contact, any bump will cause them to bounce around. I use the ones with screw terminals now and rarely have a problem.