View Single Post
  #2   Spotlight this post!  
Unread 11-01-2008, 19:00
ay2b's Avatar
ay2b ay2b is offline
Registered User
AKA: Andy
FRC #2928
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 1994
Location: Seattle, WA
Posts: 211
ay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant future
Re: Gyro/accelerometer/Gear tooth sensor

I don't have the link in front of me, but I know wiring diagrams are available. You interface the DAA and gyro to the analog inputs on the RC, and the GTS to the digital inputs.

The DAA and YRG both have 6 holes in the board, which are perfectly aligned for attaching two PWM cables to each. On the DAA, one PWM cable will then give you the X acceleration and the other will give you the Y acceleration. On the gyro, one cable will give you the turn rate (labeled "T") and the other will give you the relative temperature (labeled "R").

From what I've seen on other threads (I haven't looked at the boards closely, myself), the DAA is the same as last year, but the gyro is different. The interface is the same, but last year's gyro could measure up to 150 deg/s rotation, while this year's gyro can only measure up to 80 deg/s.

I have not used the gear tooth sensors for a few years now, because I find it difficult to get them consistently positioned exactly right - I prefer to use optical encoders. As I recall, each GTS hooks up to a single digital input. You need to use ones with interrupts, and also use a timer. The signal will be normally low, but upon detection of a gear tooth, it will momentarily go high. You need to time how long the signal is high. If it is high for less than a certain time, then you know the gear is moving in one direction; if it is high for longer than that time, then you know the gear is moving in the other direction.


(PS, I just realized I'm mixing my terms, so if anyone doesn't realize: YRG = Yaw Rate Gyro, DAA = Dual Axis Accelerometer; GTS = Gear Tooth Sensor)
__________________

2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion