Go to Post "Its not a glitch its a new feature, we just dont know how to use it yet" - Cuog [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 16-01-2008, 00:18
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Gyro Compass

For top secret purposes this year we need a compass. Do to the fact that compass sensors that rely on the Earth's magnetic field are unreliable at best, we are looking for a compass that uses a gyro.

Now I know that such a compass exists, I remember finding one on the Internet but do to momentary stupidity did not bookmark it. I also know that we could "build" this ourselves by using a regular gyro sensor and an interrupt port, but would much rather buy a gyro that does all the math on board it's chip and just returns a 0-359.9 degree value.

Could anyone help me find this elusive chip?

Thanks a lot,
Nathan
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
  #2   Spotlight this post!  
Unread 16-01-2008, 00:46
Gboehm Gboehm is offline
Registered User
FRC #1516 (Grizzlies)
Team Role: Alumni
 
Join Date: Nov 2006
Rookie Year: 2005
Location: California
Posts: 90
Gboehm is a splendid one to beholdGboehm is a splendid one to beholdGboehm is a splendid one to beholdGboehm is a splendid one to beholdGboehm is a splendid one to beholdGboehm is a splendid one to beholdGboehm is a splendid one to behold
Re: Gyro Compass

Well my experiance flying has taght be a little bit about gyroscopic instruments. Remember that a Directional Gyro is subject to gyroscopic precession. Also a gyro will have to be set prior to each match, also if you compete at more than one event it will have to be set for that new arena.
__________________
2005 SVR Highest Rookie Seed
2005 SVR Rookie All Star
2006 WRRF Cal Games Winner
2007 SVR Winner
2007 #7 Alliance Captains Archimedes Divison

"Any sufficiently advanced technology is indistinguishable from Magic." - Arthur C. Clarke

  #3   Spotlight this post!  
Unread 16-01-2008, 02:17
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Re: Gyro Compass

Or, you can put in your Teleop_Init() some code to initialize the starting position variable of the gyro, and do your calculations based on that.
__________________
What place are we at? ... TODAI!
  #4   Spotlight this post!  
Unread 16-01-2008, 10:17
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: Gyro Compass

John, that's what we were planning on doing. We would just initialize it before the match with all the other sensors.

We know there would be some gyroscopic precession, but hopefully it won't be too bad.

Has anybody found one of these yet?
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
  #5   Spotlight this post!  
Unread 16-01-2008, 11:04
ZZII 527's Avatar
ZZII 527 ZZII 527 is offline
"Scale Electric Vehicle"
AKA: Shane Colton
FRC #0097
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Cambridge, MA
Posts: 366
ZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond repute
Send a message via AIM to ZZII 527
Re: Gyro Compass

97 is trying something similar, though we are going for the DIY approach of matching the kit gyro and a cheap digital compass to get the heading. The problem, if I understand it correctly, is: Compass is unreliable instantaneously because of noise, but good for long-term averaging. Gyro is good for short duration, but long-term it will drift away. So, there is a clever and simple to program filter that will combine the best of both into a clean heading signal.

http://www.chiefdelphi.com/media/papers/2010

You will have to use your imagination to take it from the vertical case, with an accelerometer measuring gravity, to the horizontal case, with a compass measuring heading, but I think it works. Here is a high-level diagram of what we're thinking about:

http://web.mit.edu/first/www/semiOLcontrol.pdf

Some off-board processing, but you could probably do it all on the IFI RC too. There are also other problems like magnetic interference and tilt errors, but maybe these can just be thrown into an offset factor?
__________________
MIT Mechanical Engineering
>> College Mentor, Team 97: Cambridge Rindge and Latin School with The Edgerton Center, MIT Mechanical Engineering, Bluefin Robotics, and Draper Laboratory
>> Alumnus, Team 527: Plainedge HS

Last edited by ZZII 527 : 16-01-2008 at 11:08.
  #6   Spotlight this post!  
Unread 16-01-2008, 14:55
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: Gyro Compass

Ok, thank you for the info guys.

I was really hoping to find an off the shelf solution so that we didn't have to waste time doing R&D.

Thanks again,
Nathan
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
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
Programming a Devantech Magnetic Compass - CMPS03 kE7JLM Programming 7 28-09-2007 08:23
Interfacing a digital compass with the RC Kelly Electrical 14 27-09-2007 19:01
I2C Digital Compass Programming CyberWolf_22 Programming 7 03-01-2005 00:20
Political Compass Joshua May Chit-Chat 11 01-10-2004 22:32
Compass/direction sensor Frank(Aflak) Technical Discussion 10 06-04-2003 09:18


All times are GMT -5. The time now is 03:12.

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