Hi all,
In my midibox project I use that distance sensor SHARP GP2D120; its datasheet is available here :
http://document.sharpsma.com/files/GP2D120_SS_final.pdf
If I connect directly the sensor on the J5, instead of reading 0 when in IDLE (nothing in front of my sensor) I read a flow of 0 and 1 that alternates very fast, as if it hesitates between the two values. Now if I put something (that does not move) in front of the sensor, I read for instance 34 35 34 35 34 35 34 35 etc. The digit 3 is displayed constantly while the LCD oscillates between 4 and 5. Â >:(
I know that the PIC waits for a voltage range of 0 - 5 while that sensor gives 0.3 - 3. I suppose that’s the reason of flickering values …
Any idea to use that sensor correctly ? Â ???
Thanx guys & gals,
Olivier


