Hi,I have designed a light sensor by using this circuit->>>>>> http://web.sunybroome.edu/~grace_t/m...ab/lm339_d.gif .
As a comparator Ic I am using the Lm339. The circuit is working perfectly but I need it to be connected with an 8051 to act as a switch.
But the only problem is that the output of the comparator when high it is giving 2.5v as an output although it is connected to a pull up resistor to 5v .
How can I switch the output to 5v so that it can be connected to the 8051???
Tnks
As a comparator Ic I am using the Lm339. The circuit is working perfectly but I need it to be connected with an 8051 to act as a switch.
But the only problem is that the output of the comparator when high it is giving 2.5v as an output although it is connected to a pull up resistor to 5v .
How can I switch the output to 5v so that it can be connected to the 8051???
Tnks