Go to Post Seats are seats, we're all watching the same thing. - katiyeh07 [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2012, 16:00
SoyStuff SoyStuff is offline
Registered User
FRC #1257
 
Join Date: Jan 2012
Location: Brooklyn
Posts: 29
SoyStuff is a jewel in the roughSoyStuff is a jewel in the roughSoyStuff is a jewel in the rough
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2012, 16:03
nitneylion452's Avatar
nitneylion452 nitneylion452 is offline
Registered User
AKA: Joe Lee
FRC #3167 (Environmental Tectonics Crusaders)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Philadelphia, PA
Posts: 596
nitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud of
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.
__________________
Joe
"The ones who will one day rule the world rule the basketball court today."

http://www.fatherjudgerobotics.webs.com

Volunteer 2012 MAR Region Championship - Field Reset
Volunteer 2013 MAR Region Championship - Field Reset
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2012, 16:14
electroken's Avatar
electroken electroken is offline
Electron Tamer
AKA: Ken Pontbriant
FRC #0230 (Gaelhawks)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Shelton, CT
Posts: 177
electroken is a jewel in the roughelectroken is a jewel in the roughelectroken is a jewel in the rough
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2012, 16:22
nitneylion452's Avatar
nitneylion452 nitneylion452 is offline
Registered User
AKA: Joe Lee
FRC #3167 (Environmental Tectonics Crusaders)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Philadelphia, PA
Posts: 596
nitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud of
Re: Ultrasonic Sesnor Accuracy

Quote:
Originally Posted by electroken View Post
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.
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.
__________________
Joe
"The ones who will one day rule the world rule the basketball court today."

http://www.fatherjudgerobotics.webs.com

Volunteer 2012 MAR Region Championship - Field Reset
Volunteer 2013 MAR Region Championship - Field Reset
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2012, 16:54
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Ultrasonic Sesnor Accuracy

Here's the spec sheet for the sensor.

Quote:
Each time after the LV-MaxSonarŽ-EZ1™ is powered up, it will calibrate during its first read cycle. The sensor uses this
stored information to range a close object. It is important that objects not be close to the sensor during this calibration
cycle. The best sensitivity is obtained when it is clear for fourteen inches, but good results are common when clear for at
least seven inches. If an object is too close during the calibration cycle, the sensor may then ignore objects at that distance.
I found when testing the sensor that the signal is very susceptible to interference from other irregular obstacles (i.e. it ignores walls unless directly facing them) in its field of vision (which I estimated to be roughly 60 degrees, centered on its line of sight). The waveform is highly erratic when there are multiple objects in its field of vision, and oscillates between the closest and farthest object it can see.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2012, 17:21
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
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.
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2012, 20:31
SoyStuff SoyStuff is offline
Registered User
FRC #1257
 
Join Date: Jan 2012
Location: Brooklyn
Posts: 29
SoyStuff is a jewel in the roughSoyStuff is a jewel in the roughSoyStuff is a jewel in the rough
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.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-02-2012, 21:08
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Ultrasonic Sesnor Accuracy

Quote:
Originally Posted by SoyStuff View Post
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.
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.
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote
  #9   Spotlight this post!  
Unread 02-02-2012, 23:16
SoyStuff SoyStuff is offline
Registered User
FRC #1257
 
Join Date: Jan 2012
Location: Brooklyn
Posts: 29
SoyStuff is a jewel in the roughSoyStuff is a jewel in the roughSoyStuff is a jewel in the rough
Re: Ultrasonic Sesnor Accuracy

Quote:
Originally Posted by Chris Hibner View Post
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.
That's what we did, too. Unfortunately, it doesn't seem to be working. The sensor is just extremely inaccurate. Is it possible that there is something wrong with it, or that it was wired improperly?
Reply With Quote
  #10   Spotlight this post!  
Unread 02-02-2012, 23:54
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Ultrasonic Sesnor Accuracy

Quote:
Originally Posted by SoyStuff View Post
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.
As I pointed out in my post, make sure that 1)the space in front of the sensor is kept clear when you first provide power to it and that 2)there's nothing interfering with your readout and introducing error to your testing; e.g. if you're testing distance with just a pencil or some thin item, it's not going to work.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
Reply With Quote
  #11   Spotlight this post!  
Unread 03-02-2012, 00:10
Dale's Avatar
Dale Dale is offline
Head Coach & Mentor
AKA: Dale Yocum
FRC #1540 (Flaming Chickens)
Team Role: Coach
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Portland, OR
Posts: 504
Dale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud ofDale has much to be proud of
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.
__________________
2016 PNW Championship Chairman's; 2016 Winner Oregon City District, 2015 PNW Championship Chairman's; 2015 PNW District Engineering Inspiration; 2015 PNW District Finalist; 2014 PNW Championship Chairman's; 2014 Championship Innovation in Controls; 2013 Chairman's (Oregon); 2013 Finalist (OKC); 2012 Winner (OKC); 2012 Chairman's (OKC); 2012 Woody Flowers (Oregon); 2011 Volunteer of the Year (Oregon); 2011 Finalist & Captain (San Diego); 2011 Innovation in Control (San Diego); 2010 & 2007 Chairman's (Oregon); 2010 Regional Champions (Colorado); 2010 Innovation in Control (Colorado); 2009 & 2008 Engineering Inspiration (Oregon); 2008 Regional Champions (Oregon); 2007 Regional Finalist (Oregon); 2005 Rookie Inspiration (PNW)
Reply With Quote
  #12   Spotlight this post!  
Unread 03-02-2012, 07:37
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Ultrasonic Sesnor Accuracy

Quote:
Originally Posted by SoyStuff View Post
That's what we did, too. Unfortunately, it doesn't seem to be working. The sensor is just extremely inaccurate. Is it possible that there is something wrong with it, or that it was wired improperly?
Make sure everything is out of the way between the sensor and the wall(including the tape measure you're measuriung with). Make sure your wall is flat and big (don't do it near doors, etc). Make sure your sensor wires do not go near any motors or the radio.

Also, increase the oversampling and averaging. That will settle the sensor noise and improve your accuracy.
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote
  #13   Spotlight this post!  
Unread 03-02-2012, 22:48
SoyStuff SoyStuff is offline
Registered User
FRC #1257
 
Join Date: Jan 2012
Location: Brooklyn
Posts: 29
SoyStuff is a jewel in the roughSoyStuff is a jewel in the roughSoyStuff is a jewel in the rough
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.
Reply With Quote
  #14   Spotlight this post!  
Unread 03-02-2012, 22:58
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Ultrasonic Sesnor Accuracy

Quote:
Originally Posted by SoyStuff View Post
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.
Excellent. Good to hear. What accuracy to you have now?
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote
  #15   Spotlight this post!  
Unread 04-02-2012, 07:32
ayeckley's Avatar
ayeckley ayeckley is offline
Registered User
AKA: Alex Yeckley
FRC #2252 (Mavericks)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Sandusky, OH
Posts: 268
ayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond repute
Re: Ultrasonic Sesnor Accuracy

Just to add another data point, when we first tested the sensor we found huge intermittent drops in the measured range when more than 8' from the target wall, even with a properly-initialized sensor, perpendicular target, clear range to target etc. Two days later the problem did not recur even with no changes to the hardware or software. The leading theory so far (which we will test at the next opportunity) is that all of the grinding noise from the welding class going on next door had a high ultrasonic spectral content which interfered with the unit. Without the grinding noise two days later, the sensor was well-behaved.
__________________

Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi