Go to Post When you're in a field as deep as the Championship go offensive or go home. It's that simple. - thefro526 [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-01-2012, 21:43
eulerddx4
 
Posts: n/a
Good way to find distance

Does anyone have a recommended way to find distance from the hoop. It seems like range finders will have interference and cameras are hard to use...

Any suggestions?

Should we go with a camera?

If so is there a good program to use or do we have to do this ourselves...
  #2   Spotlight this post!  
Unread 20-01-2012, 22:21
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: 240
BitTwiddler is on a distinguished road
Re: Good way to find distance

This may be helpful to you.
http://firstforge.wpi.edu/sf/docman/...root/doc1302/1
  #3   Spotlight this post!  
Unread 20-01-2012, 22:42
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: 6,979
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: Good way to find distance

[quote=jpconnors9;1110151]It seems like range finders will have interference [quote]Have you tried it, or relied on someone else's guesses?

I say you should try it yourself, because I don't think you'll see the kind of interference you think you will. Get 2 or 3 more and have them all running at the same time to see what happens.

Don't believe everything you read. Even this. Always try it yourself.
__________________

I am N2IRZ - What's your callsign?
  #4   Spotlight this post!  
Unread 20-01-2012, 22:49
Matt H. Matt H. is offline
Long Distance Mentor
FRC #1726 (N.E.R.D.S.)
Team Role: Alumni
 
Join Date: May 2006
Rookie Year: 2007
Location: Sierra Vista, AZ
Posts: 238
Matt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond reputeMatt H. has a reputation beyond repute
Re: Good way to find distance

Quote:
Originally Posted by DonRotolo View Post
Don't believe everything you read. Even this. Always try it yourself.
Agreed! I think the statements regarding interference are highly overstated. Take a look at this statement form Maxibotix especially item number 2(https://www.facebook.com/note.php?no...77662868954588)

Quote:
1. "I was wondering if you for see any potential problems with other robots using the same sensor at the same time during competition?"

Great question. It is possible the MB1010 sensor may detect other sensors in the same vicinity. but it becomes very improbable as targets are closer to the sensor. For example, if looking at a wall that is 3 feet away, the time of flight for the sonar travel will be 5.3mS (calculated using 148uS * 36in), and another sensor operating close by might get picked up about 11% of the time. (calculated using (148uS * 36in)/49000uS ) And as distances get longer, this can occur with a higher probability.

2. "How can we be sure that the signal we get back is from our sensor and not from another sensor on another robot on the field during competition."

Another great question. If you use the RX pin to command the sensor to range at something other than it's default read rate, or even at a random time (you would use a pin from your controller to do this), and then one checks that two readings in a row agree, it then becomes almost impossible for the two readings to agree unless it is from a valid target.
  #5   Spotlight this post!  
Unread 20-01-2012, 23:25
mikegrundvig mikegrundvig is offline
Registered User
FRC #2410 (Metal Mustangs)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 100
mikegrundvig is an unknown quantity at this point
Re: Good way to find distance

I won't speculate too much on how sonar sensors will perform in the competition but I will say this: I personally have had sonar sensors "ring" each other and it caused a lot of issues. We had 4 sensors on the edges of a box and sensors that were facing away from each other could pick up the return from their opposite. So we ended up having the north sensor pick up signals from the south sensor.

If you call the sensor company they will tell you about this. The solution is to fire the sensors so they are staggered. We ended up firing them in a loop that passed ensured they were never firing at the same time to clear up the problem.

I suspect if every robot was using multiple sonar sensors and hammering them as fast as possible something might happen but I have no idea what the interference will be in a real-world scenario.

-Mike
  #6   Spotlight this post!  
Unread 21-01-2012, 13:25
Metaphorical's Avatar
Metaphorical Metaphorical is offline
Registered User
FRC #0639 (Code Red)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Ithaca
Posts: 4
Metaphorical is an unknown quantity at this point
Re: Good way to find distance

If you want an interference-free way, do some math. Find the vertices of the target rectangle. If you're pointing at it with a camera of known elevation, the angle to the vertices is linked to the position of the vertices on the camera viewpicture. The height of each vertex is constant and fixed, so now you have an angle and its opposite side in a right triangle, and everything else can be found with a bit of trig.

Of course, no guarantees on accuracy - it'll all depend on your image processing capabilities.
  #7   Spotlight this post!  
Unread 21-01-2012, 16:07
Mara's Avatar
Mara Mara is offline
Team 696 Safety Czar
FRC #0696 (Circuit Breakers)
Team Role: Mechanical
 
Join Date: Jan 2012
Rookie Year: 2010
Location: La Crescenta
Posts: 16
Mara has a little shameless behaviour in the past
Re: Good way to find distance

You could use ultrasonic sensors. Our team has used them on numerous occasions during past games.
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 09:18.

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