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 / 7668
7667  |  7669
Subject: 
Re: Sonar
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Sun, 26 Mar 2000 16:45:47 GMT
Original-From: 
Will Bain <WILLB@SELWAY.UMT.EDUihatespam>
Viewed: 
2159 times
  
Martin Ziegler wrote:

Hi

I've a Polaroid Sonar Ranging Modul. The longest distance I can mesaure is
about 2,7 meters.
In my opinion it's not the hardware, but as the result is an integer, so it
can't be greater than 32768. Right?
Has anybody developed another programm, to measure longer distances?

Thanks

Martin

That sounds correct. Someone else asked about that last year. Try searching the mailing list archives.

The problem is not just that the result is an integer, but that it's a signed integer. You effectively only get 15 bits of information out of it. If you could figure out a way to interpret the answer as an unsigned, then you could effectively get up to twice the maximum range.

Of course, that still wouldn't get you the maximum available from the hardware, about 10.6 meters. To do that, you'd need at least an 18-bit counter (i.e., a long integer). Perhaps you could figure out how to change just the IC code to count (in a separate variable) how many times the counter wraps around? Best of luck!

-- Will

+---------------------------------------------------------+
|                       ^^     <^ ^>                      |
|                     /  òó    ó°° \                      |
|                     /  =Y=    U   \                     |
|       Wendy, Will, Tatoosh & Tenzing                    |
+---------------------------------------------------------+

We were poor when I was young, but the difference then was
the government didn't come around telling you you were
poor.                                     -- Ronald Reagan



Message is in Reply To:
  Sonar
 
Hi I've a Polaroid Sonar Ranging Modul. The longest distance I can mesaure is about 2,7 meters. In my opinion it's not the hardware, but as the result is an integer, so it can't be greater than 32768. Right? Has anybody developed another programm, (...) (25 years ago, 26-Mar-00, to lugnet.robotics.handyboard)

4 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