PDA

View Full Version : sharp GP2D12 interface pic16f676



jojokatada
- 23rd March 2005, 18:01
a friend just share to me a infared object detectors. i am kind new to these sensor.
could anyone help me

soteris soterio
- 18th April 2006, 21:19
a friend just share to me a infared object detectors. i am kind new to these sensor.
could anyone help me
could anyone help me using GP2D12 with CH BASIC Language

picster
- 19th April 2006, 17:26
The sensor you have is an analog one, which makes it very easy to interface. Just do an A-to-D conversion.

The output voltage is NOT linear with respect to the distance, it's . I have some 8-bit data on one of these that I collected that can demonstrate:

Value Distance
1-21 out of range
22 38"
23 35.5"
24 33.8"
25 31"
30 22"
40 16"
50 12.8"
60 10.5"
70 9"
80 7.9"
100 6.2"
120 5.15"
140 4.3"
159 3.5"
160-255 out of range

A graph of this function can be found here:
http://www.acroname.com/robotics/parts/SharpGP2D12-15.pdf

---------Picster--------