I´m running out of ideas here.
I have a device that should always output a 5v signal, with a maximum tolerance of 100 mV (4.95 to 5.05 V).
I´m building a "tester" device. My tester will compare the received 5v signal with a minimum and maximum reference voltage (Uref Min=4.95 V Uref Max=5.05 V )
If my device is faulty I want my tester to emit a signal, this signal will be connected to a binary counter that will be telling me if my device failed and how often it failed.
On the plan below, if I understood it right, the LM139 should be closed (0 V) when my device is =>4.95 V or =<5.05 and open (~6 V) if <4.94 V or >5.05 V. Given that I want a single signal from my LM139, I built an OR-Flip Flop with two transistors (2N2222). Joining the two outputs together was impossible to make it work.
The last picture are the connections I soldered on my LM139, I tried grounding the others inputs but it didn´t change anything, I tried many things but nothing worked I can´t get this guy to work properly...
MinV: Below DeviceU (5 V) the output2 will be almost 0 V. From deviceU (4.96 V) the voltage will slowly rise till it reaches DeviceU (5 V) and the output2 will emit a solid 6 V.
MaxV: The voltage stays stable at the output1 (6 V) when I drop the deviceU bellow 4.95 V. Everything above, the input1 will throw almost random values...