Proving Ground · 2026-11-20

# Testing a 6-ECU Vehicle and Flight Controller in a Browser 3D Proving Ground

Testing one microcontroller on a desk misses the bugs that happen when six ECUs share a CAN bus, a fuse blows, and the car hits wet pavement. Here is how we run the entire system in a browser tab.

## Six real firmware binaries in lock-step virtual time

In a multi-ECU electric vehicle architecture, the vehicle control unit (VCU), battery management system (BMS), motor inverter, ABS controller, body controller, and gateway each execute their own compiled ELF binary. None of them runs a mocked POSIX host build.

CircuitTwin advances every microcontroller in lock-step virtual time. When the VCU transmits a torque request frame on CAN1 through an SN65HVD230 transceiver, the inverter MCU receives the exact frame on its CAN RX peripheral at the scheduled virtual timestamp.

## Connecting pins to 3D road and flight physics

Rather than feeding hardcoded sine waves into driver stubs, the browser [Proving Ground](https://circuittwin.ai/docs/proving-ground) closes the physical loop:

- **Road vehicles:** Driver key, gear, throttle, and brake tracks drive voltage inputs onto ECU ADC pins (for example `vcu.PA0`). ECU PWM outputs command traction ESC torque and per-wheel brake valves (`abs.PB0`) across dry, wet, snow, and ice road patches.
- **Fixed-wing aircraft:** Real flight-controller binaries (such as STM32H7 Cortex-M7 builds) drive servo and propeller ESC pins while flight dynamics update mounted IMU, magnetometer, barometer, and airspeed sensor twins with seeded wind gusts.
- **Power rails and harnesses:** Batteries, switches, relays, and fuses feed board supply rails. Open a switch or blow a fuse and the downstream MCU browns out immediately.

## Live X-ray fault injection

Toggle **X-ray** mode while the car is moving to see internal boards, current-lit power lines, and pulsing CAN traffic inside the chassis. Inject a CAN bus short to ground, an open wire, a high-resistance contact, or a babbling node at an exact millisecond:

scene excerpt: timed CAN harness fault

```
"harness": {
  "file": "powertrain.harness.json",
  "events": [
    { "atMs": 400, "fault": { "target": "CAN_H", "kind": "short_gnd" } },
    { "atMs": 700, "clear": "CAN_H" }
  ]
}
```

Watch the fault path flash red in the 3D viewport while the live Bus Monitor logs bus-off transitions and the VCU enters limp-home mode.

## Freeze the 3D run into a CI gate

Interactive debugging finds the bug. Automation makes sure it stays fixed. Click **Save as test** in the session inspector to capture every timed pedal movement, fault event, and expected pass marker into a deterministic test artifact. Re-run it headlessly from the CLI or GitHub Actions with `ct scene rerun <ID>` and export JUnit XML reports.

[Virtual Proving Ground overview](https://circuittwin.ai/virtual-proving-ground) [Proving Ground guide](https://circuittwin.ai/docs/proving-ground) [CircuitTwin vs PX4 SITL](https://circuittwin.ai/compare/px4-sitl) [Embedded firmware CI](https://circuittwin.ai/embedded-firmware-ci)

> ## Build a multi-ECU scene in your browser
>
> Sign in free, drop your boards or KiCad PCBs into a 3D world, inject live harness faults, and save repeatable CI tests.
>
> [Start now](https://app.circuittwin.ai/try) [Read Proving Ground docs](https://circuittwin.ai/docs/proving-ground) [Connect a coding agent](https://circuittwin.ai/docs/agents)
