Hi im using an ST LIS2L02 accelerometer in a tilt application. The supply voltage is 5 volt, and it is used in 2g setup. It outputs the following:
-90 degrees 1,50 volt
0 degrees 2,50 volt
90 degrees 3,50 volt
im my application the output goes to an AVR mcu, where it is convertet via builtin ADC. Since im only interested with the scope +/- 15 degrees
-15 degrees 2,33 volt
0 degrees 2,50 volt
15 degrees 2,66 volt
i would loose alot of precision during convertion. how can i scale the output from the accelerometer so i get the following output result ?
-15 degrees 0,00 volt
0 degrees 2,50 volt
15 degrees 5,00 volt
-90 degrees 1,50 volt
0 degrees 2,50 volt
90 degrees 3,50 volt
im my application the output goes to an AVR mcu, where it is convertet via builtin ADC. Since im only interested with the scope +/- 15 degrees
-15 degrees 2,33 volt
0 degrees 2,50 volt
15 degrees 2,66 volt
i would loose alot of precision during convertion. how can i scale the output from the accelerometer so i get the following output result ?
-15 degrees 0,00 volt
0 degrees 2,50 volt
15 degrees 5,00 volt