Subject:
|
Sharp GP2D02 code available
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Wed, 3 Mar 1999 18:46:38 GMT
|
Original-From:
|
Barry Brouillette <barry@/AvoidSpam/sgi.com>
|
Viewed:
|
1517 times
|
| |
 | |
Hi,
I just posted a short tutorial and software to use the Sharp GP2D02 infrared
ranging sensor with the Handy Board. This sensor is very small, relatively
cheap (about $21) and gives an accurate distance reading for objects that
are between 10cm and 80cm from the sensor. It sends a very narrow beam out
and then triangulates the distance using an array of sensors behind a second
lens. The 8 bit digital distance value is then clocked into a single
digital input on the Handy Board. The software, as written, requires the
digital outs from the Expansion Board but it could be easily modified to use
the single digital out available on the standard Handy Board.
The program is set up to read two GP2D02's simultaneously and store their
values into two global variables which are accessible from IC. These global
variables are updated every 73 milliseconds with two new distance values. It
could easily be extended to talk to more. There is a pointer to the code
off of the main Handy Board home page or you can go directly to it at:
http://reality.sgi.com/employees/barry_detroit/GP2D02_1.html
I hope it is of use to lots of you.
Barry Brouillette
|
|
Message has 1 Reply:  | | Re: Sharp GP2D02 code available
|
| Thanks Barry, great work. I do have one little question: As I read the data sheet of the GP2D02 ( (URL) ) I saw some timing specifications that i think are not taken care of in your software. Please correct me if I'm wrong. The timing chart shows (...) (26 years ago, 4-Mar-99, to lugnet.robotics.handyboard)
|
2 Messages in This Thread:   
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|