[Tinyos-help] Conversion formula of Accelerometer value.
André Miguel de Almeida Marrão Rodrigues
andremiguelrodrigues at gmail.com
Tue Dec 18 05:21:04 PST 2007
Hi
In the accelorometer datasheet you you see a range of -1.5 g to 1.5g
so it's a 3g absolute range. On the other hand the adc should return an unsigned value bettween 0 and 4095.
That explains the formula.
I don't use voltage reference so in my cause the voltage is VCC for the adc and for the accelorometer.
And this is general translation code for linear sensors
André
PS: Would shoul post this kind of questions to the forum for multiple resons.
hi Andre
As you send me the formula like value read / 4095 * 3 - 1.5, my question is that 3 - 1.5 is it the range of refference voltage or siply 3 minus 1.5. like in case of acc we r taking 2.4 v as reference so in that case is it value read / 4095 * 2.4
And one thing more, is this formula common for converting all channel value. coz I just want to work with accelerometer.
I will be thanks full to you if you reply as soon as possible
regards
Motalib
On 12/13/07, Motalib Rimon <motalib.rimon at gmail.com> wrote:
Hi
the formula that u give is like that
(Value read/4096*3)-1.5
is it correct
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071218/89ed94ad/attachment.html
More information about the Tinyos-help
mailing list