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 / 7979
7978  |  7980
Subject: 
Re: GP2D02 - problems?
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 1 Aug 2000 20:23:45 GMT
Original-From: 
Stephan Adelsberger <ASTEPHAN@DEC1.WI-INF.spamcakeUNI-ESSEN.DE>
Viewed: 
1482 times
  
No, the GPD02 value is never zero.
Here is a table with my readings and the corresponding
distance.

distance  value
in cm

110      68
100      70
90       71
80       72
75       74
70       75
65       76
60       79
55       81
50       83
45       87
40       91
35       97
30       106
25       117
20       135
15       167
10       233

This values may vary a bit. The sensor is designed for  distances above 10 cm.
If the
distance < 10 cm, the values are useless (the values drop again).

However, there is a much more elegant solution
using the following formula by  Ben Jackson (ben@ben.com):

In lugnet.robotics.handyboard, Jean-Michel Mongeau writes:
Does anyone how I could create a lookup table or an algorithm to convert the
output of the Sharp GP2D02 (0 to 255 = byte) to values between 10 and 80 cm,
which is the reading capability of the IR?


You mean like value = 10 + ((70 * b) / 256) ?

A more precise formula from the same author is:
distance = 0.1233 * (1.0320^(float)GP2D02_15)+ 9.3078
(see: http://www.lugnet.com/robotics/handyboard/?n=7313).

For more infos and hints on sensors, especially on GP2D02, visit my home page
(http://dec1.wi-inf.uni-essen.de/~astephan/index/index_l.htm) and click on
sensors.

Hope this helps
Stephan Adelsberger

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stephan Adelsberger
stephan@adelsberger.com
http://go.to/robot



Message is in Reply To:
  GP2D02 - problems?
 
Hi all, I used Gary Livicks routine in connection with the GP2D02 Sensor. When there is no obstacle in front of the sensor the LDC shows: "range is 77". Is that normal. Shouldn't the LCD display zero? If it is normal can you say me why? Thank you (...) (24 years ago, 19-Jul-00, 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