Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Acceleromter: totally Hopeless (http://www.chiefdelphi.com/forums/showthread.php?t=62109)

paulcd2000 20-01-2008 11:02

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.

CyDrive 20-01-2008 13:31

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.

paulcd2000 20-01-2008 13:40

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"
#include "ifi_default.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