View Single Post
  #5   Spotlight this post!  
Unread 08-05-2006, 00:13
Steve0100's Avatar
Steve0100 Steve0100 is offline
Steve0100
no team
 
Join Date: Apr 2006
Location: PDX
Posts: 11
Steve0100 is on a distinguished road
Re: Ultrasonic will not work with another Ultrasonic plz help

Quote:
Originally Posted by Mike Betts
Jackel,

Each sensor must be on its own interrupt line and digital output line. Also, you must stagger the output pulse so that both will not transmit a pulse at the same time.

I can give you code fragments on how to so it in C but not EasyC.

Mike
This is the same problem that I just encountered, in trying to use 4 Ultrasonic sensors on a 4- wheel holonomic robot. Very very frustrating.

Does anyone have an EasyC solution to using multiple sonar sensors? I've tried using waits in between Ultrasonic sensor readings to try and avoid timing loop interference, but that has not worked. Each sensor works individually but not when more than one is used at a time. Is there too much latency in Starting and Stopping each individual Ultrasonics sensor in turn?

Thanks!