|
Re: accelerometer specs
Hmm.. if 0g is read at 2500 mV... if mV/g was 125, wouldn't 1g be read at 2625mV?
And that leads my to my next question. For my accelerometer, the sensitivity is is 312mV/g and the 0g bias is 2.5V (specs for supply voltage of 5V). The accelerometer has a range of +/- 2g, so the output voltage should have a range of 2500 +/- 624mV (1876mV - 3124mV).
Isn't the conversion... CODE_VALUE = mV * (1024 / 5000mV)
So my code values should have a range of 512 +/- 127 (385 for -2g and 639 for +2g)?
I know I completely did a 360 from my original understanding (which was apparantley correct?), but I wan't to make sure I completely understand how this is working first. Would somebody explain where my fault is in the logic in this post.
|