![]() |
Acceleromter: totally Hopeless
Yeah, I've never used the accelerometer before and i have no idea how to code it. I tried to search for other threads, but most had very specific questions. Is there any code by kevin watson designed for use with the accelerometer, or should i somehow alter the gyro code. Any help would be greatly appreciated.
|
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.
|
Re: Acceleromter: totally Hopeless
ok i found some. if anyone reading needs some code, this is what i found:http://www.chiefdelphi.com/forums/sh...82&postcount=5
EDIT: to complie, include the files, and comment out: Code:
#include "ifi_aliases.h" |
| All times are GMT -5. The time now is 23:10. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi