I have a valve that operates on 24VAC with limit switchs. I want to use this on a MCU as an input, what is the best wat to do that? Can I use a transistor?
The series diode-any particular one I should use? How big of a cap?One way would be to use a series diode and an optocoupler (plus a current limiting resistor of course). You could add a capacitor across the LED to keep it illuminated during the negative half of the cycle or deal with the pulsating LED in code.
Darn it Ron. I just spent 2 hours drawing a schematic that takes either a contact closure or voltage input, but because one of the contact closure sensors requires bias voltage to operate, the connection polarity is reversed depending on the mode used. THESE will solve that! I wonder if they come in a quad version?