Speedometer calculator: pulses to km/h, tolerance and fixed point

A speedometer turns pulses into speed: v = 3.6 × 2πr × f / z km/h, with f the pulse frequency, z the pulses per wheel turn and r the rolling radius. A 48-tooth ring on a 205/55 R16 tyre gives 403.0 Hz at 60 km/h. The law then says the reading may never be low: shown minus true must lie between 0 and 10 % of the true speed plus 4 km/h (UN R39, IS 11827).

Work out speed from pulses and its resolution, check readings against the band, filter a flickering display, size a fixed-point type, and run the TFT cluster speedometer requirements of the model-based development project with SLDV-style flags and test vectors. Free, runs in your browser.

UN Regulation No 39 (02 series, 2025) · IS 11827:2008 · CMVR Rule 117 · MathWorks Fixed-Point Designer, Simulink and SLDV docs · 111 public project reports · checked against an independent solution (3,151 checks at build) · Updated 24 Nov 2026

What road speed do these pulses mean, and how finely can the cluster read it?

Road speed60.00 km/h16.67 m/s
Wheel speed503.7 rpmrolling radius 315.9 mm
Pulses per km24,179one gate pulse = 1.49 km/h
  • With a 0.1 s gate, one pulse is worth 1.49 km/h, so at 2 km/h the gate catches 1 pulse and reads 1.49 km/h. Timing the period with a 1 MHz clock reads 2.000 km/h.

48 teeth is the ring in PicoScope's ABS worked example (a 215/45 R17 tyre); count yours. For wheel speeds under braking and a 16-bit timer's overflow, use the ABS slip ratio calculator; for a tyre size change, the gear speed calculator's tyre size change tab.

-1.5-1-0.500102030405060pulses in 0.1 speriod, 1 MHz timertrue speed (km/h)shown − true (km/h)
True km/hf (Hz)Gate NGate readsPeriod ticksPeriod reads

How does a speedometer calculate speed?

It counts pulses. A toothed ring (tone ring) on the wheel hub or the gearbox output passes a sensor, and each tooth gives one pulse. Wheel revolutions per second are the pulse frequency divided by the teeth per turn. Multiply by the rolling circumference for metres per second, then by 3.6 for km/h:

For a 48-tooth ring on a 205/55 R16 tyre (unloaded size, to keep the numbers simple):

IS 11827 defines the same constant for a cluster: the speedometer ratio is the pulses per minute at 60 km/h divided by 1,000, which "is also equal to ... the number of pulses to read 1 km". Use the loaded rolling radius if you have it: a tyre under load rolls on a smaller radius than its unloaded size, and IS 11827 ties the speedometer to the "dynamic rolling radius of tyre". Tab 1 has a factor for it. Each 1 % smaller radius makes the same pulses mean 1 % less speed.

Why do low speeds read coarsely?

Counting pulses in a fixed gate time T gives whole pulses only, so the reading moves in steps. Timing the gap between two pulses with a fast clock is fine at low speed and coarse at high speed:

With a 0.1 s gate the demo reads in steps of 1.49 km/h: at 2 km/h it catches one pulse and shows 1.49, at 60 km/h it counts 40 pulses and shows 59.56. A 1 MHz period timer reads 2 km/h as 2.000. The two methods are equally fine at 471 km/h, where f² = fc/T. Wikipedia's wheel-speed-sensor article puts the design choice plainly: "The number of teeth is chosen as a trade-off between low-speed sensing/accuracy and high-speed sensing/cost." Slip between tyre and road is a separate error: see the ABS slip ratio calculator.

How accurate must a speedometer be?

Never low, and at most 10 % plus 4 km/h high. UN Regulation No 39 (02 series, in force 26 September 2025), paragraph 5.4: "The speed indicated shall not be less than the true speed of the vehicle." At the test speeds, "0 ≤ (V1 - V2) ≤ 0.1 V2 + 4 km/h", with V1 the shown and V2 the true speed:

A car with Vmax above 150 km/h is tested at 40, 80 and 120 km/h shown. The true speed must then lie in 32.73-40, 69.09-80 and 105.45-120 km/h. Production checks (R39 Annex 3) allow + 6 km/h for categories M and N, + 8 for L3-L5 and + 4 for L1-L2.

What is the speedometer rule in India?

CMVR Rule 117 requires every motor vehicle, except an invalid carriage or one with a design speed of 30 km/h or less, to carry a speedometer. ICAT's M1 type-approval list tests "speedometer calibration" under Rule 117 (1) and (2) to IS 11827:2008. That standard was revised "to align the requirements of this standard with ECE Regulation No. R39". Its 5.5.2.1 type-approval band is the same 0.1 V2 + 4 km/h, with + 6, + 8 and + 4 for production. One difference: IS 11827 rounds 80 % of Vmax to the nearest 10 km/h before testing (tab 2 has the option).

Why does my speedometer show more than the actual speed?

Because reading low is illegal and the tyre is not fixed. A new tyre has a larger rolling radius than a worn one, and a larger tyre covers more road per pulse. The cluster must not read low on the largest tyre and must stay inside the band on the smallest, so makers set it high. If the cluster multiplies its speed by a factor g:

For a cluster set to a new tyre's 0.316 m that wears to 0.310 m, any g from 0.0 % to 11.6 % high passes. The 120 km/h test sets the top, because the + 4 km/h counts for least there. The middle of that window is 5.8 % high: our choice for illustration, not a regulation figure. A larger tyre than the one fitted can push the reading below true: that is the tyre size change tab of the gear speed calculator.

Why does a digital speedometer flicker, and how is it filtered?

Pulse counts are noisy, and at 59.6 km/h the rounded number jumps between 59 and 60 several times a second. A first-order low-pass filter (the discrete RC filter, "yi = α xi + (1 − α) yi−1") smooths it, and a dead band changes the shown integer only when the filtered speed is at least h away from it:

On the seeded demo (0.8 km/h noise, 0.01 s samples), plain rounding changes the number 664 times in 10 s with 531 reversals. τ = 0.5 s with h = 0.5 (plain rounding of the filtered value) still gives 1 reversal; h = 0.8 gives 12 changes and 0 reversals. The price is lag: on the 5-8 s ramp the display trails the true speed by τ = 0.50 s.

What is the TFT cluster speedometer software component project?

It is the model-based development project behind 111 public Skill-Lync reports: build a Simulink model from four requirements, then take it through the data dictionary, JMAAB checks, requirement tagging, the Fixed-Point Tool, Design Verifier, MIL/SIL testing with coverage, Embedded Coder, Polyspace and Test Manager. The requirements, as 70 reports reproduce them (R2 and R3 "activated for every 10th millisecond"):

With Main = Aux = 1, 60 km/h gives DS1 = 38.95 and DSF = 30.351, so |DSF − DS| = 29.649 and the switch shows 60. The difference is linear in DS:

So the filtered branch is taken only between the lower limit 2 km/h and 2.903 km/h. With any other whole filter value from 1 to 3 (the range the reports use), it is never taken: |DSF − DS| stays above 1.5 for every DS from 2 to 250. Design Verifier would report that switch input as dead logic, and a coverage run can never reach 100 % decision coverage. 4 reports show coverage below 100 % (one shows "50% decision coverage"), which is what this predicts.

Floating point and the generated code also disagree near the boundary. At 2.9 km/h the double model gives |d| = 1.499 and shows 1.401. The generated C pasted in a public report stores speed in 0.01 km/h counts. It gets |d| = 1.51 and shows 2.90. Its subtraction "(q × 0.01 − 0.05) / 0.01" runs in double: for q = 1,000 counts the answer should be 995, the arithmetic gives 994.999… and the cast to uint16 truncates it to 994. A zero filter value does not stop the code: its guard returns 32767, so with Aux = 0 DSF becomes 327.64 km/h and the display shows DS. Tab 4 runs both and lists the test vectors that flip each decision.

How do you choose a fixed-point type for vehicle speed?

Pick the finest resolution whose range still holds the largest speed. MathWorks defines the stored integer Q through "real-world value = (slope × integer) + bias", and binary-point scaling as the case "where the bias is 0 and the slope adjustment factor is 1":

For 0-260 km/h in 16 bits:

The signed type spends a bit on negative speeds a speedometer never shows, so it is twice as coarse. sfix16_En7 covers -256 to 255.9921875. Storing 123.456 km/h as ufix16_En7 keeps the integer 15802 and reads back 123.453125 (-0.00288 km/h). Per MathWorks, "A fixed-point value can be represented to within half of the precision of its data type and scaling". The constants 0.05 and 0.03 are smaller than one count of a whole-km/h integer type, so they vanish if the subtraction runs in uint16 km/h.

What 111 public TFT cluster speedometer reports show (as of 24 Nov 2026)

We read the 111 public Skill-Lync reports titled "Development of TFT Cluster Speedometer Software Component" as of 24 Nov 2026, n = 111. 45 are image-only (under 100 words of their own), so models, data types and coverage results in screenshots are not counted: every row is a floor. Code rows count only the 21 reports that paste generated C. The links are examples.

What stands out: 4 of the 21 code reports compare a uint16 difference without Abs. A negative difference wraps to a large number, so their switch always shows DisplaySpeed. 3 rounded the 1.5 threshold to 2. 1 enables the filters on Timer / 10 == 0, true only at the first step. 67 name the Fixed-Point Tool but none types a fixdt(…) data type in the text, and none types a MISRA rule number. These are first-party counts, a starting point rather than a measure of ability.

How we checked the calculator

An independent Python script, scripts/verify/speedometer.py, recomputes the numbers with its own code. This page refuses to build if the browser code differs from it in any of 3,151 numbers, flags or lists (111 more assertions run inside the script, 468 cases). The script reads the R39 test-speed table row by row and finds the band edges and the over-read window by bisection on the inequality itself. It replays the filter sample by sample against 1 − (1 − α)k and checks the ramp lag equals τ. It evaluates the requirement text as an if/else and replays the report's generated C with Python integers. It checks every whole Main and Aux from 1 to 5 for dead logic, and MathWorks' examples: fi(22.6, 0, 8, 3) = 22.625 (Floor: 22.5), fi(6, 1, 3, 0) saturates to 3 and wraps to −2. Two deliberate bugs (1.2 for 1.1 in the band, 0.5 for 0.05 in R2) each make the build fail.

What this calculator does not cover

  • Odometers. R39 also limits the odometer to ± 4 % of distance; not calculated here.
  • Tyre slip and GPS. Speed from wheel pulses assumes the tyre rolls without slip; braking and traction slip are in the ABS slip ratio calculator.
  • Sensor electronics. Passive versus active sensors, air gap and signal conditioning are not modelled; every pulse is assumed to be counted.
  • Your exact Simulink settings. The fixed-point tab follows fi's documented rules; Simulink blocks can use other rounding modes (set per block). Check the block's "Integer rounding mode".
Learn model-based development

Requirements to Simulink, Design Verifier, MIL/SIL with coverage, Embedded Coder and Polyspace: the TFT cluster project is part of Skill-Lync's model-based development training.

Frequently asked questions

How does a speedometer calculate speed?

A sensor counts pulses from a toothed ring on the wheel or the gearbox output. Wheel revolutions per second are the pulse frequency divided by the teeth per turn. Multiply by the tyre's rolling circumference for metres per second, then by 3.6 for km/h. A 48-tooth ring on a 205/55 R16 tyre gives about 403 Hz at 60 km/h.

Why does my speedometer show more than the actual speed?

The rules forbid reading low. UN R39 and India's IS 11827 require the shown speed never to be below the true speed, and at most 10 % plus 4 km/h above it. Tyres wear and vary, so makers set the reading a few percent high to keep every tyre size within that band.

What is the speedometer tolerance allowed in India?

CMVR Rule 117 requires a speedometer, and type approval tests it to IS 11827:2008. For type approval, shown minus true speed must be between 0 and 10 % of the true speed plus 4 km/h, the same band as UN R39. Production checks allow plus 6 km/h for cars and trucks.

How do you convert wheel speed sensor pulses to km/h?

Speed in km/h = 3.6 × 2π × rolling radius × pulse frequency ÷ teeth per revolution. With 48 teeth and a 0.316 m rolling radius, 100 Hz is 125 rpm of the wheel, which is 14.9 km/h. Use the loaded rolling radius rather than the unloaded tyre size, because a tyre under load is smaller.

What is slope and bias in fixed-point?

A fixed-point number stores an integer Q and reads it as V = S × Q + B, where S is the slope (the resolution) and B the bias (an offset). Binary-point scaling sets the slope to 2 to the power of minus the fraction length and the bias to zero, so sfix16_En7 steps in 1/128.

How do you stop a digital speedometer from flickering?

Filter the speed and add a dead band. A first-order low-pass filter smooths the noise; a dead band changes the displayed integer only when the filtered speed moves more than, say, 0.8 km/h away from it. In the demo below this cuts 531 direction reversals in 10 seconds to none, for 0.5 s of lag.

Related on Skill-Lync

Sources

  • UN Regulation No 39, speedometer and odometer equipment, 02 series of amendments (EU Official Journal L 2025/1902, 26 Sep 2025): 5.3.5 test speeds, 5.4 band, Annex 3 conformity of production.
  • IS 11827:2008, Automotive Vehicle: Calibration of Speedometer, Method of Evaluation (BIS): 3.5.2 speedometer ratio, 5.5 accuracy, Table 2 test speeds.
  • Central Motor Vehicles Rules 1989, Rule 117 (speedometer); ICAT, Ready Reckoner M1 category CMVR type approval (row 33, speedometer calibration to IS 11827:2008).
  • MathWorks documentation: Fixed-Point Designer "Scaling" and "Precision and Range"; Simulink Saturation Dynamic block; Simulink Design Verifier "Detect Integer Overflow and Division-by-Zero Errors"; Polyspace Test MCDC.
  • Pico Technology, "Calculating road speed and diagnosing ABS sensors with PicoScope": a 48-tooth ABS ring on a 215/45 R17 tyre, frequency to rpm to km/h.
  • Wikipedia: "Wheel speed sensor" (tooth count trade-off); "Low-pass filter" (discrete-time realisation).
  • Skill-Lync, the 111 public TFT cluster speedometer reports, read 24 Nov 2026.
Free counselling

From four requirements to code you can test.

Automotive software roles want people who can turn a requirement into a model, prove it with Design Verifier and coverage, and explain why MIL and SIL disagree. A Skill-Lync counsellor can map the model-based development course that fits your background.

Talk to an MBD course counsellor

Free. We call you back, usually the same day.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.