burassu
Junior Member level 1
Hi,I have designed a light sensor by using this circuit->>>>>> **broken link removed** .
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