R
I need to generate a voltage signal to +5vdc on an input pin for a microcontroller. I have a functional circuit in place to handle a +24vdc input from a proximity sensor. Basically, this input pin on the microcontroller is held at 0vdc across a resistor and a zener diode is regulating the incoming voltage from the sensor. Since I need a positive voltage to be generated from the sensor, would that require a PNP or an NPN style sensor? Also, if I am using a proximity sensor and need the positive voltage signal to be generated while there is an object being detected, and the voltage signal to be near 0vdc when there is no object, would I require a NO or NC style?
Any help would be appreciated. Thanks.
Any help would be appreciated. Thanks.