iPhone XS and XS Max in silver, space gray, and gold.
New Accelerometer Supplier Could Be Causing Incorrect iPhone 5s Level and Compass Measurements
RealityCap CEO Eagle Jones read into the Chipworks teardown of the iPhone 5s (via Gizmodo) and noticed that the phone uses the Bosch Sensortech BMA220 as its accelerometer. The iPhone 5, for example, used an accelerometer from STMicroelectronics.
Both devices have similar consistency in measurement, but the Bosch device has a larger measurement 'bias'. The end result, as Jones notes, is that the new accelerometer has a different 'zero-g offset' which would need to be compensated for in software.
The second key spec for accelerometers is the zero-g offset, or bias. This indicates the range for a roughly constant offset that will be added to every output sample of data due to manufacturing variance. This can also change over time due to mechanical stress or temperature variation. This is where we find the problem: the typical bias for the ST part is +/- 20mg, while the Bosch part lists +/-95mg. This almost 5x greater offset range is confirmed by our measurements, and is absolutely consistent with the failures being reported by users and the media. Specifically, a +/- 20mg offset range would translate to around a +/-1 degree accuracy range in tilt detection, and a +/-95mg offset translates to +/-5 degrees in tilt.He goes on to note that developers can compensate for the increased offset because it is unlikely to change significantly from one measurement to another, though Apple could do a system-wide fix at the OS level to ensure accurate measurements in the future.