Go to Post A Guru teaching batteries at Exide: "Do not draw your power from up here, by your terminals. You must reach down deep into your plates and pull the energy from your entire being! You must prove yourself worthy to be FIRST power cells!" - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 31-01-2017, 10:29
trycatch's Avatar
trycatch trycatch is offline
Registered User
FRC #5858
 
Join Date: Nov 2015
Rookie Year: 2015
Location: AL
Posts: 44
trycatch is on a distinguished road
Reducing noise on the MaxBotix ultrasonics?

Happy mid-build season, all.

This is our first year trying to use the MaxBotix ultrasonic, and we're getting a *lot* of jumping around and noise. Admittedly, I don't have a big totally open room to test in yet, but it seems like there's got to be some way to do some smoothing to minimize reflections? Any suggestions?
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2017, 11:01
codetheweb's Avatar
codetheweb codetheweb is offline
Registered User
FRC #3299 (The Warehouse Crew)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Chaska, MN
Posts: 10
codetheweb is an unknown quantity at this point
Re: Reducing noise on the MaxBotix ultrasonics?

As long as the sensor is fairly parallel to the wall, there shouldn't be too much noise (±0.5-1 cm). How are you reading the value? Over the analog output?

You might try accumulating 5-6 readings then taking the median.

Are you currently using a single sensor? We tried using two, but gave up because of the noise.

Last edited by codetheweb : 31-01-2017 at 11:05.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2017, 11:05
trycatch's Avatar
trycatch trycatch is offline
Registered User
FRC #5858
 
Join Date: Nov 2015
Rookie Year: 2015
Location: AL
Posts: 44
trycatch is on a distinguished road
Re: Reducing noise on the MaxBotix ultrasonics?

Just one - I was doing it in a kitchen, so I was probably catching a lot of stuff inside the cone being emitted, rather than the wall I was pointing at. That gives me hope it'll be cleaner on a practice field. Our goal is to zero in on when we're in gear-peg-release-distance.
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2017, 11:10
tr6scott's Avatar
tr6scott tr6scott is online now
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 535
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Reducing noise on the MaxBotix ultrasonics?

There was a team that posted their solution in previous years... I don't have link saved... but it boils down to, make x samples, sort the values, throw out the the a few of the largest, and a few of smallest, then average.

example, take 10 samples, throw top 2 and bottom 2 out, average over the remaining 6.

In the past these sensors have proven pretty good when used this way. The problem is when they are off, they are way off, so even a simple average data gets skewed.
__________________
The sooner we get behind schedule, the more time we have to catch up.

Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2017, 11:11
codetheweb's Avatar
codetheweb codetheweb is offline
Registered User
FRC #3299 (The Warehouse Crew)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Chaska, MN
Posts: 10
codetheweb is an unknown quantity at this point
Re: Reducing noise on the MaxBotix ultrasonics?

You might want to have a look at this.
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2017, 11:41
dk5sm5luigi's Avatar
dk5sm5luigi dk5sm5luigi is offline
Registered User
AKA: Nick Galotti
FRC #1735 (Green Reapers)
Team Role: Mentor
 
Join Date: Nov 2001
Rookie Year: 1997
Location: Worcester
Posts: 294
dk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud of
Send a message via AIM to dk5sm5luigi
Re: Reducing noise on the MaxBotix ultrasonics?

Given the noise we had seen in the past we switched to IR Rangefinders and probably won't go back. We found one that does up to 18 feet and the noise was easier to work with than the ultrasonic.

We listed them here: http://findrobotparts.com/sensors/ca...es/13/tags/635
__________________
Team 1735 Green Reapers: 2005-Present
Team 190 Gompei: 2001-2005
Team 155 Technonuts: 1997-2001
http://www.first-a-holics.com/
http://www.findrobotparts.com/
Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2017, 13:45
tr6scott's Avatar
tr6scott tr6scott is online now
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 535
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Reducing noise on the MaxBotix ultrasonics?

Quote:
Originally Posted by dk5sm5luigi View Post
Given the noise we had seen in the past we switched to IR Rangefinders and probably won't go back. We found one that does up to 18 feet and the noise was easier to work with than the ultrasonic.

We listed them here: http://findrobotparts.com/sensors/ca...es/13/tags/635
Have you tested them for placing the gear? We are having issues with vision targets messing with the IR readings.
__________________
The sooner we get behind schedule, the more time we have to catch up.

Reply With Quote
  #8   Spotlight this post!  
Unread 31-01-2017, 13:50
dk5sm5luigi's Avatar
dk5sm5luigi dk5sm5luigi is offline
Registered User
AKA: Nick Galotti
FRC #1735 (Green Reapers)
Team Role: Mentor
 
Join Date: Nov 2001
Rookie Year: 1997
Location: Worcester
Posts: 294
dk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud of
Send a message via AIM to dk5sm5luigi
Re: Reducing noise on the MaxBotix ultrasonics?

Quote:
Originally Posted by tr6scott View Post
Have you tested them for placing the gear? We are having issues with vision targets messing with the IR readings.
We haven't tried yet. Weather is killing us. We have only met 2 days a week for what is going to be 3 weeks now. (We usually only meet 4 days a week)
__________________
Team 1735 Green Reapers: 2005-Present
Team 190 Gompei: 2001-2005
Team 155 Technonuts: 1997-2001
http://www.first-a-holics.com/
http://www.findrobotparts.com/
Reply With Quote
  #9   Spotlight this post!  
Unread 31-01-2017, 15:42
trycatch's Avatar
trycatch trycatch is offline
Registered User
FRC #5858
 
Join Date: Nov 2015
Rookie Year: 2015
Location: AL
Posts: 44
trycatch is on a distinguished road
Re: Reducing noise on the MaxBotix ultrasonics?

Quote:
Originally Posted by tr6scott View Post
There was a team that posted their solution in previous years... I don't have link saved... but it boils down to, make x samples, sort the values, throw out the the a few of the largest, and a few of smallest, then average.

example, take 10 samples, throw top 2 and bottom 2 out, average over the remaining 6.

In the past these sensors have proven pretty good when used this way. The problem is when they are off, they are way off, so even a simple average data gets skewed.
Ooooh, that's pretty clever. I hadn't considered that!

Quote:
Originally Posted by dk5sm5luigi View Post
Given the noise we had seen in the past we switched to IR Rangefinders and probably won't go back. We found one that does up to 18 feet and the noise was easier to work with than the ultrasonic.

We listed them here: http://findrobotparts.com/sensors/ca...es/13/tags/635
That's also a possibility!

Does taking it out of continuous mode help? I would think so, but haven't messed with it much yet.
Reply With Quote
  #10   Spotlight this post!  
Unread 31-01-2017, 15:51
tr6scott's Avatar
tr6scott tr6scott is online now
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 535
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Reducing noise on the MaxBotix ultrasonics?

Quote:
Originally Posted by dk5sm5luigi View Post
We haven't tried yet. Weather is killing us. We have only met 2 days a week for what is going to be 3 weeks now. (We usually only meet 4 days a week)
Well good luck with the weather, and might want to have a plan B in your pocket.
__________________
The sooner we get behind schedule, the more time we have to catch up.

Reply With Quote
  #11   Spotlight this post!  
Unread 02-02-2017, 19:02
golf_cart_john's Avatar
golf_cart_john golf_cart_john is offline
Registered User
AKA: John W
FRC #0095 (Grasshoppers)
Team Role: Coach
 
Join Date: Sep 2003
Rookie Year: 2004
Location: Lebanon, NH
Posts: 37
golf_cart_john will become famous soon enoughgolf_cart_john will become famous soon enough
Re: Reducing noise on the MaxBotix ultrasonics?

Quote:
Originally Posted by dk5sm5luigi View Post
Given the noise we had seen in the past we switched to IR Rangefinders and probably won't go back. We found one that does up to 18 feet and the noise was easier to work with than the ultrasonic.

We listed them here: http://findrobotparts.com/sensors/ca...es/13/tags/635
We ran into some inconsistency in range with those. They seemed to report a range of a few inches when the wall is perpendicular to the sensor, then over a foot when the wall is still a few inches away but several degrees away from a "square" approach.

If I'm not mistaken, they judge range by reflection brightness, rather than time of flight or angle. So they're super sensitive to the reflectivity of the target. Since the wall of the airship is prime for specular reflections, its reflectivity varies widely based on how perpendicular the sensor is to the wall.

Did you find this to be an issue as well?
Reply With Quote
  #12   Spotlight this post!  
Unread 02-02-2017, 19:05
Knufire Knufire is offline
Rose-Hulman Institute of Technology
no team
Team Role: College Student
 
Join Date: Sep 2009
Rookie Year: 2010
Location: Terre Haute, IN
Posts: 749
Knufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond repute
Re: Reducing noise on the MaxBotix ultrasonics?

This might be of interest to a few of you: https://www.sparkfun.com/products/14032

Documentation states that the laser is Class 1, which should make it FRC legal.
__________________
Team 469: 2010 - 2013
Team 5188: 2014 - 2016
NAR (VEX U): 2014 - Present
Reply With Quote
  #13   Spotlight this post!  
Unread Yesterday, 14:38
ScottW of MaxBo ScottW of MaxBo is offline
Registered User
no team
 
Join Date: Feb 2008
Location: Brainerd, MN
Posts: 19
ScottW of MaxBo is a glorious beacon of lightScottW of MaxBo is a glorious beacon of lightScottW of MaxBo is a glorious beacon of lightScottW of MaxBo is a glorious beacon of lightScottW of MaxBo is a glorious beacon of lightScottW of MaxBo is a glorious beacon of light
Re: Reducing noise on the MaxBotix ultrasonics?

Hello, this is Cody Carlson from MaxBotix Inc.,

I saw your forum post, and I would like to lend some assistance.

You state: This is our first year trying to use the MaxBotix ultrasonic, and we're getting a *lot* of jumping around and noise.

I apologize as I'm unsure of which MaxBotix ultrasonic sensor you are using. We did send an MB1013 to every team in the First Robotics completion this year. This sensor has a relatively wide beam pattern. As such if there is clutter around the edge of its detection zone, you would see range readings jump. Two options that you could employ would be using blinders to narrow the line of sight of the sensor or test a less sensitive sensor like the MB1023, MB1033, or MB1043 where each is less sensitive than the previous model.

If you would like to look at making a blinder. This is, in general, a large flat object that runs parallel to the sensor to restrict its beam width. Some customers even attempt to make horns to restrict the beam width, but this is a more involved solution.

If you would like any help with sensor selection please let us know.

Sensor Selection Guide: http://www.maxbotix.com/SelectionGui...tion-Guide.htm

Please let me know if you have any questions.

Best regards,

Cody Carlson
Technical Support
of MaxBotix Inc.
Phone: (218) 454-0766
Fax: (218) 454-0768
Email: techsupport@maxbotix.com

Web: www.maxbotix.com

Follow us on Facebook at: http://www.facebook.com/pages/MaxBot...25159384204938

Technical support and sales are subject to
the terms and conditions listed on our
website at http://www.maxbotix.com/
__________________
Best regards,

Scott Wielenberg
Technical Support & Sales
of MaxBotix Inc.
Phone: (218) 764-2489 Ext. 2
Fax: (218) 764-2194
Email: scott@maxbotix.com
Web: www.maxbotix.com
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 14:52.

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