I'm an engineer but just the mechanical kind... Also, this is my first post! =D
Background:
I'm setting up a simple flow control system for my aquarium with a set of solenoids to direct the water flow as it leaves the pump.
I currently have 2x 24v DC latching solenoid valves activated by an optocoupled relay module driven by a raspberry pi. The relays are actuated by the pi's onboard 3.3v supply and they close the 24v line to the DC solenoids. I have a single 24v 2A wall-wart powering the whole system. The pi gets 5vout of a voltage converter which is wired in parallel to the normally open 24v line going to the switch side of the relays.
Problem:
I managed to fry both solenoids. I'm an idiot. I know.
What I don't know is why this happened. Before wiring the solenoids to the relays, I manually tested both of them with a DC 24v 0.6A wall-wart and they worked fine, even at constant load. The issues only arose when I began using the 2A supply with the relays. When the relays were activated (manually with jumpers but with the pi still wired up), nothing apparent happened on the solenoid side. The relays definitely closed, but the solenoids didn't move. No smoking, no vibrating, no nothing. BUT when I left the relays closed for more than ~3 seconds, the power supply would reset. I'm guessing the wall-wart has some sort of current protection. Bless the EE gods.
So I unhooked the relay circuit from the solenoids and retried the 24v 0.6 amp power supply that I was using for initial testing. They both worked! Needless to say, I was getting very confused. So, I reconnected the relay circuit to the solenoids and retried that with the 2A supply. Again, nothing but the power supply resetting when the load was constant. I tried this maybe 5 times with no better result. So again, I unhooked the relays and tried with the 0.6A supply. This time, the relays didn't do anything. I managed to fry them somehow during this round.
Best Guess:
I looked it up and turns out I ought to be using a diode across the solenoid. Duh. I went ahead and wired this up but it's obviously too little too late.
Question:
I've already got a new set of solenoids on the way to replace the fried ones, but before I fry another set, I wanted to get an opinion on why this happened and what I can do to prevent it. Is the lack of diode really the only problem? Or should I try current limiting the solenoids somehow?
Thanks!!
Background:
I'm setting up a simple flow control system for my aquarium with a set of solenoids to direct the water flow as it leaves the pump.
I currently have 2x 24v DC latching solenoid valves activated by an optocoupled relay module driven by a raspberry pi. The relays are actuated by the pi's onboard 3.3v supply and they close the 24v line to the DC solenoids. I have a single 24v 2A wall-wart powering the whole system. The pi gets 5vout of a voltage converter which is wired in parallel to the normally open 24v line going to the switch side of the relays.
Problem:
I managed to fry both solenoids. I'm an idiot. I know.
What I don't know is why this happened. Before wiring the solenoids to the relays, I manually tested both of them with a DC 24v 0.6A wall-wart and they worked fine, even at constant load. The issues only arose when I began using the 2A supply with the relays. When the relays were activated (manually with jumpers but with the pi still wired up), nothing apparent happened on the solenoid side. The relays definitely closed, but the solenoids didn't move. No smoking, no vibrating, no nothing. BUT when I left the relays closed for more than ~3 seconds, the power supply would reset. I'm guessing the wall-wart has some sort of current protection. Bless the EE gods.
So I unhooked the relay circuit from the solenoids and retried the 24v 0.6 amp power supply that I was using for initial testing. They both worked! Needless to say, I was getting very confused. So, I reconnected the relay circuit to the solenoids and retried that with the 2A supply. Again, nothing but the power supply resetting when the load was constant. I tried this maybe 5 times with no better result. So again, I unhooked the relays and tried with the 0.6A supply. This time, the relays didn't do anything. I managed to fry them somehow during this round.
Best Guess:
I looked it up and turns out I ought to be using a diode across the solenoid. Duh. I went ahead and wired this up but it's obviously too little too late.
Question:
I've already got a new set of solenoids on the way to replace the fried ones, but before I fry another set, I wanted to get an opinion on why this happened and what I can do to prevent it. Is the lack of diode really the only problem? Or should I try current limiting the solenoids somehow?
Thanks!!