View Single Post
  #1   Spotlight this post!  
Unread 23-02-2006, 21:56
bush's Avatar
bush bush is offline
Registered User
AKA: Aaron
FRC #0710 (Pine Crest School)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Fort Lauderdale, Florida
Posts: 42
bush has a spectacular aura aboutbush has a spectacular aura about
Send a message via AIM to bush
accelerometer specs

I read over the data sheet, and I don't completely understand everything. I just want to double check a few things...

1) The resolution for RC analog inputs is 10-bits, so my code would would read in values ranging from 0 to 1023.

2) Since we are supplying 5V, zero acceleration corresponds to 2.5V, which is represented by 512 in my code.

3) Acceleration is directly proportional to voltage, so an acceleration of +2g would read as 1023 in my code, and an acceleration of -2g would read as 0. +1g would read in 768, and -1g would read in 256, and so on...

If I were wrong about anything, my guess would be #3. I didn't completely understand what the mV/g meant in the data sheet

I might also be wrong about the code values. Similar to PWM, where we only use 0-254 with neutral at 127, this could be 0-1022 with neutral at 511.

Anybody who can clarify this will be helping me out a lot. Thanks