interfacing of atmega 16 with SHARP 2D120X F17 range finder

Status
Not open for further replies.

vishu489

Advanced Member level 4
Joined
Aug 28, 2011
Messages
116
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
2,120
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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…