To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 5758
5757  |  5759
Subject: 
Re: Sharp GP2D02 code available
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Mon, 8 Mar 1999 01:01:19 GMT
Original-From: 
Terry P. Gathright <669@WORLDNET.nospamATT.NET>
Viewed: 
834 times
  
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 has 1 Reply:
  RE: Sharp GP2D02 code available
 
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 (...) (25 years ago, 8-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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR