View Single Post
  #7   Spotlight this post!  
Unread 06-02-2008, 13:51
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
Re: What's the best ultrasonic?

We're using a Vex unit. There's driver code available on this forum. Search for "sonar".

What you are seeing does not seem unusual. If there is just one or two bad readings in a row, you can write code to ignore sudden changes.

Also, consider that vibrations from the motors, etc, can confuse the sensor. We were getting mysterious readings but only when the motors were running. Unbolting the sensor from the bot and holding it by hand eliminated the problem. We remounted it using foam.

Note that if you use bolts through the foam to the chassis, the bolts will conduct the vibrations past the foam to the sensor. Mount the sensor to the foam, then the foam to the chassis.
__________________
Trenton Tornadoes 381
2004 Philadelphia Regional Winners
2006 Xerox Creativity Award
---
My corner of the USPTO.
My favorite error message from gcc: main is usually a function
My favorite error message from Windows: There is not enough disk space available to delete this file.