Subject:
|
RE: Sharp GP2D02 code available
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Mon, 8 Mar 1999 07:36:04 GMT
|
Original-From:
|
Rien Matthijsse <marobi@direct.a2000ANTISPAM.nl>
|
Viewed:
|
986 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
Terry,
Understand that the GP2D05 is a different device than the GP2D02.
For the '05' you can set a analog threshold and the digital output read 1 or
0 depending
whether the distance is according to this set threshold.
The '02' device has a real serial output to send a byte.
This means that it has no use to use the code of Barry to drive your '05'.
Rgrds Rien
rien@direct.A2000.nl
> -----Original Message-----
> From: Terry P. Gathright [mailto:669@worldnet.att.net]
> Sent: Monday, March 08, 1999 2:01 AM
> To: Barry Brouillette; 'handyboard@media.mit.edu'
> Subject: Re: Sharp GP2D02 code available
>
>
> Hi Barry,
> I have a GP2D05 from Acroname Inc., Have wired as per
> instructions black
> for gnd., green for Vin, Yellow for Vout, and red for
> Vcc.The pin outs are
> different than the GP2D02.
> Then installed the diode and connectors for the
> handyboard .as per
> instructions.
> Downloaded the software,loaded the software to the
> hb.(GP2D02_icb and
> TS_gp2.c) Handyboard lcd reads
> <GP2D02: 0 0>.
> Problem is: Where exactly do I plug the digital out
> from the GP2D05 and the
> digital out from the handyboard?
>
> Thanks in advance
> Terry Gathright
>
> ----------
> > From: Barry Brouillette <barry@SGI.com>
> > To: 'handyboard@media.mit.edu'
> > Subject: Sharp GP2D02 code available
> > Date: Wednesday, March 03, 1999 12:46 PM
> >
> > 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 is in Reply To:
![](/news/x.gif) | | Re: Sharp GP2D02 code available
|
| Hi Barry, I have a GP2D05 from Acroname Inc., Have wired as per instructions black for gnd., green for Vin, Yellow for Vout, and red for Vcc.The pin outs are different than the GP2D02. Then installed the diode and connectors for the handyboard .as (...) (25 years ago, 8-Mar-99, to lugnet.robotics.handyboard)
|
2 Messages in This Thread: ![Re: Sharp GP2D02 code available -handyboard@media.mit.edu (Terry P. Gathright) (8-Mar-99 to lugnet.robotics.handyboard)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|