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 / 7829
7828  |  7830
Subject: 
Re: Ultrasonic maximum timing
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 16 May 2000 16:29:01 GMT
Original-From: 
Will Bain <willb@selway.+saynotospam+umt.edu>
Viewed: 
924 times
  
Adam Oliver wrote:

Greetings all,

I'm using a homebuilt sonar based on Kam Leang's design, which seems to be
working quite well. I just have one question with regard to the timing on
the input port. I'm using the same sonar driver as for the polaroid - right
now I can't remember which input is used for the return "echo".

My question is, what is the maximum time that the timer can measure before
returning a -1? I'm curious, as I'd like to know the maximum distance I can
measure on the HB, so I can set my sonar unit up accordingly.

Thanks for your help
Adam


I think the register maxes out at 32767.  Since it's a 2 MHz processor, this gives:

(32767 cycles) / (2,000,000 cycles/second) = 0.01638 seconds

Up here in the Rocky Mountains, the speed of sound is about one centimeter every 143 half-microseconds, so the maximum range is 2.29 meters.

-- Will

+---------------------------------------------------------+

The big thieves hang the little ones       -- Czech proverb



Message is in Reply To:
  Ultrasonic maximum timing
 
Greetings all, I'm using a homebuilt sonar based on Kam Leang's design, which seems to be working quite well. I just have one question with regard to the timing on the input port. I'm using the same sonar driver as for the polaroid - right now I (...) (25 years ago, 16-May-00, to lugnet.robotics.handyboard)

3 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