![]() |
Converting accelerometer values???
Hello,
I am currently working on some autonomous code and I need some help in understanding some information about accelerometers... To start off I have a question in regards to the central voltage and gain... What do these numbers mean and how do i adjust these numbers in order to get a proper reading (apparently 1G) which can later be converted to Velocity and Distance? Thank you Technic-R-C |
Re: Converting accelerometer values???
Are you using LabVIEW or C++? The specific answers are different for each environment, though the concepts are the same.
The "central voltage" is the voltage the accelerometer outputs when there is no acceleration. It translates to "zero G". The "gain" is the voltage the accelerometer output changes by for a given measured acceleration. The accelerometers we received in the 2009 Kit of Parts have a central voltage of 1.5 volts, with a gain of 300 millivolts per G. This information is in the 2009 Sensor Manual which you will find under Section 8 - The Robot on the 2009 FIRST Robotics Competition Manual and Related Documents page. |
Re: Converting accelerometer values???
Great!! Thank you for your responses,
Now to go on and convert this accelerometer value into a change in distance and velocity value... Does anybody have an idea of where i should begin in my setup of this code? (btw I am using LABVIEW to program our robot) or maybe if i'm lucky, is somebody willing to share a bit of their code dealing with the conversion of accelerometer numbers to velocity and distance values :D Thank you Technic-R-C |
Re: Converting accelerometer values???
I'm using Windriver, not LabView. The basic idea is to integrate the accelerometer output to get velocity, and integrate velocity to get distance.
Code:
#define X_ACC_ZERO 1.5 |
| All times are GMT -5. The time now is 16:14. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi