|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Ultrasonic Sesnor Accuracy
Has anyone managed to get the advertised 3cm accuracy using the Maxbotix Ultrasonic Rangefinder provided with the Kit of Parts? If so, what did you do to achieve this? Our sensor seems be returning data that is off by more than 40cm.
|
|
#2
|
||||
|
||||
|
Re: Ultrasonic Sesnor Accuracy
I don't have experience with that particular ultrasonic sensor, but it seems like you need to calibrate it. Should be directions in a manual or online for how to do that as it varies by sensor.
|
|
#3
|
||||
|
||||
|
Re: Ultrasonic Sesnor Accuracy
The speed of sound (or ultrasound) varies with the density of air. That means temperature, humidity, and barometric pressure are all working against you in your quest for an accurate distance measurement.
|
|
#4
|
||||
|
||||
|
Re: Ultrasonic Sesnor Accuracy
But that wouldn't lead to a difference of 40cm. At 70 deg F, C is ~344 m/s, at 60 it is 340 m/s and at 80 it is 347 m/s. Not a notable difference. Also barometric pressure is fair to assume constant, unless he's somewhere significantly above or below sea level.
|
|
#5
|
||||
|
||||
|
Re: Ultrasonic Sesnor Accuracy
Here's the spec sheet for the sensor.
Quote:
|
|
#6
|
||||||
|
||||||
|
Re: Ultrasonic Sesnor Accuracy
After we calibrated the sensor, we saw accuracy to within a half an inch as long as we were 90 degrees to a wall and there were no interfering objects. Interfering objects will probably be a big issue, so you'll need to come up with a way to recognize them.
|
|
#7
|
|||
|
|||
|
Re: Ultrasonic Sesnor Accuracy
Okay then. Pardon my ignorance, but how exactly would one go about calibrating the ultrasonic sensor? Is there a specific process that we are supposed to follow, or do you just mean that we should get some data and work out a formula, which is what we've done.
|
|
#8
|
||||||
|
||||||
|
Re: Ultrasonic Sesnor Accuracy
We took measurements every 6 inches. We wrote on a piece of paper the actual distance (measured via tape measure) and the voltage reading from LabVIEW. Put everything in an Excel spreadsheet, then use y = mx+b to find the best fit "m" (i.e. slope or scale factor) to make the data work best.
|
|
#9
|
|||
|
|||
|
Re: Ultrasonic Sesnor Accuracy
Quote:
|
|
#10
|
||||||
|
||||||
|
Re: Ultrasonic Sesnor Accuracy
Quote:
Also, increase the oversampling and averaging. That will settle the sensor noise and improve your accuracy. |
|
#11
|
|||
|
|||
|
Re: Ultrasonic Sesnor Accuracy
Thanks for your help, everybody. We've got it working properly now. We were measuring distance to a wooden board, but the board was not quite perpendicular to the sensor, and it was warped. Today, we got a bigger, straighter board, used a measuring tape instead of a bunch of meter sticks, and took readings at intervals of 50cm. Now, we have an equation that works. Again, we appreciate your help. We didn't realize that the angle of the board would have such a tremendous effect. To compensate for that, we've coded some gyro stuff, and everything seems to be going smoothly so far.
|
|
#12
|
||||
|
||||
|
Re: Ultrasonic Sesnor Accuracy
Quote:
|
|
#13
|
||||
|
||||
|
Re: Ultrasonic Sesnor Accuracy
Since the analog input on the breakout is only 8 bits and everything is housed on a very electrically noisy robot I'll bet at the end of the day you'll get about 7 bits of dependable data out of the analog port of the sensor. Don't expect too much from it and you'll be fine. The 3cm is the theoretical accuracy but not with our hardware or environment.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|