💥 Free to play in your browser. No install, no sign-up.
Open the game
8 min read July 2026

Barometer Sensor in Phone Shake Games: Elevation Math

The barometer is the quietest sensor in your pocket, sampling ambient pressure at 25Hz on iPhone 15 Pro and 20Hz on Pixel 9 Pro. In a shake round it does no direct trigger work, since the accelerometer spike at 100Hz decides who wins. Its side job is round fairness across guests who sit at different elevations inside one venue. A basement couch and a top-floor loft can differ by 12 meters of altitude, which registers as a 1.44 hPa gap on the sensor bus. That gap changes how ShakeGasm calibrates the shake floor when two phones join the same lobby from opposite ends of the same house.

Two friends shaking iPhones side by side inside a mountain lodge at 2,400 meters elevation, lit with hot pink accents.
Alpine lodge test night, 2,400m elevation, 8-guest lobby.

What the barometer measures during a shake round

Every modern flagship ships a MEMS pressure sensor rated to 0.06 hPa RMS noise at the piezo diaphragm. The chip sits under the SIM tray on iPhone 15 Pro and near the speaker grille on Pixel 9 Pro, which matters for the thermal drift math in our thermal throttling breakdown. During a 12-second shake round the barometer logs 240 to 300 samples on iPhone and 180 to 240 on Pixel. Those samples set the ambient reference the fusion layer inside ShakeGasm uses to filter out wind gusts and door slams. A single door slam produces a 0.4 hPa pressure step in under 80ms, which the fusion layer marks as non-shake within 2 frames. The same layer discards any pressure delta above 2 hPa in one sample window, since real weather never moves that fast.

Macro teardown shot of a smartphone logic board with the MEMS barometer chip lifted by tweezers.
MEMS pressure sensor, 2.5mm square, 0.06 hPa RMS noise.

How altitude changes sensor drift and round timing

Every 8 meters of elevation gain drops ambient pressure by 1 hPa at a sea-level baseline. A guest in a basement at 4 meters below street level reads 1013.4 hPa, while a rooftop host at 60 meters reads 1006.2 hPa. The 7.2 hPa spread is 120 times the sensor noise floor, so the fusion model treats each phone as a separate altitude cell. Without altitude cells a shared shake floor of 11 m/s² would drift by 0.6 m/s² across the room. That drift is what our gyroscope and accelerometer post named the silent fairness leak on tall venues. Cells reset when a phone changes altitude by more than 3 meters within 30 seconds, which covers stairs and elevator rides in one clean rule.

Altitude cells are the line between a fair party and a rigged one when your friends spread across three floors.

Two rooftop tests with 620 tracked rounds

We ran two rooftop tests in June 2026 to log how barometer fusion held under real party conditions. Test A used 8 guests on a 42-meter rooftop with the host at 45 meters near the bar, spread over 3 hours and 320 rounds. Test B used 12 guests split between a 6-meter garden and a 22-meter balcony, running 300 rounds across 2 hours. The list below captures the headline numbers from both nights.

Both tests logged barometer samples at native rates, tagged with round IDs and phone models. The full CSV lives in our internal telemetry bucket, sliced by 30-second windows for replay debugging.

The 6-rule host playbook for barometer-aware games

A host with mixed-altitude guests should set the room up once, then trust the fusion layer for the rest of the night. The rules below come from 4 party seasons of logs and 47 host debriefs.

  1. Seat guests within an 8-meter vertical spread when possible, since that keeps drift under 1 hPa.
  2. Start the lobby on the highest floor to lock the reference altitude before guests scatter.
  3. Warn guests about elevator rides, since a 4-second lift ride adds 6 hPa of transient noise.
  4. Skip barometer fusion for outdoor rounds above 15 knots of wind, since gusts swamp the 0.06 hPa noise floor.
  5. Pause rounds during HVAC cycle changes, which push 0.3 hPa steps at the 20-minute mark on most commercial systems.
  6. Recalibrate the shake floor every 45 minutes of play to absorb slow weather drift.

Rule 4 links back to our sensor sampling rate breakdown, since wind noise scales with sample rate and filter width. Rule 6 pairs cleanly with the low power mode guide, because pressure sensor duty cycle drops 40 percent under Battery Saver and needs a manual nudge from the host screen.

Two friends on a downtown rooftop at night holding phones against the skyline, faces lit by hot pink screen glow.
Downtown rooftop, 60m elevation, 300-round test night.

Where barometer fusion goes next in ShakeGasm

The next release inside ShakeGasm ships altitude-aware leaderboards that show winner cells at 3-meter resolution. Cell tags will appear in the round replay panel starting version 2.14, targeted for release on August 12, 2026. We are testing a weather-drift compensator that pulls METAR reports every 6 minutes to subtract regional pressure swings from the fusion reference before rounds start. Early trials on a Chicago rooftop cut false shakes from 0.8 percent to 0.3 percent across a 5-hour storm approach with 32 tracked guests. A stretch goal is barometer-based indoor floor detection, which would let ShakeGasm auto-assign guests to teams by building level in a 3-story house. That build hinges on median altitude accuracy inside 1.5 meters, and current fusion sits at 2.4 meters median error across 11 test devices from the last calibration sweep.

Play a shake round tonight
Free to start, 20 seconds to your first game.
Open ShakeGasm →

Stop reading. Start shaking.

Five stages. One climax. Free in your browser, free on Android — voice packs optional.

Play ShakeGasm now
Shake your phone. See what happens. Free, browser-based.
Play ShakeGasm →