Eddie Robot - Getting Distance in cm from PING Sensors
cch80
Posts: 1
Hi,
Let say when I issued a PING command, I got a hex value of 133.
How do I convert this value to distance in centimeters (cm)?
I'm using PING Ultrasonic Distance Sensor (#28015) on my Eddie Robot Platform.
Thanks!
Regards,
Roland.
Let say when I issued a PING command, I got a hex value of 133.
How do I convert this value to distance in centimeters (cm)?
I'm using PING Ultrasonic Distance Sensor (#28015) on my Eddie Robot Platform.
Thanks!
Regards,
Roland.
Comments
The description of each function of the "Ping))) Object V1.2 " @: http://obex.parallax.com/objects/114/ is noted below. The basic returned value is microsecond "ticks". Inches, Millimeters and Centimeters are returned as just conversions from the ticks value...
Here are the function descriptions for the Ping.spin object. Just use the "Millimeters(Pin)" method/function:
dgately