Hi
I am using the circuit in the picture bellow to read a DC signal with a voltage from 0 to 24V with a BeagleBone GPIO, what I need is that the GPIO read 0 if the voltage is lower than 12V and 1 if it is bigger, 1 in BeagleBone GPIO that is mean 3.3V, so my idea was to use a zener diode with 11.7 voltage for example in the base of the first transistor which is the input of the circuit also so any voltage lower than that the first transistor will be blocked and the second saturated so the output of the circuit will be connected to the ground so it is 0 logic and if it is the opposit case then i will get 3.3V of output which is 1 logic.
I don't know if this circuit matchs with the Beagle GPIO or no, I am affraid from the pull-up or pull-down resistors in the GPIO or something like that, I don't understand them verry well, if they can make a voltage divider with the resitors I already use in my circuit or other thing, so what do you think about this circuit.
I am using the circuit in the picture bellow to read a DC signal with a voltage from 0 to 24V with a BeagleBone GPIO, what I need is that the GPIO read 0 if the voltage is lower than 12V and 1 if it is bigger, 1 in BeagleBone GPIO that is mean 3.3V, so my idea was to use a zener diode with 11.7 voltage for example in the base of the first transistor which is the input of the circuit also so any voltage lower than that the first transistor will be blocked and the second saturated so the output of the circuit will be connected to the ground so it is 0 logic and if it is the opposit case then i will get 3.3V of output which is 1 logic.
I don't know if this circuit matchs with the Beagle GPIO or no, I am affraid from the pull-up or pull-down resistors in the GPIO or something like that, I don't understand them verry well, if they can make a voltage divider with the resitors I already use in my circuit or other thing, so what do you think about this circuit.