Take a constant (about 6000 iirc), divide it by the value read from
the GP2d02 and the result is the distance in cm.

2008/11/15, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Issue 46: GP2D02 library
> http://code.google.com/p/jallib/issues/detail?id=46
>
> New issue report by sebastien.lelong:
> Add a new external library for the GP2D02 IR ranger. This is a distance
> sensor from Sharp, based on infra-red beams. Protocol is quite basic, using
> two pins:
>
>  * you can on a pin1
>  * wait a little
>  * then read on the other pin2, clocking with pin1
>
> Datasheet can be found here:
> http://www.chipdocs.com/datasheets/datasheet-pdf/Sharp/GP2D02.html
>
>
>
>
>
> Issue attributes:
>        Status: New
>        Owner: sebastien.lelong
>        Labels: Type-Task Priority-Low Component-External
>
> --
> You received this message because you are listed in the owner
> or CC fields of this issue, or because you starred this issue.
> You may adjust your issue notification preferences at:
> http://code.google.com/hosting/settings
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to