Go to Post So, as usual, we know pretty much nothing for sure. - Ninja_Bait [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 03-02-2008, 15:01
ThomG ThomG is offline
Registered User
FRC #2607 (Figthing Robo-vikings)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Warminster PA
Posts: 4
ThomG is an unknown quantity at this point
Red face Gyro type for new AD22304 sensor

I'm really going crazy trying to integrate the 2008 gyro into my easyCPlus code. The code includes gyro types for three older types of gyros but no information about what to use with the AD22304 supplied in this year's KOP. Can anyone please help me out here?

Also, does this new gyro read out in decidegrees or some other unit after initializing and starting with the easyCPlus code?

ThomG
  #2   Spotlight this post!  
Unread 03-02-2008, 23:21
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: Gyro type for new AD22304 sensor

Just insert the gyro type code for the ADXRS80. Or 125...either way it will work for you.

For your second question, electronic gyros just output a voltage that is proportional to the RATE the chip is turning. Software can use this information to get degrees/second which can be integrated to give you relative heading. Relative meaning it can tell you what direction you are pointing relative to when your gyro code was intialized. The WPILIB that easyC uses takes care of this for you with the easy to use functions.

Good luck!

Last edited by TubaMorg : 03-02-2008 at 23:25. Reason: Answer second question
  #3   Spotlight this post!  
Unread 04-02-2008, 18:53
ThomG ThomG is offline
Registered User
FRC #2607 (Figthing Robo-vikings)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Warminster PA
Posts: 4
ThomG is an unknown quantity at this point
Re: Gyro type for new AD22304 sensor

thanx for the quick reply. I did as you suggested and then ran the gyro test program. It initialized nicely to a 000 decidegree output. I then turned the control board that the gyro is mounted on 90 deg and got fairly nice follow. I returned the board to zero degrees and it returned to 10 or 20 decidegrees. I turned the board to 180 decidegrees and it followed but when I returned to zero degrees it started reading erratically. It did eventually settle out but settled out to about 2000 decidegrees.

I seem to be getting erratic readings and drift. Do you have any suggestions?

ThomG
  #4   Spotlight this post!  
Unread 04-02-2008, 21:59
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: Gyro type for new AD22304 sensor

I have to be honest with you, I'm not too sure the kit gyro is suitable for our purposes. It is only accurate up to +- 80 degrees/sec. Turn your hand 90 degrees...but slow enough that it takes 1 second and you will see what I'm talking about. So for your tests, try this:

1. Turn it very slowly. Try to turn it around the chip axis.
2. Give the gyro 5 minutes to warm up then reset the RC and run your tests. Durning competition we power up before we go on the field to let our sensors warm up.

In practice you can use this gyro to help you drive straight. It's hard to turn your robot slower than 80 degrees/sec.
  #5   Spotlight this post!  
Unread 05-02-2008, 22:44
ThomG ThomG is offline
Registered User
FRC #2607 (Figthing Robo-vikings)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Warminster PA
Posts: 4
ThomG is an unknown quantity at this point
Re: Gyro type for new AD22304 sensor

That could very likely be the problem. I'll try to go through it tomorrow or thursday and give you an update. thanx again.
ThomG
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
Gyro/accelerometer/Gear tooth sensor sparrowkc Technical Discussion 2 11-01-2008 22:47
Light Sensor Type, Please Help! Alexander McGee Electrical 7 20-11-2004 21:48
ADXRS150 gyro yaw rate sensor Brian M. Electrical 13 17-10-2004 02:28
Gyro Sensor Questions sanddrag Electrical 8 27-09-2003 20:58
Yaw rate sensor (gyro for the layperson) Kris Verdeyen Rules/Strategy 4 14-01-2002 00:41


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

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