Smartphone Sensors — The Physics Inside Your Phone
The physics inside smartphones: MEMS accelerometers, gyroscopes, magnetometers, GPS and Einstein's relativity correction.
Quick answer
Your phone is a physics lab: MEMS accelerometers (microscopic spring-masses) sense motion, gyroscopes sense rotation, magnetometers sense Earth's field, and GPS solves position from satellite timestamps — corrected for Einstein's relativity.
Unit: acceleration: m/s² (or g); magnetic field: microtesla (μT)
Example: GPS satellite clocks gain ~38 μs/day relative to the ground from combined relativity effects; uncorrected, your position would drift ~10 km per day.
What you will learn
- Explain MEMS accelerometers via F = ma and capacitance
- Distinguish accelerometer, gyroscope and magnetometer roles
- Describe GPS trilateration from satellite timestamps
- Explain why GPS requires special and general relativity corrections
Accelerometers: F = ma on a silicon chip
Tilt your phone and the screen rotates. That trick runs on a MEMS accelerometer — a microscopic slab of silicon (the proof mass) suspended on tiny springs, smaller than a grain of sand.
Accelerate the phone and the mass lags behind, stretching the springs ( at microscale). The displacement changes the capacitance between comb-like electrodes, which circuitry reads as acceleration. Three of these, oriented along x, y, and z, give full 3D motion sensing.
Clever detail: the sensor cannot distinguish gravity from acceleration (Einstein's equivalence principle in your pocket). It actually measures proper acceleration — sitting still on a table, it reads 1 g upward, because the table prevents freefall. Screen rotation works by tracking which axis feels that 1 g.
Gyroscopes and compasses: rotation and direction
Rotation needs its own sensor. Most phone gyroscopes are vibrating MEMS structures: drive a tiny mass to oscillate, then rotate the phone, and the Coriolis effect deflects the oscillation sideways — the deflection measures rotation rate.
The magnetometer is simpler: Hall-effect sensors measure Earth's magnetic field (~25–65 μT) along three axes, giving compass heading. It points to magnetic north; your map app adds the local declination to show true north.
Apps fuse all three (sensor fusion): accelerometer for tilt and steps, gyro for smooth rotation tracking, magnetometer for absolute heading. Each covers the others' weaknesses — gyros drift, accelerometers are noisy, magnetometers hate nearby metal.
GPS: atomic clocks plus relativity
GPS is trilateration with atomic clocks. Each satellite broadcasts its position and the exact transmission time. Your phone measures each signal's arrival time; the delay × speed of light = distance to that satellite. With four satellites, four spheres intersect at your location (three for position, one to solve the receiver's clock error).
Then comes Einstein. Two relativistic effects shift satellite clocks relative to the ground:
- Special relativity: moving at ~3.9 km/s, satellite clocks tick slower by ~7 μs/day.
- General relativity: weaker gravity at 20,200 km altitude makes them tick faster by ~45 μs/day.
Net: +38 μs/day. Light travels ~11.4 km in 38 μs — so ignoring relativity would corrupt your position by kilometers per day. Engineers simply build the correction into the satellite clocks before launch. Your morning commute runs on general relativity.
GPS is the most everyday proof that Einstein was right: a purely Newtonian system would drift ~10 km per day. Relativity is not abstract — it is infrastructure.
The supporting cast: barometers, light and proximity
The supporting cast is pure applied physics too: the barometer (MEMS pressure sensor) detects floor-level altitude changes from ~12 Pa per meter of air; the ambient light sensor (photodiode) dims the screen via the photoelectric effect's cousin; the proximity sensor times infrared reflections to blank the screen at your ear.
Every sensor is a transducer — a device converting one physical quantity into an electrical signal. Physics defines what can be sensed; MEMS engineering shrinks it onto silicon; software fuses it into features. The phone in your hand is arguably the densest concentration of applied physics ever mass-produced.
Variables and units
| Symbol | Name | Unit | Meaning |
|---|---|---|---|
| Acceleration | m/s² | Proof-mass acceleration reading | |
| Magnetic field | μT | Earth's field at the sensor | |
| GPS clock correction | μs/day | Relativistic clock offset per day |
Common mistakes
It measures acceleration (proper acceleration, including gravity's 1 g downward reference). Velocity and position come from integrating — which is why they drift without GPS corrections.
Your phone never transmits to satellites. It passively listens to timestamped signals from at least four satellites and solves for position from the time differences — trilateration, not radar.
GPS would fail within a day without relativistic corrections. It is the most commercially valuable everyday application of Einstein's theories.
Real-world applications
Screen auto-rotation uses the accelerometer to find which way is down.
Fitness apps count steps from accelerometer spike patterns.
Compass apps read the magnetometer (Hall-effect) for magnetic north.
Navigation apps fuse GPS, accelerometer and gyroscope data for smooth positioning.
Frequently asked questions
How does a phone's accelerometer work?
A MEMS accelerometer is a microscopic mass on tiny silicon springs. Acceleration displaces the mass (F = ma at microscale), changing a capacitance the phone reads. Three such sensors, one per axis, give 3D acceleration.
Accelerometer vs gyroscope — what's the difference?
The gyroscope measures rotation rate (how fast the phone turns), while the accelerometer measures linear acceleration plus gravity's direction. Together they give full motion tracking.
Does relativity really affect GPS?
Yes — measurably. Satellite clocks tick faster than ground clocks by ~38 microseconds per day (relativity), which would cause ~10 km of daily position error. GPS satellites' clocks are pre-corrected for it.
Why doesn't my compass point exactly north?
The magnetometer senses Earth's magnetic field direction (magnetic north). True north differs by the local magnetic declination, which mapping software corrects.