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 <[EMAIL PROTECTED]> wrote:
    Hi 

    the formula that u give is like that 


    (Value read/4096*3)-1.5 


    is it correct
         

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to