hi friends,
i'm trying to interface sharp 2d120x f17 ( ir range finder) with atmega 16. for interfacing i'm using internal adc in 8 bit resolution mode & i'm getting reading as follow
A/D VALUE DISTANCE
157-160 3cm
137-140 4 cm
117-120 5cm
104-106 6cm
090-092 7cm
079-080 8cm
and so on
but i'm not having formula to convert these values into distance
please help me