|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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" Last edited by paulcd2000 : 20-01-2008 at 14:10. Reason: More info: |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Totally confused | Justin Brooks | Pneumatics | 2 | 16-01-2007 15:22 |
| Totally useless trivia fact... | dlavery | Chit-Chat | 35 | 08-04-2006 06:06 |
| to Anton , from totally anal Tom | archiver | 2001 | 1 | 24-06-2002 01:15 |
| OK...so I'm totally out of the loop... | Markfuscius | 3D Animation and Competition | 8 | 03-02-2002 02:39 |