gunrunnerjohn
Member
I"m looking for a circuit that can sense the polarity of a signal and it optically isolated. I'd also like to do this with one uP input port, I'm using PIC processors. I want to recognize three states, no voltage, negative voltage, or positive voltage. This circuit is to sense the rotational direction of an DC motor, and of course, sense when it's not running. The voltage input to the circuit can be anywhere from 1 volt to around 15 volts, depending on how fast the motor is running.
So far my thinking is two opto-isolators that have a different set of resistor dividers and using an A/D channel to sense if either one of them has been triggered. I just can't help thinking I may be missing something and there's a more clever way. I want to stick with one I/O pin as I don't want to move up from the 8-pin PIC.
I've done a simple circuit with an AC opto-coupler that just senses whether the motor is running or stopped, but I want to expand the capability to sense direction as well.
So far my thinking is two opto-isolators that have a different set of resistor dividers and using an A/D channel to sense if either one of them has been triggered. I just can't help thinking I may be missing something and there's a more clever way. I want to stick with one I/O pin as I don't want to move up from the 8-pin PIC.
I've done a simple circuit with an AC opto-coupler that just senses whether the motor is running or stopped, but I want to expand the capability to sense direction as well.