Hello everyone
I'm testing the following circuit for a line follower robot.
I have set up the PIC to power a LED on port C0 when the voltage over the 100k resistor goes above 3.91V (collected with port A0)
For some reason the LED is always ON, with or without a white surface in front of the sensor!
When I connect my multimeter to check the voltage over the 100K resistor, my LED turns off as previously expected... I can confirm the reason with the multimeter, the voltage is ~2V.
With the multimeter connected it works as expected. If I put a white surface in front of the emitter and photo-diode the uC lights the LED in C0.
What I'm missing? Thanks.
I'm testing the following circuit for a line follower robot.

I have set up the PIC to power a LED on port C0 when the voltage over the 100k resistor goes above 3.91V (collected with port A0)
For some reason the LED is always ON, with or without a white surface in front of the sensor!
When I connect my multimeter to check the voltage over the 100K resistor, my LED turns off as previously expected... I can confirm the reason with the multimeter, the voltage is ~2V.
With the multimeter connected it works as expected. If I put a white surface in front of the emitter and photo-diode the uC lights the LED in C0.
What I'm missing? Thanks.