Go to Post Take care of what's there and you never need a replacement. - Rich Kressly [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-03-2011, 08:59
Jogo Jogo is offline
Registered User
FRC #0353 (Pobots)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2007
Location: NY
Posts: 83
Jogo is on a distinguished road
Ultrasonic Help

Our team has been trying to use the XL-MaxSonar EZ4 in order to determine the height of our manipulator (by placing the sensor on the floor and pointing it vertically upwards at a 1 sq. foot piece of lexan on the bottom of our elevator). However, we are having trouble getting consistent data. We have the sensor detecting objects at distances of 20 feet accurately straight ahead, but when looking up at our manipulator it loses accuracy and claims that the manipulator is much closer than it really is. We've tried placing a felt cone around the sensor, which seemed to improve the data a little but not consistently.

Any advice? If you don't think ultrasonic is a viable solution, maybe you could suggest an alternate method/sensor? Would rather not use encoder but probably will if there is no (easy) way to measure absolute height.
  #2   Spotlight this post!  
Unread 20-03-2011, 09:09
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
Re: Ultrasonic Help

What's wrong with using an encoder? We use it to run our positioning and it works very predictably every time.

I really don't have any advice on the ultrasonic issue. Theoretically it should work, but I could also see a lot going wrong as well. To be perfectly honest, that seems like an extremely dicey way to measure height.
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.
  #3   Spotlight this post!  
Unread 20-03-2011, 09:09
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Ultrasonic Help

At a range of 5 feet the detection cone on an E4 is almost 3.5 feet wide.

I'd imagine after a couple of feet it will see the superstructure of your robot before it sees the 1 sq ft lexan target.
Possibly, angling the sensor to catch the arm as far from the superstructure as possible might help.
It'll probably see the bottom of any tube you're carrying, so take that into account.

Look at the comparison chart on page 5 to see the relative shapes of the detection cones.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 20-03-2011 at 09:13.
  #4   Spotlight this post!  
Unread 20-03-2011, 09:44
Jogo Jogo is offline
Registered User
FRC #0353 (Pobots)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2007
Location: NY
Posts: 83
Jogo is on a distinguished road
Re: Ultrasonic Help

Thanks, Mark, I didn't look at that diagram close enough. Does anyone have any advice with the "dowel", as far as material, diameter, and placement? The "A" beam pattern looks great, however, how is a .25" cylinder possible when the sensor itself is larger than .25"?
  #5   Spotlight this post!  
Unread 20-03-2011, 10:19
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Ultrasonic Help

This is the EZ4 data sheet. At 5 feet the detection path is about 2 feet wide.

How can one sense a 1/4" dowel? Remember, it is not the size of the object you are detecting, but the ultrasonic sound waves that reflect from it. If you could get a 0.001" wire to reflect enough sound energy, you can detect it. Of course, the larger the object, the further away you can 'hear' the reflected sound.

Instead of a felt cone, try a piece of pipe about 6 inches long, just large enough to fit over the sensor head. Plastic or metal, something with some density (not cardboard). That should narrow the detection width quite a lot, the issue is whether the sensor can handle the interference this will set up.

EDIT: D'oh! As a few have pointed out, I got the data sheet wrong. See below.
__________________

I am N2IRZ - What's your callsign?

Last edited by DonRotolo : 20-03-2011 at 14:26. Reason: D'oh!
  #6   Spotlight this post!  
Unread 20-03-2011, 10:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Ultrasonic Help

Quote:
Originally Posted by DonRotolo View Post
This is the EZ4 data sheet. At 5 feet the detection path is about 2 feet wide.
That's the LV datasheet. They have an XL (datasheet).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 20-03-2011 at 10:36.
  #7   Spotlight this post!  
Unread 20-03-2011, 10:34
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Ultrasonic Help

Just angle the sensor away from your robot, or place a rubber cone (with small holes) behind and around the sensor. The rubber will be able to cancel out any side acoustics, in my experience. Are you stuck with using that model of XL? If possible, I'd reccomend switching over to the AE version, rather than the EZ, and looking for the reflected signal of the target on the AE output; it's a lot less prone to interference, although it requires a very significant amount of programming expertise.


Don, that's the datasheet for the LV model of sensor. The two models are quite a bit different in regards to how they can operate.
__________________
Attending: MN Duluth Regional
  #8   Spotlight this post!  
Unread 20-03-2011, 10:36
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Ultrasonic Help

Sharp makes an IR distance sensor that is good out to 5'. They have a narrow detection cone. They have served us well over the years. There is a problem with long leads. A 100 uf cap across the gnd and 5 volts will help. If you try them, don't forget to buy the matching JST pig tail. They do not like clear poly. A different sensing plate would be needed.
http://www.pololu.com/catalog/product/1137

Last edited by Gdeaver : 20-03-2011 at 10:38.
  #9   Spotlight this post!  
Unread 20-03-2011, 13:31
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Ultrasonic Help

I've used these sensors many times, and I don't think they're going to reliably give you the feedback you're looking for. I think an encoder with some limit switches to 'zero' the position (or set it to whatever encoder value makes sense for where the limit switch is) would probably be much more reliable. Depending on the mechanism, it may also be feasible to have a multi-turn pot where the encoder would mount, so it has sufficient travel range to sense the full movement of the elevator. This would always give you an absolute reading.

Matt
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #10   Spotlight this post!  
Unread 20-03-2011, 13:45
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Ultrasonic Help

We have a 10-turn pot sensing drum rotations. The drum rotates slightly more than 10 times, so it is chained (with plastic sprockets) to the drum shaft, providing a slight reduction. We now use about 8 turns of the pot over the entire travel distance.

We don't like encoders for absolute positioning because we don't know exactly where we are, only where we think we should be based on where we assumed (or sensed, with another sensor) we started. The largest issue is that, if we don't start at home, we have to move to home to reset. If we have a practice robot and we don't fold it up into the start position before running it, or we stop running deployed code to change something without folding up into start position, we no longer know exactly where we are. That said, for some mechanisms, it's the best way to do it.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #11   Spotlight this post!  
Unread 20-03-2011, 14:28
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Ultrasonic Help

Indeed that's the wrong datasheet, sorry everyone & thanks for the correction.
__________________

I am N2IRZ - What's your callsign?
  #12   Spotlight this post!  
Unread 20-03-2011, 14:29
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Ultrasonic Help

Quote:
Originally Posted by apalrd View Post
We have a 10-turn pot sensing drum rotations. The drum rotates slightly more than 10 times, so it is chained (with plastic sprockets) to the drum shaft, providing a slight reduction. We now use about 8 turns of the pot over the entire travel distance.

We don't like encoders for absolute positioning because we don't know exactly where we are, only where we think we should be based on where we assumed (or sensed, with another sensor) we started. The largest issue is that, if we don't start at home, we have to move to home to reset. If we have a practice robot and we don't fold it up into the start position before running it, or we stop running deployed code to change something without folding up into start position, we no longer know exactly where we are. That said, for some mechanisms, it's the best way to do it.
I share your concerns, and I agree a multiturn pot is probably the right way to go for this.

Matt
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
Closed Thread


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 23:43.

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