Try It: BLE Trilateration Simulator

Try It: BLE Trilateration Simulator

animation
bluetooth
ble
Try Move Distance to Beacon 1 (0,0) — meters while leaving the other two distance controls unchanged. Compare the purple point with the dashed circles.
Observe The opening diagram labels B1 (0,0), B2 (5,0) and B3 (0,5), and marks the estimate in purple. The Residual error line reports Good fix.
Explain Distance to Beacon 1 (0,0) — meters supplies one of the ranges used to minimize squared distance mismatches. Residual error is the mean of the absolute mismatches at the estimated point.

Technical boundaries. The solver assumes a flat plane with stationary beacons at (0,0), (5,0) and (0,5), and accepts distances from 0.5 to 8 meters. It starts from circle differences and takes at most 12 Gauss-Newton steps; radio propagation and obstacles are not simulated.

NoteTry It: BLE Trilateration Simulator

Place 3 beacons and adjust the measured distance from each to see where trilateration estimates your position. The circles represent the distance measurement from each beacon — the estimated position is where they intersect.

Checkpoint: you should now be able to explain why three noisy distances produce a best-fit position rather than a guaranteed exact location. The residual error tells you whether the three circles agree.

Back to the chapter