View Single Post
  #9   Spotlight this post!  
Unread 05-01-2007, 17:23
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Accelerometer Suggestions

Quote:
Originally Posted by Donut View Post
I've seen his '05 accelerometer code; it had the ADC built into it (rather than seperate like he did with the gyro in '06), so it wouldn't work with other sensors using analog ports at the same time. It does acceleration similar to mine, I just went a step further and tried to calculate velocity and position as well.

14 bits is alot better resolution than you'll get on the robot controller; keep that in mind, as there is a huge difference in what you can measure between these. A 14 bit A/D will make each number in the output practically 1 millig for the kit accelerometer, while the A/D on the FRC controller has about 16 milligs for each number on the output.
Well that s why I am working on trying to get an external PIC on board to do the extra crunching. I will certainly using the oversampling feature to attain the max res possible. External PIC might should be able to output 13bit easily and maybe 14bit with some optimizing.(It also has to do the gyro and the trig calculations)

You should be able to do 12 bit on the RC. In fact, that is the initial setup of the Kevin's ADC code.