Go to Post And we had to walk both ways to the venue from our hotel! Uphill! Barefoot over broken glass! - IMDWalrus [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 13-01-2010, 00:07
AlexGrant's Avatar
AlexGrant AlexGrant is offline
Registered User
FRC #3928 (Neutrinos, alumnus of 3042)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Minnesota
Posts: 16
AlexGrant is an unknown quantity at this point
Compass sensor

Alright i know this may be a bit out there but is it possible to get a compass sensor to work well with a robot? If so how would one go about doing so?
  #2   Spotlight this post!  
Unread 13-01-2010, 00:10
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Compass sensor

We tried one in 2008. Go look up some 364 video's on TBA for 2008, then come up with a conclusion.

The compass we tried was the biggest pain in the butt we've ever used. We could not find a decent place to put it on the robot, so we mounted it up top away from all the motors, then when we went under the steel underpass, guess what started tripping up.

Do yourself a favor and use a Gyro.

Some other teams may have gotten a compass working, but ours was way too sensitive.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #3   Spotlight this post!  
Unread 13-01-2010, 02:52
Phoenix Spud's Avatar
Phoenix Spud Phoenix Spud is offline
Everyone. Everywhere.
FRC #3132 (Thunder Down Under)
Team Role: College Student
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Sydney, Australia
Posts: 703
Phoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond repute
Re: Compass sensor

Quote:
Originally Posted by RyanN View Post
Do yourself a favor and use a Gyro.
Last year I was on 2342 in the USA, and we used a gyro. It wasn't that hard to program, and it was the main sensor we used in Autonomous mode. I would recommend using it.
__________________
Sarah Heimlich
Outreach Mentor | Business Mentor
FIRST® TEAM 3132
  #4   Spotlight this post!  
Unread 13-01-2010, 07:56
M.Rehberg's Avatar
M.Rehberg M.Rehberg is offline
Registered User
AKA: Mike Rehberg
FRC #2619 (The Charge)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Michigan
Posts: 11
M.Rehberg is an unknown quantity at this point
Re: Compass sensor

Our team used (tried to use) a compass last year. It actually did work, but as the previous post described, they can be sensitive to motors and metal. If you use one I would suggest using it to check your heading, but use the gyro to control. The gyro with the integrator provided by the cRIO is very good, and didn’t seem to lose precision through these relatively short matches.

If you still have interest in a compass, here is basically how it worked:

They started with a mems compass mounted on a breakout board from SparkFun.com The output is I2C, which the FIRST cRIO has on the digital sidecar, but we couldn’t find what we needed in the libraries to use it. So the team used an Arduino (which is an ATmega168 programmed with C), which could talk to the compass on the I2C buss, then sent an analog 0-5 volts to the cRIO that translated to 0-359 degrees. They also had to set a digital output to tell the Arduino to put the compass in calibration mode, then the robot went into a 720 degree spin. This addition seem to help quite a bit, but as I said above, they ended up using a gyro.

The learning experience with the Arduino, and I2C was great, and there is also a lesson in the difference of how well something looks on paper Vs in practice…
__________________
Mike Rehberg

Team 2619
Midland, MI
  #5   Spotlight this post!  
Unread 13-01-2010, 08:59
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Compass sensor

We have used a compass in the past. Not as effective as we had hoped. Many require a neutralizing high current pulse to demagnetize the chip and surrounding area before a read. They depend on being able to sense the earth's magnetic field and can be confused by ferrous metals and other magnetic fields. All of our motors use permanent magnets and trying to position a compass within the robot is a daunting task. Several teams have used them over the years but it does present some challenges.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #6   Spotlight this post!  
Unread 13-01-2010, 16:12
AlexGrant's Avatar
AlexGrant AlexGrant is offline
Registered User
FRC #3928 (Neutrinos, alumnus of 3042)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Minnesota
Posts: 16
AlexGrant is an unknown quantity at this point
Re: Compass sensor

Alright, Thanks for all the great replies guys, really appreciate everything. So what we are essentially trying to do is to get our Holonomic drive robot to maintain the same direction unless we want to change that "target direction" this will make it easier to control and also give us some cool design possibilities. How would you guys go about achieving this sort of control?
  #7   Spotlight this post!  
Unread 13-01-2010, 17:27
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Compass sensor

Quote:
Originally Posted by AlexGrant View Post
Alright, Thanks for all the great replies guys, really appreciate everything. So what we are essentially trying to do is to get our Holonomic drive robot to maintain the same direction unless we want to change that "target direction" this will make it easier to control and also give us some cool design possibilities. How would you guys go about achieving this sort of control?
Use a Gyro.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #8   Spotlight this post!  
Unread 13-01-2010, 18:20
AlexGrant's Avatar
AlexGrant AlexGrant is offline
Registered User
FRC #3928 (Neutrinos, alumnus of 3042)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Minnesota
Posts: 16
AlexGrant is an unknown quantity at this point
Re: Compass sensor

Alright, So before this thread I always thought gyro's just measure the angle of your robot, heh. So I did some research and now I'm just wondering, how effective will the gyro you get in the KOP be at tracking your angle through the entire match? also how hard would it be to implement a system of "target angle"? If there is anything not clear with my questions just ask away and i'll explain to the best of my ability.
  #9   Spotlight this post!  
Unread 13-01-2010, 18:34
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Compass sensor

Alex,
You may not need to know the direction for the entire match. It will help target the robot or perform whatever auto function you want to run during the auto period. If you know where you are at the start of the match then you can move to another point on the field if you know distance traveled and direction you traveled.
It would also be useful if you are using the camera to shoot so that you can know where you are in relation to the goal. i.e. The robot is pointed here but the camera says I should be pointed 30 degrees to the left, so turn left another 30 degrees.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #10   Spotlight this post!  
Unread 13-01-2010, 18:40
AlexGrant's Avatar
AlexGrant AlexGrant is offline
Registered User
FRC #3928 (Neutrinos, alumnus of 3042)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Minnesota
Posts: 16
AlexGrant is an unknown quantity at this point
Re: Compass sensor

Yeah that is true, but what we are trying to achieve is a mode for our holonomic drive system so that it will stay in the same orientation just moving different ways, so would a gyro be able to hold that the whole match?
  #11   Spotlight this post!  
Unread 13-01-2010, 18:50
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Compass sensor

Alex,
You could do that but think about the whole game. What is your robot going to do for two minutes? Do you always want it pointing in the same direction?
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #12   Spotlight this post!  
Unread 13-01-2010, 19:00
AlexGrant's Avatar
AlexGrant AlexGrant is offline
Registered User
FRC #3928 (Neutrinos, alumnus of 3042)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Minnesota
Posts: 16
AlexGrant is an unknown quantity at this point
Re: Compass sensor

meh, im always bad at explaining things, What you have is a "target zone" in which you can pick where to point it, so you can change it whenever you want but it will stay in that position until you do change it, and holonomic drives are drives such as mecanum and omni drives so you can strafe.
  #13   Spotlight this post!  
Unread 13-01-2010, 21:39
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: Compass sensor

Just to be clear, the Gyro used in FRC gives you the Rate of Turning, in degrees per second. So if you want to keep your robot from turning, just maintain the gyro value at zero - if it turns at 2 degrees per second for 3 seconds, then turn it back the same 6 degrees.

Just be aware that a gyro has some "drift"; that is, it reports small turn rates even while not moving. This can be mostly managed by adjusting for temperature (there is a temperature sensor on-board) and some empirical measurements, not perfectly but well enough for a 2 minute match. Not to mention your driver can 'adjust' the actual position a little if/when necessary, leaving the majority of the work to the automated system.
__________________

I am N2IRZ - What's your callsign?
  #14   Spotlight this post!  
Unread 13-01-2010, 21:50
AlexGrant's Avatar
AlexGrant AlexGrant is offline
Registered User
FRC #3928 (Neutrinos, alumnus of 3042)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Minnesota
Posts: 16
AlexGrant is an unknown quantity at this point
Re: Compass sensor

Thanks a bunch for the info, how difficult do you think it would be to implement a system like this for a programmer with moderate experience?
  #15   Spotlight this post!  
Unread 14-01-2010, 11:52
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Compass sensor

Quote:
Originally Posted by AlexGrant View Post
Thanks a bunch for the info, how difficult do you think it would be to implement a system like this for a programmer with moderate experience?
Last year, we had a first time programmer in Labview accomplish programming the gyro very effectively. We used a gyro to auto-correct our steering, since the floor was slick last year. You could push the robot completely around, and it would correct itself back to the same orientation. I haven't look at the code on how to do this, and I don't have LabView installed right now, so I couldn't even begin to tell you where to begin. I do remember them setting the gyro angle to zero or something, and we never did use the temperature since it wasn't really needed in our application.

Probably your best application is to use the gyro along with the camera to orient your robot in the right direction for kicking or whatever you want your robot to do. The camera will give you an angle, then apply that to the gyro and the drive base to correct the orientation of your robot. You could just do this with the camera, but I think it would be more reliable to do it with both.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FTC]: Compass Sensor saaby FIRST Tech Challenge 5 26-03-2009 19:56
[FTC]: Compass Sensor Interference. ttldomination FIRST Tech Challenge 3 02-02-2009 20:19
Devantech CMPS03 compass sensor eagleslg Programming 1 24-05-2008 22:00
Where can I get a digital compass sensor? EHaskins Technical Discussion 6 26-09-2007 18:33
Compass/direction sensor Frank(Aflak) Technical Discussion 10 06-04-2003 09:18


All times are GMT -5. The time now is 09:42.

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