GP2D12 and GP2D120 distance values

45 views
Skip to first unread message

Nathaniel Lewis

unread,
Nov 5, 2009, 9:25:00 PM11/5/09
to hbrob...@googlegroups.com

Does anyone have a set of voltage lookup tables for these sensors or equations to calculate the distance?  I cannot find anything good on Google and since the output is not linear, I really would like to save some time and not have to build them myself. 

don clay

unread,
Nov 5, 2009, 9:41:09 PM11/5/09
to hbrob...@googlegroups.com
Here's for the GP2D12 . See figure 6.

http://www.acroname.com/robotics/parts/SharpGP2D12-15.pdf


Here's for the GP2D120. See page 8.

http://www.acroname.com/robotics/parts/GP2D120_SS.pdf

Alan Marconett

unread,
Nov 6, 2009, 12:02:41 AM11/6/09
to hbrob...@googlegroups.com
I didn't use a table, I used an algorithm. Acroname's article is pretty
good.

http://www.acroname.com/robotics/info/articles/irlinear/irlinear.html

Alan KM6VV

Emil Valkov

unread,
Nov 6, 2009, 12:33:50 AM11/6/09
to hbrob...@googlegroups.com
Hi,

I was going back home last Tuesday on I-280, and saw this.
Some people are definitely having fun...
This looks like the Velodyne lidar, and it was spinning of course.

Emil

IMG_3087s.JPG

George Campbell

unread,
Nov 6, 2009, 1:48:39 AM11/6/09
to hbrob...@googlegroups.com
One of the vehicles was parked at a sandwich place that next to the
building where i work with the driver sitting in by. He said that it
was for google street view.

Ralph Gnauck

unread,
Nov 6, 2009, 12:45:46 PM11/6/09
to hbrob...@googlegroups.com
 

Nathaniel,

 

Attached are 3 XML files with lookup data for 3 different GP2D120 sensors I used.

 

They were calibrated to 1cm increments.

 

Each reading has 2 attributes:  index = the distance in cm, sd= standard deviation for the error in the reading.

 

Each value is the actual ADC value for the reading not the voltage, I think I used a 10bit ADC  with 5 Volt reference so it should be easy to re-scale the  values.

 

Each value was obtained from an average of about 50 readings at that distance, that’s where the SD comes from so you can judge the accuracy of each point.

 

You probably just want to smooth this data and use that.

 

Each file has calibration data for a different actual sensor so averaging across the three files may also give a better general lookup table.

 

If you plot the values they come out just like in the data sheet.

 

Ralph


 


From: Alan Marconett <KM...@SBCglobal.net>
To: hbrob...@googlegroups.com
Sent: Thu, November 5, 2009 9:02:41 PM
Subject: [HBRobotics] Re: GP2D12 and GP2D120 distance values
SensorCalibration4.xml
SensorCalibration2.xml
SensorCalibration3.xml
Reply all
Reply to author
Forward
0 new messages