View Single Post
  #10   Spotlight this post!  
Unread 25-10-2006, 22:33
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Why does the gyro need the ADC?

The gyro puts out a voltage, typically from 0 to 5 volts indicating the rate of rotation of the sensor along its sensing axis. When it's not moving the output ideally rests at 2.5 volts (no positive or negative rotation speed) and when it goes in one direction the voltage goes down and in the other it goes up. Since computers are digital they can only sense if the voltages is greater then about 4 volts (binary 1) or less than about 1.2 volts (binary 0) (Those numbers are fuzzy blurbs of memory, might be a bit off). The ADC converts that value to a number in the code, from 0 (0v) to 1023 (5v) for use in the integration calculations (For more info about integrating see the numerous whitepapers on gyro and PID use.)
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)