A free, open-source car wheel alignment web app for iPhone, running entirely in Safari.
Uses the iPhone's built-in gyroscope & accelerometer (DeviceOrientation API) — no app install required.
| Feature | Details |
|---|---|
| Camber mode | Measure wheel-face camber angle (tilt relative to vertical) |
| Toe (geometric) | Toe is not a sensor reading — a gravity sensor is blind to rotation about vertical and has no centerline reference — so the Toe tab is a guided geometric calculator. The quick path (plates + 2 tapes) computes TOTAL axle toe = atan((R − F) / D) from gaps measured over a measured reference span D, with a forced roll-and-average runout step (roll ~180°, re-seat, re-measure; single reads are refused). The precision string-box path splits left/right per wheel and reports total front/rear toe plus the thrust angle. Every result carries a ±band and its linear equivalent at the quoted diameter; honest accuracy ~0.2–0.3° |
| Caster (camber swing) | Caster is not a static gravity reading — it is recovered from how camber changes as the wheel is steered. Hold the phone flush to the wheel face (camber pose), steer a known angle θ each way, and capture a settled camber read at each position; caster = (camber_out − camber_in) / (2·sin θ). Because it is a difference of two camber reads, the camber zero cancels — no zeroing step. Each read's ±band is propagated (≈2× the per-read camber band at 20°). The magnitude is robust, but the absolute sign must be validated against a known-caster reference; honest accuracy ~±0.5–1° |
| Level mode | Check if the vehicle or surface is left-right level |
| Pitch mode | Measure front-to-back pitch angle |
| Sensor smoothing | Smooths the live feed and averages recent samples before display |
| Settled detection | Shows when the phone is stable enough to trust the reading |
| Per-mode calibration | Keeps a separate zero offset for each mode |
| Two-point scale calibration | Optionally capture a known reference angle so readings are scaled as (raw − zero) × gain, correcting a sensor that under/over-reports. Defaults to unity gain (no-op) until set |
| 4-corner plane fit | Fits a least-squares plane to the FL/FR/RL/RR Level baseline and reports per-corner residuals, so a non-coplanar (bad/mis-placed) datum is flagged instead of silently averaged. Level/pitch compensation, and the camber left-right projection, come from the plane slopes |
| Per-corner save history | Each save keeps a small rolling history per side and stamps the active zero, scale, orientation/pose, device reference, and fixture. Left-right / front-rear deltas warn when computed across mismatched calibration contexts |
| Compass awareness | Reads the absolute compass heading (and Safari accuracy) and warns "heading not trusted" under indoor magnetic distortion; raw alpha is never used as a yaw reference |
| Quick / Precision workflows | Fast single-save mode or a deeper session with baseline, fixture, and repeatability checks |
| Device reference | Capture a trusted device bias reference and reuse it across modes |
| Fixture profiles | Save named jig / fixture setups locally, including whether the fixture is reversible |
| Around-car baseline | Capture FL / FR / RL / RR level points to establish a session baseline plane |
| Reversal capture sets | Pair forward and reversed jig placements to expose mounting bias |
| Trueness self-test | Guided 180° flip test: read, flip, read again — a healthy inclinometer is equal-and-opposite, so the residual bias (a+b)/2 should be near zero |
| Repeatability scoring | Score repeated capture sets before accepting a precision measurement (repeatability is not trueness) |
| Saved side readings | Store FL / FR / RL / RR readings locally and compare deltas |
| Advanced data | Hide raw sensor values in an expandable debug section |
| PWA | Add to iPhone Home Screen for full-screen experience |
- Enable GitHub Pages for this repo (Settings → Pages → branch
main, root/). - Open the published URL in Safari on your iPhone.
- Tap "Enable Sensors & Start" and allow motion access when prompted.
# Any simple HTTP server works, e.g.:
npx serve .
# Then open http://<your-ip>:3000 in Safari on your iPhoneNote: DeviceOrientation permission requires a user gesture and HTTPS (or localhost).
Loading the file directly viafile://will not work on iOS 13+.
- Use Level mode first to verify the car or floor is close to level.
- Switch to the mode you want and tap Zero This Mode on a known reference.
- Match the preferred orientation shown in the app.
- Hold the phone still until the reading becomes Settled.
- Tap Save Avg for FL, FR, RL, or RR and compare the left/right delta.
- Switch from Quick workflow to Precision workflow.
- Capture a trusted device reference on a known surface.
- Save or select a named fixture profile for your jig or phone mount.
- In Level mode, capture baseline points at FL, FR, RL, and RR.
- For each wheel reading, capture repeated forward readings, then repeated reversed readings if the fixture is reversible.
- Save the measurement only after the app reports good repeatability, acceptable reversal bias, and a trustworthy baseline.
Honest measurement matters more than a precise-looking digit. Follow these rules every time:
- Verify the surface is actually level first. Use Level mode to confirm the floor or car is level before any alignment reading — a tilted reference contaminates every downstream angle.
- Register to a defined plane every time. Camber registers to the machined wheel face (clear of the curved lip and decorative spokes — wheel-face camber is not tire camber); level/pitch register to a fixed body datum. Re-use the exact same surface on every corner.
- Hold quasi-static. Let the reading settle; the app rejects captures while the phone is moving, pressed, or spinning so motion noise cannot leak into the number.
- Do the flip test. Run the 180° flip self-test before trusting a value: read, flip the phone 180° about the measurement axis, read again. A true inclinometer reads equal-and-opposite, so the residual bias
(a + b) / 2should be near zero. Repeatability alone is not trueness. - Toe is geometric. The phone cannot sense toe — use the guided Toe wizard. Enter the front-vs-rear rim/plate gap over a measured reference span
D(atan((R − F) / D)), reference the rim, not the tire sidewall or lettering, and do the roll-and-average runout step (roll ~180°, re-seat, re-measure) since runout is the dominant error. The precision string-box path adds the per-wheel split and thrust angle. - Caster is a camber swing, not a static read. The phone cannot sense caster directly — recover it from how camber changes between two steer positions. Use turn plates (or a printable degree disc) to steer a known angle θ each way, hold the phone in the camber pose, and capture a settled camber read steered out and steered in:
caster = (camber_out − camber_in) / (2·sin θ)(classic θ = 20° each way). Because it is a difference of two camber reads the zero offset cancels, so caster needs no zeroing step — capture raw camber both ways. The propagated ±band is ≈2× the per-read camber band at 20°; honest accuracy is ~±0.5–1°. The magnitude is robust, but validate the absolute sign against a known-caster reference (positive caster = top of the steering axis tilted rearward). - Read the band, not the digit. Every saved value carries a
± Y.YY° (95%)confidence band. Treat the band — not the single displayed digit — as the real result. - Scale-calibrate against a known angle (optional). After zeroing, if you have a machined reference wedge, tap Set scale, hold the phone on it, and enter the true angle. The app derives
gain = true / measuredand scales every later reading, correcting a sensor that under/over-reports. Left unset, the gain stays1.00×(no change).
Phone sensors are consumer-grade (±0.1°–0.5° typical error).
Evanline now smooths live data, waits for stable samples, and saves averaged readings to improve repeatability, but results remain indicative. Professional alignment still requires a calibrated laser rack.
For higher-accuracy DIY work, design the physical jig around rigid 3-point wheel-face contact, avoid using the tire sidewall as the primary datum, and prefer a symmetric or reversible phone mount so the precision workflow can cancel mounting bias.
- Pure HTML / CSS / JavaScript with modularized app and domain scripts
- W3C DeviceOrientation API
- PWA manifest for "Add to Home Screen"
- Service Worker cache for offline access after first load
./index.html— app markup./assets/css/styles.css— styling./assets/js/app.js— UI + app orchestration./assets/js/domain.js— reusable measurement/math logic./service-worker.js— offline caching
npm run lint
npm testSee CONTRIBUTING.md for the full verification checklist and device matrix.
MIT — see LICENSE