How an accelerometer is made
The accelerometer in your phone is a MEMS, a micro electro mechanical system. On a piece of silicon smaller than a millimeter there's a moving mass with lots of tiny teeth, facing other teeth that don't move. When the mass shifts, the gap between the teeth changes, and the chip measures the difference as a change in electric charge.
It usually measures up to 8 or 16 times gravity, enough for a fall or a jump. It costs a few cents and uses a fraction of a milliwatt. That's why you find one in every phone, watch, earbud and game controller.
- 9.81meters per second squared, which is 1 g
- 16 gthe most that many accelerometers can measure