how to know distant infrared led
I'm using pic uP too.I've apply free samples of 16f877 from microchip.I'm using it in my robot project,such as motor control,IR communcation,ranging.
My IR sensor is tk1838,it seems that this kind of sensor's output have been demodulated,so it cann't be use to measure distance.It receive 38khz of IR frequency,and then generates a low voltage output,if there isn't IR of 38khz frequency,the output is high voltage level.I cann't find exact datasheet of tk1838,but I find that of similar sensor TSOP1838 of Vishay.
how do you achieve the software adc?I cann't find it in Nigel's PIC tutorial.Could you simply describe it?
Thanks!