Personal study / motorcycle dynamics

Know your
stopping point.

Explore the decisions that change a motorcycle stop: speed, grip, mass, brake pressure and measured signals. A practical study in physics, sensing and software.

Read the roadFeel the loadUnderstand the stopRead the road
STUDY 01

Independent educational project. This simulator is a personal learning exercise using simplified, publicly understood physics. It is not a safety system, riding instruction, engineering certification or professional advice.

Inputs

Set the ride

01 / 03

Ride profile

Manual rider input

City profile selected · values update instantly

Playback

Ready
Velocity0.0 km/h
Distance0.0 m
Elapsed0.00 s
Brake load0 N
Sensor buswaiting for samples
Front WSS-- rad/s
Rear WSS-- rad/s
IMU accel-- m/s²
Gyro P / Y / R-- rad/s
GPS speed-- m/s
GPS position--
GPS fix--

Stopping time

--

seconds

Stopping distance

--

meters

Reaction distance

--

meters before braking

Total distance

--

reaction + braking

Average deceleration

--

m/s²

Actual brake force

--

newtons

Rear axle load

--

newtons · zero means lift

Run a simulation to see reaction distance, braking distance, and whether the motorcycle reaches the dog.

Readout

Velocity over time

speed profile

The model

A stop is a conversation
between the road and the rider.

01

Set the scene

Choose a road profile, then tune the bike and the braking input to match your ride.

02

Find the limit

Tyre grip caps braking force. Once that limit is reached, asking for more brake cannot shorten the stop.

03

Watch it unfold

Playback turns the calculation into motion, with sensor samples and a speed trace along the way.

Every sample tells a story

More than a
stopping distance.

The simulation exposes the signals a vehicle control system would see while you brake. Each signal adds context, but none replaces real-world validation.

Notes from the study

What changes the stop?

Each control has a visible effect: speed, mass, grip, brake force, lean, brake bias, reaction time, and dog distance change the result; ABS changes wheel slip and stopping distance; sensor settings change the fused readout; radius changes tyre size and wheel angular speed.

01 / IMU

Motion, not just distance

An inertial measurement unit reports acceleration and rotation. In this model, longitudinal acceleration tracks deceleration while pitch, yaw and roll rates add a small motorcycle-motion signature.

02 / GPS

A reference with limits

GPS gives position, speed and fix state, useful for checking the broader movement. The simulated noise and lower sample cadence show why GPS can drift around the true path.

03 / RADIUS

Rotation becomes speed

Wheel speed sensors measure angular velocity. The relationship is v = omega × r: a larger wheel radius means more linear travel per revolution, so the same angular speed implies a higher road speed.

04 / PROFILES

Grip sets the ceiling

City, wet and track profiles change friction, speed, mass and brake demand. The model caps braking at Fmax = friction × mass × gravity, so extra brake force cannot overcome limited tyre grip.

05 / ABS

A simplified controller

Dual ABS mode estimates front and rear slip from wheel speed, then limits each brake channel independently. It is educational only and does not represent a certified motorcycle ABS system.

06 / LEAN

When the bike falls

The animation shows a restrained side-view lean while both tyres stay planted. Wheel radius changes the centre-of-mass height, so the fall limit is lean limit = atan(0.62 / (0.62 + radius − 0.31)). If the selected angle exceeds that limit, the motorcycle falls: lean angle > lean limit → fallen. A larger lean also reduces braking grip with grip = friction × cos(lean angle).

Built with C++JavaScriptHTMLCSSCloudflare WorkersGitHub Actions

The C++ service, JavaScript Worker and browser fallback use the same core braking inputs; the Worker and fallback also expose the sensor-fusion playback when an API is unavailable.

For personal study and demonstration only. Results are illustrative, not a substitute for road testing, manufacturer data, qualified engineering review, or legal / safety advice. No confidential employer information or proprietary work is used here.