|
Re: Acceleromter: totally Hopeless
The accelerometer is very similar to the gyro. First you would want to calculate a bias like the gyro has. Then use ADC to grab the input from the analog input and minus the bias from it. This way you get a variable containing no background noise. Well almost no background noise. Now the number you get is returned in milivolts. 1000mv = 1g. There is code on chiefdelphi that has most of these functions already done. Use the search feature.
|