1. Range comes from time
Distance equals one-way time of flight multiplied by the speed of light. The hard part is estimating that one-way time from timestamps.
Explore how UWB devices turn nanosecond flight time into a range estimate
UWB ranging estimates distance by timestamping short radio pulses. Use this workbench to compare single-sided and double-sided TWR, then watch how clock offset, reply delay, antenna delay, and non-line-of-sight bias change the range estimate.
A one-way UWB pulse flight time is tiny: at 10 m it is only about 33 ns. TWR avoids needing synchronized clocks by measuring a round trip and subtracting the responder's known waiting time.
Distance equals one-way time of flight multiplied by the speed of light. The hard part is estimating that one-way time from timestamps.
The initiator sends a Poll, the responder waits, then sends a Response. It is efficient, but any error in the reply delay is converted into distance error.
Double-sided TWR adds a Final message so both devices contribute round and reply intervals. This greatly reduces first-order clock-offset error.
Step through the message exchange or play the sequence. The animation, timestamp cards, formula, and diagnosis panels all update from the same model.
Clean line-of-sight range with a short responder reply. The SS and DS estimates are close to the true distance.
The first pulse starts the timing exchange.
The reply delay must be subtracted from the round trip.
Extra timing evidence reduces clock-offset sensitivity.
T1 starts the round-trip measurement.
The reply delay is intentional processing time.
SS-TWR can estimate range after this message.
Double-sided mode adds a second round interval.
The cards separate timing math from deployment risk. A clean formula can still produce a weak range when the radio path or calibration is poor.
The measured round trip and reply interval are consistent.
SS-TWR drift error is small with the selected reply delay.
No extra path delay is added to the first-arrival timestamp.
UWB can feel magical because the timings are so small. The workbench keeps the speed-of-light conversion explicit.
The initiator measures the full round trip. It subtracts the responder's reported reply delay, then halves the remaining flight time.
| Quantity | Current value | Why it matters |
|---|---|---|
| One-way flight time | 26.7 ns | Every nanosecond is about 30 cm of range. |
| Measured round interval | 500.1 us | This includes two flights plus responder reply time. |
| Reported reply delay | 500.0 us | Clock offset during this wait creates SS-TWR range error. |
| Path/calibration bias | 0 cm | NLOS and antenna delay errors add directly to the distance estimate. |
These cards summarize the design tradeoffs without hiding the important caveats.
Fewer packets and lower airtime. Best when reply delays are short, clocks are stable enough, and the range result only needs to live at the initiator.
Adds timing evidence to reduce clock-offset sensitivity. Useful for moving devices, longer reply delays, and tighter accuracy budgets.
IEEE 802.15.4z adds stronger UWB ranging support. System designers still need correct keys, session setup, and relay-resistance checks.
Non-line-of-sight, antenna placement, body loading, interference, and calibration can dominate the error even when timestamp math is correct.
Try these in order. Each task maps directly to a decision a UWB system designer has to make.
Select Long reply drift, then switch between SS-TWR and DS-TWR. Watch the range error and clock diagnosis.
Keep a 10 ppm offset and increase responder reply delay until SS-TWR error exceeds 30 cm.
Select NLOS bias. Notice that DS-TWR helps clock offset, but it cannot remove a delayed first path.
The page links to standards and vendor documentation so learners can trace the teaching model back to real UWB systems.
Enhanced UWB PHY and associated ranging techniques.
Open IEEE standard pageIndustry overview of UWB positioning, ranging, and interoperability framing.
Open FiRa overviewToF, TWR, TDoA, and PDoA positioning topology explanation.
Open Qorvo technology pageImplementation, calibration, NLOS, and TWR error references.
Open Qorvo notesThis workbench uses a teaching model: it assumes a clean first-arrival timestamp and shows how interval math translates to range. Real receivers estimate arrival time from the channel impulse response, then apply antenna-delay calibration and quality checks.