Go to Post I've found that being outraged on behalf of others is often a misuse of energy. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 21-02-2016, 12:01
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
Questionable Results from Ultrasonic

I'm wondering if anyone else has had this problem...,

We've looked into using ultrasonic sensors from maxbotix to go ahead and try distance sensing for aiming. We did some benchmarks under very optimal conditions (hard target surface, no objects to the side to accidentally detect, and so on) and the results aren't stunning. After a very short distance ( 1 - 2 meters), it seems that the distance readings tend to break down. After a couple of meters, it'll return the correct distance half the time and then return something way to short. Has anyone else had this problems with the Ultrasonic sensors? If so, how did you over come it?

-Cinnamon Toast
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2016, 15:32
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,575
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Questionable Results from Ultrasonic

I'm not sure from your description which sensors you're using, or whether you're having trouble at ranges longer than 1-2 meters or shorter than 1-2 meters. Most inexpensive ultrasonic sensors have a minimum effective range of several feet. If you want short ranges, look into optical sensors; Sharp makes a number of short-range optical sensors (presumably designed for copiers) that they market as standalone sensors (Pololu, RobotShop, and SparkFun carry some of them, as well as many other vendors). We've had performance fully up to the specifications with several of these.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2016, 21:15
matthewdenny's Avatar
matthewdenny matthewdenny is offline
Registered User
FRC #6054 (Dukes)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 308
matthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant future
We had an ultrasonic that worked great up to 15' or so, unless the robot was moving. The readings would be 1/2 to 1/4 the actual value. Couldn't figure out why. Had to scrap the idea.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2016, 21:10
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Re: Questionable Results from Ultrasonic

Gave up on them two years ago. Never could seem to get consistent distance readings from them.
Reply With Quote
  #5   Spotlight this post!  
Unread 22-02-2016, 23:47
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Questionable Results from Ultrasonic

There are issues when more than robot is using the same type of ultrasonic sensor on the field. They can interfere with each other if they use the same frequencies.

Also, you should implement a circular buffer that takes median readings to filter out noisy/bad reads:

http://www.maxbotix.com/articles/129.htm

We used to use these ultrasonics on our robot with some success, but don't expect really great precision. Often you just aren't sure which surface you are measuring distance to, as the detection cone can be pretty wide. To use this year's field as an example, are you detecting the wall of the tower? back of a goal? lip on the batter? batter divider? hanging bar? any of those surfaces will give you slightly different distance reads.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
  #6   Spotlight this post!  
Unread 23-02-2016, 13:33
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Re: Questionable Results from Ultrasonic

You may wish to consider this:
https://acroname.com/products/SHARP-...16-GP2Y0A710YK
We've had some good results using IR sensors for distance measurement. This sensor has a pretty decent range though we've not used them yet. Ours have been much shorter in range for detecting objects on the robot itself. If you decide to try it let us know how it worked out for you.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-03-2016, 21:08
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
Re: Questionable Results from Ultrasonic

These IR distance sensors look like quite the feasible alternative. Does anyone have some info on how to implement them? Wiring and programming wise? The ultra sonics are easy as you just read the milivolts back and do the conversion with the multiplication values offered by maxbotix. Is it possible that anyone could give me a code snippit that would give me back a readable distance from one of these sensors?
Reply With Quote
  #8   Spotlight this post!  
Unread 01-03-2016, 21:58
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,513
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Questionable Results from Ultrasonic

Quote:
Originally Posted by Cinnamon Toast View Post
These IR distance sensors look like quite the feasible alternative. Does anyone have some info on how to implement them? Wiring and programming wise? The ultra sonics are easy as you just read the milivolts back and do the conversion with the multiplication values offered by maxbotix. Is it possible that anyone could give me a code snippit that would give me back a readable distance from one of these sensors?
They are analog so they work the same way. Voltage proportional to distance.
Reply With Quote
  #9   Spotlight this post!  
Unread 01-03-2016, 23:08
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,575
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Questionable Results from Ultrasonic

To sort of tie a bunch of things together - the ranges and clutter threshold at which ultrasonic works well does not have a lot of overlap with FRC conditions. IR or visual rangefinders usually work better than ultrasonic at shorter ranges (up to about 2 meters/6 feet), and vision processing is better than ultrasonic at longer ranges, especially if there is retroreflective tape on the target. Use green light; FRC fields usually abound in red and blue LEDs (2016 is no exception). Use the color info from your camera: at simplest, just use the blue channel; even better may be a calculation which considers red and blue light as being of a negative value.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.

Last edited by GeeTwo : 01-03-2016 at 23:10.
Reply With Quote
  #10   Spotlight this post!  
Unread 02-03-2016, 15:04
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Re: Questionable Results from Ultrasonic

Quote:
Originally Posted by Tom Line View Post
They are analog so they work the same way. Voltage proportional to distance.
To be honest, we use them to sense the presence of an object on the robot. We just look for a certain threshold voltage to sense this. While they can be used to measure distances the response curve is non-linear so some kind of table look-up function might be needed to convert a measured voltage to the distance measured.
Reply With Quote
  #11   Spotlight this post!  
Unread 02-03-2016, 16:53
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is offline
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,051
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: Questionable Results from Ultrasonic

Quote:
Originally Posted by BitTwiddler View Post
To be honest, we use them to sense the presence of an object on the robot. We just look for a certain threshold voltage to sense this. While they can be used to measure distances the response curve is non-linear so some kind of table look-up function might be needed to convert a measured voltage to the distance measured.
I'm not sure which ultrasonic sensor you have observed this with, but we have used multiple maxBotix ultrasonic sensors over the past two years and they have all had extremely linear responses over their recommended ranges.
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 03:40.

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