Accelerometer Readings

Just a quick question what does the compiler read the Sensor Values from the Acceleromter as? Is the Sensor Value reading as G’s or is it meters per second^2, also what should the reading be when one axes is facing directly down eg. When gravity is imparting acceleration on it.

  1. The accelerometer measures in tics I believe… which converts to m/s^2 or whatever when you multiply it by the conversion factor fraction… a good way to find this conversion factor fraction is to divide the acceleration of gravity in whatever units you want by the reading of the sensor’s axis that is pointing down. So assuming you want to convert to meters per second^2, [sensor value in m/s^2] =[sensor value in tics] * [the acceleration of gravity in m/s^2 or 9.8 m/s^2]/[initial value of the axis facing downward]. The axis facing downwards might have a different conversion factor fraction then the other axis and other sensors so it’s best to find the conversion factor fraction for each axis on each sensor individually.
  2. The reading should be some amount of tics that equals the acceleration of gravity.

Sorry, fellow ACP Robotics member @OverlyOptimisticProgramer… I just had to…

I don’t remember off the top of my head what units are used, but you could use whatever units you want with a conversion factor, as @OverlyOptimisticProgramer said.