Home / Vehicle Control Systems / Simulation Lab

VCU V0.02–V0.07.1 / development simulator

Vehicle simulation lab

A browser reconstruction of the Pico 2 electric-bike VCU simulation: electrical, vehicle physics, thermal, trip, sensor, charging and telemetry logic. No hardware is connected.

LIVE SIMULATED STATE

BATTERY MODE

Simulated elapsed time: 0 s
Speed—km/h
Pack power—kW
Simulated motor RPM—rpm

Drive command

Vehicle model settings

Battery and energy

SOC—%
Terminal voltage—V
Battery current—A
Voltage sag—V
Pack heat—W
Discharge available—A
Regen available—A

30S14P / 56 Ah / 13.4 mΩ. 900 A and 300 A are simulation ceilings only.

Dynamic thermal model

Battery—°C
Kelly—°C
Motor—°C
Available thermal factor—%

Controller derates 60–80°C; motor 150–180°C; battery discharge 50–60°C. Simulation-only protective behavior.

Charging & contactor

Virtual contactor—
Watchdog remaining—s
Charge energy—Wh

20 A simulated charging, drive interlock, SOC cutoff, thermal cutoff, fault opening and 60-second watchdog. No GPIO or physical contactor output.

Vehicle physics

Acceleration—m/s²
Traction—N
Regen force—N
Mechanical brake—N
Aerodynamic drag—N
Gradient force—N

Trip computer

Session distance—km
Instant consumption—Wh/km
Rolling 5 km—Wh/km
Estimated range—km
Average speed—km/h
Net trip energy—Wh
Discharged—Wh
Regenerated—Wh

Rolling samples at approximately 25 m, capped at 202; 5% SOC reserve for estimated range.

30 series-group voltages

Minimum cell group—V
Maximum cell group—V
Group imbalance—mV

Sensor telemetry

Firmware detected five DS18B20 probes on the bench; the browser shows synthetic readings only. No connection to your sensors.

Serial commands and diagnostics

Telemetry link—
Logged samples—

Try CURRENT 300, SOC 95, CHARGE 100, KELLY 75, MOTOR 165, THERMAL AUTO, TEMPRESCAN, TRIPRESET or HELP. The commands are local emulations, not a live serial connection.

Telemetry history

Last 120 logged seconds · red power / blue speed / green SOC. Normalized scales; zero at the midline.

Browser implementation derived from the saved VCU007.1 sketch and VehicleSim, ThermalSim, TripComputer and TemperatureSensors modules. VCU calculations, safety states and hardware IO are not certified or validated here. The 5.57:1 ratio belongs to the original firmware simulation model, not the QS direct-drive hub hardware.

Development stages

V0.01 · bring-up

PING/PONG, START/STOP, telemetry and heartbeat concepts.

V0.02 · pack

OCV curve, current limits, series-group offsets, voltage sag, SOC and energy.

V0.03 · driving

Drive modes, gradient, aero, acceleration, regenerative and mechanical braking.

V0.04 · thermal

Automatic thermal integration, manual fault-injection, controller and motor derating.

V0.05 · trip

Distance, energy, consumption, range, rolling history.

V0.06 · sensors / charging

Five probe inputs and virtual charging contactor with safety interlocks.

V0.07.1 · telemetry

Serial-style commands, fault events, sampled logging and CSV export.

Return to VCU overview