Quote:
|
Originally Posted by Gal Longin
what exactly are we suppose to understand from these readings? are the values in m/s^2 ? are they in ft/s^2 ? how can we use those values to determine the robot's acceleration in m/s^2 ? is it in g's?
someone from another team told me that in order to get the acceleration in g's i have to calculate arctangent of the sinus of the value I'm getting , but that doesn't make any sense to me . 
|
The values are in "A/D counts", which is a mythical unit. If you want to convert them into physical units, (like g's or m/s^2) you need to do a little math.
The first thing to do is to look at the accelerometer data sheet to see what the accelerometer gain is. If should say something like: "Gain: 100 mV/G"
Now you need to use unit conversion (like you learned in chemistry or physics class) to determine the conversion between and G's. For example:
Code:
5000 mV 1 G
1 count * --------------- * --------------
1024 counts X mV
where X is the accelerometer gain in mV/G.
Now you have a conversion factor from counts to G's and vice versa.
(NOTE: sorry about using the "code" window. That's not actually code: it's the only way I could get my equation to look right.)