G force sensor

Any discussion on using LapTimer. Please use this forum in case you need guidance on how to use LapTimer or perform a certain operation
Post Reply
devenh
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 163
Joined: Sun Sep 02, 2012 3:22 pm

G force sensor

Post by devenh »

I assume the g force calculation is based on the iPhone's internal accelerometer. If so, does the placement of the iPhone within the car affect its recording of g force?

Deven
User avatar
Harry
Site Admin
Site Admin
Posts: 10524
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: G force sensor

Post by Harry »

LapTimer uses the iPhone's (or Android phone's) internal accelerometer. All these accelerometers deliver values relative to the device's three axles of potential rotations. As long as the phone is mounted at least slightly upwards (i.e. not completely flat), LapTimer will detect gravity and driving forces so they get translated and aligned to the car's moving / force dimensions (lineal + lateral) and calculate values accordingly. Search for "calibration" here in the forum to find more information if needed.

- Harry
Image Image Image Image
gplracerx
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 836
Joined: Thu May 03, 2012 5:26 am
Location: Kingsport, TN USA

Re: G force sensor

Post by gplracerx »

I'm not sure why the device orientation matters at all. You can determine the relationship of the three accelerometer axes to the vehicle frame of reference with two vectors, gravity with the vehicle level and stationary and vehicle acceleration or deceleration in a level straight line. With only a little more sophistication you don't even need straight line acceleration. You can use GPS yaw rate and vehicle velocity to calculate true lateral acceleration. Rather than throwing out the accelerometer data and re-calculating accelerations from the GPS data, you could have an option to use the GPS data to refine the accelerometer calibration. The XGPS160 seems to have precise enough elevation data to include vertical velocity too.
Post Reply