Society of Robots - Robot Forum

Software => Software => Topic started by: Admin on July 04, 2008, 03:57:29 PM

Title: got sharp IR calibration data?
Post by: Admin on July 04, 2008, 03:57:29 PM
I'm writing up code that can calibrate sharp IR data from all the models we use into distances for microcontrollers.

If you have ADC value to distance measurement data, please upload it here!

So far I have the GP2D12 finished. I'll post the code in the coming days for everyone to use.
Title: Re: got sharp IR calibration data?
Post by: bens on July 04, 2008, 05:18:08 PM
Don't the datasheets give you a voltage vs distance curve?  Output voltage is approximately linear as a function of 1/distance.

- Ben

e.g. http://www.pololu.com/catalog/product/136
Title: Re: got sharp IR calibration data?
Post by: vidam on July 04, 2008, 05:47:14 PM
This is uncanny, but I'm working on a tutorial/writeup for the 3rd robot contest that uses the sharp ir for obstacle avoidance. I guess you will beat me to it, Admin, since I won't have it done till later this week. Maybe we can compare notes then.  ;)

Title: Re: got sharp IR calibration data?
Post by: Admin on July 04, 2008, 07:33:44 PM
hmmmm good point bens . . . back in the day, Sharp didn't release this kind of useful data :P

I'll have it finished tonight.
Title: Re: got sharp IR calibration data?
Post by: ahab on July 05, 2008, 01:32:17 PM
The information at these pages was a lot of help for me:

http://www.acroname.com/robotics/info/articles/sharp/sharp.html
http://www.acroname.com/robotics/info/articles/irlinear/irlinear.html
Title: Re: got sharp IR calibration data?
Post by: Admin on July 05, 2008, 01:59:17 PM
forgot to mention I finished it . . . look at sensors.c in my Axon source code:
http://www.societyofrobots.com/axon/downloads/Axon_Source_070408.zip