Sensing operation of switch and solinoid
Gunstar1
Posts: 18
I am setting up a system to automate the opening and closing of a valve using a 12v solinoid. The solinoid is already in place and runs off of a momentary switch.
(momentary up opens the valve, momentary down closes the valve, valve stays in that state until switch is pushed, switch at rest is in the middle with no power flow)
I have the transistors and relays for the stamp to perform the operation, however I don't want to remove the switch that it is designed to operate with incase the relay or stamp stops working.
Which means I need to put in something to sense when the switch is thrown and which way the switch was thrown. I have some optocouplers (4N25M) that I can use, but how to wire it? If the coupler were near the switch (one on open wire and another on the close wire, with 1k resisters), would just a resister below them be enough to allow the coupler to operate? If so, what size resister? Is there some better way?
(momentary up opens the valve, momentary down closes the valve, valve stays in that state until switch is pushed, switch at rest is in the middle with no power flow)
I have the transistors and relays for the stamp to perform the operation, however I don't want to remove the switch that it is designed to operate with incase the relay or stamp stops working.
Which means I need to put in something to sense when the switch is thrown and which way the switch was thrown. I have some optocouplers (4N25M) that I can use, but how to wire it? If the coupler were near the switch (one on open wire and another on the close wire, with 1k resisters), would just a resister below them be enough to allow the coupler to operate? If so, what size resister? Is there some better way?
Comments
However, there are a few things that will also be automated by the stamp after the valve is opened or closed and it would be better to know the state of the valve if the switch has been used. I have thought of using a 2nd stamp controlled switch and only use the orginal one as a last resort safety switch. I have also thought of just wiring the switch through the relay... but was thinking something to sense that the valve was opened or closed by the switch would be better. Maybe just something that senses that the switch has been used at all and halt the program until the stamp is told to continue might be best.
Thank you.