Sharp IR
ajward
Posts: 1,130
in Accessories
Can anyone tell me the formula to convert the voltage output of the Sharp IR sensor to distance (in SimpleIDE). I have the 10 to 80 CM version.
Thanks for any wisdom!!!!
Amanda
Thanks for any wisdom!!!!
Amanda
Comments
Now just swap that into SimpleIDE and you're golden!
That's actually a useful PDF to save, it shows how to use the sensor AND an ADC0831.
http://mech.vub.ac.be/teaching/info/mechatronica/finished_projects_2012/Twinbot1/media/downloads/SharpGP2D12Snrs.pdf
Hello
Do you find the good equation to convert Volt in centimeter ?
I don't understand the basic code program...
If find it could you share your code please ? Thx
Hi!
Due to my inability to apply myself to see most projects through to completion, this one, as well, has fallen by the wayside. Still, while it was in focus, I realized I didn't need the sensor to provide exact distances. As long as I could find the output value when the sensor was approximately 12 to 18 inches from an object, I was good to go.
My application was just to let Bob, my BOE/Activity Bot, know when something was close enough to require some evasive action. Precision just wasn't needed.
Still, I might apply myself to find something approximating exact ranging, though I think the Ping))) sensor would be a better choice.
Amanda