|
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
|