|
Re: Dual-Axis Accelerometer
Quote:
|
Originally Posted by naor52
when sitting still the value returned by Get_Analog_Value(rc_ana_in09) is around 716-717, and can get to about 915 or so when shaked.....
is this normal?
how can i transofrm these to normal 0-255 values? should i?
Thanks!
|
I'm sure that you need to figure out the bias. However, you also might want to make sure that it's level. Remember that gravity will register on an accelerometer.
As for converting to 8bit, just shift it two bits to the right
Code:
8_bit = 10_bit >> 2;
__________________
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
|