Compare
Wokwi Alternative for STM32 & Custom PCBs: CircuitTwin vs Wokwi
Wokwi is a browser and VS Code simulator built for ESP32, Arduino, and three entry-level STM32 boards. CircuitTwin covers full STM32 families, imports KiCad and Altium PCBs, and runs deterministic fault-matrix CI.
Wokwi statements cite public docs checked .
How CircuitTwin runs your firmware
CircuitTwin runs your firmware on its own engine (ADR-0016), not on Renode, QEMU or another external emulator. Twins are compiled from vendor datasheets and CMSIS-SVD files alongside reference manuals, CMSIS packs and errata (Concepts).
A run that touches registers a twin does not model ends inconclusive, not passed, and its report names what the firmware relied on. Evidence labels stay provisional until an independent reference confirms them; see Runs and results.
What Wokwi is
Wokwi simulates ESP32, Arduino AVR, RP2040/RP2350 plus entry-level STM32 boards in the browser or VS Code with zero install (Wokwi home, Wokwi docs, 2026-11-20). Wire parts in diagram.json or extend missing chips in WebAssembly (Wokwi Chips API, 2026-11-20).
Where each fits
Pick Wokwi for zero-signup maker prototyping or native ESP32 Wi-Fi; pick CircuitTwin for custom PCBs, datasheet-generated industrial MCUs and fault-matrix CI.
- Wokwi fits zero-signup browser playgrounds, visual displays/LEDs, native ESP32 Wi-Fi/MQTT or classroom prototyping (Wokwi home, Wokwi ESP32 guide, 2026-11-20).
- CircuitTwin fits custom PCBs (KiCad, Altium, Eagle, ODB++), datasheet-generated twins for STM32F4/F7/H7, NXP S32K/RT, Cortex-R, TriCore or RH850, stacks like PX4/Zephyr/CANopen, plus fault matrices with
inconclusivediagnostics (Accuracy report, Testing).
Comparison
| Area | CircuitTwin | Wokwi |
|---|---|---|
| Hardware models | Generated from vendor datasheets and CMSIS-SVD files alongside reference manuals, carrying explicit evidence labels (Import, Twin generation). | Built-in maker boards and parts; custom chips hand-written in C, Rust or AssemblyScript and compiled to .chip.wasm (Wokwi docs, Wokwi Chips API, 2026-11-20). |
| Board & PCB workflow | Direct PCB import from KiCad (.kicad_pcb), Altium, Eagle, EasyEDA, ODB++ or IPC-2581 (Bring your board). | Browser breadboard wiring or diagram.json (Wokwi docs, 2026-11-20). |
| MCU coverage | 15 processor families: STM32 (F0/F1/F4/F7/H7/G0/L4/U5), NXP (Kinetis, LPC, i.MX RT, S32K), Nordic nRF52, RP2040/RP2350, ESP32/S3/C3, AVR, Cortex-R5/R52, TriCore, RH850, RX, RL78 (Board dashboard). | Arduino AVR (Uno, Nano, Mega, ATtiny85), ESP32/S2/S3/C3/C6/H2/P4, RP2040/RP2350 plus selected STM32 (C031, L031, F103C8) (Wokwi home, Wokwi ESP32 guide, 2026-11-20). |
| Connectivity & Wi-Fi | Multi-board UART, SPI, I2C, CAN/CAN FD, RS-485, Ethernet, real nRF52 RADIO + AirModel RF physics, LoRa command twins plus ESP-AT UART modules. No native ESP32 Wi-Fi stack today (Accuracy report). | Native ESP32 Wi-Fi simulation with virtual AP and IoT gateway for real HTTP/MQTT/TCP traffic (Wokwi ESP32 guide, 2026-11-20). |
| Unmodelled hardware | Default --unmodelled behavioural (or strict) exits 4 (inconclusive) and logs peripheral, register offset plus PC (Concepts). | Unsupported registers are generally ignored or stubbed so sketches keep running (Wokwi docs, 2026-11-20). |
| Fault matrices, agents & CI | ct test matrix run sweeps bus disconnects, CAN faults, sensor faults or brownouts with JUnit/SARIF, lcov/Cobertura, --recheck and compliance packs; zero-download hosted OAuth MCP (https://app.circuittwin.ai/mcp) for Claude, ChatGPT/Codex, Gemini and Cursor, local ct mcp serve, @circuittwin-ai/sdk TypeScript SDK, VS Code extension, GitHub Action and GitLab CI/CD component (Testing, Agents & MCP, Compliance). | wokwi-cli runs GitHub/GitLab CI with --expect-text, screenshots or ESP32 heap-leak checks (Wokwi CI, 2026-11-20). |
| Debugging & offline | GDB server with reverse-step / reverse-continue, RTOS thread inspection, SWO/ITM & RTT, plus ct run --record DIR producing deterministic SHA-256-manifested trace.jsonl, mem-trace.jsonl, isr.jsonl, races.jsonl and signals.vcd; native Windows (install.ps1), macOS & Linux CLI and 30-day offline/air-gapped licences (--network none) on Team/Enterprise (CLI, IDE). | Zero-signup browser logic analyzer plus serial monitor; VS Code GDB and offline plugin on Pro (Wokwi docs, Wokwi pricing, 2026-11-20). |
| Pricing & sign-up | Free (5 twins/wk, 200 server matrix cells/wk; local runs $0), Starter $20/mo, Pro $60/mo, Team $400/mo (5 seats), Enterprise. 42 countries via Stripe Managed Payments (Pricing). | Free public browser projects (no account); Hobby+, Pro (CI minutes, commercial use) plus classroom seat plans (Wokwi pricing, 2026-11-20). |
Where Wokwi is stronger
- Zero-signup browser playground runs an Arduino or ESP-IDF sketch in seconds with no account or CLI (Wokwi home, 2026-11-20).
- Visual maker widgets cover OLED/TFT screens, NeoPixels, 7-segment displays, keypads, servos plus a browser logic analyzer (Wokwi docs, 2026-11-20).
- Native ESP32 Wi-Fi provides a full virtual Wi-Fi AP and IoT gateway for HTTP/MQTT (Wokwi ESP32 guide, 2026-11-20). CircuitTwin models
nRF52RADIO+AirModelRF physics, LoRa command twins and ESP-AT UART modules, not native ESP32 Wi-Fi today. - Maker and classroom pricing includes a free public tier plus low-cost Hobby+ and classroom seats (Wokwi pricing, 2026-11-20).
Where CircuitTwin is stronger
ct twin generatecompiles vendor PDFs and CMSIS-SVD packs into twins instead of hand-coding WASM stubs (Twin generation).- Direct PCB import reads KiCad, Altium, Eagle, EasyEDA, ODB++ or IPC-2581 layouts to wire a board twin automatically (Bring your board).
- Fault matrices sweep bus/CAN/sensor/brownout failures and unit variation with
--recheck, reverse-step/continue GDB, RTOS thread inspection,ct run --record DIR(SHA-256-manifested JSONL/VCD traces), signed 30-day offline/air-gapped licences (--network none) plus compliance packages (Testing, CLI, Compliance). - Zero-download hosted OAuth Streamable HTTP MCP (
https://app.circuittwin.ai/mcp) for Claude, ChatGPT/Codex, Gemini and Cursor, localct mcp serve,@circuittwin-ai/sdkTypeScript SDK, VS Code extension and interactive 3D Proving Ground worlds (Agents & MCP). - Unmodelled registers exit 4 (
inconclusive) naming peripheral, offset plus PC instead of silently passing (Accuracy report). - Runs real industrial and flight stacks: PX4 v1.16.2 on Pixhawk 6C (STM32H743 + 6 peripherals), CANopenNode two-node CAN, Zephyr on 5 boards plus FreeRTOS demos (Board dashboard).
Frequently asked questions
Why use CircuitTwin as a Wokwi alternative for STM32?
Wokwi supports three entry-level STM32 parts (C031, L031, F103C8). CircuitTwin covers STM32F1, F4, F7, H7, G4, L4, and U5 families, generates missing parts directly from ST datasheets, and tests real STM32CubeIDE, Zephyr, and PlatformIO binaries.
Can I import KiCad or Altium PCBs instead of writing diagram.json?
Yes. CircuitTwin imports KiCad, Altium, Eagle, EasyEDA, ODB++, and IPC-2581 layouts directly and wires the MCU and external ICs across UART, SPI, I2C, CAN, CAN FD, and Ethernet automatically.
When is Wokwi still the better choice?
Wokwi is stronger for zero-signup classroom Arduino playgrounds, visual OLED/NeoPixel maker widgets, and native browser ESP32 Wi-Fi virtual AP gateways.
Sources
Every source below was read on 2026-11-20.
About Wokwi
- wokwi.com, the browser simulator: Instant browser-based microcontroller playground for ESP32, STM32, RP2040/RP2350 and Arduino.
- Wokwi documentation: Supported boards and parts, diagram.json, wokwi.toml, VS Code extension and GDB debugging.
- Wokwi ESP32 simulation guide: ESP32, ESP32-S2/S3 and ESP32-C3/C6/H2/P4 simulation, Wi-Fi networking and IoT gateway.
- Wokwi Custom Chips API: Writing custom peripheral chips in C, Rust or AssemblyScript compiled to WebAssembly (.chip.wasm).
- Wokwi CI and wokwi-cli: Headless CLI runner for GitHub Actions and GitLab CI, expect-text checks and ESP32 heap monitoring.
- Wokwi pricing plans: Free public projects, Hobby+, Pro with CI minutes and offline VS Code support, and classroom plans.
About CircuitTwin
- ADR-0016, the architecture decision record for the deterministic functional-twin core (accepted 2026-08-20, amended 2026-10-21): the custom engine is the only active execution path. It is an internal record of the CircuitTwin repository.
- Core concepts: Twins built from vendor documents; runs, verdicts and evidence labels; determinism; scenes and links.
- Bring your board: Twins generated from datasheets and companion documents; board import from KiCad, Eagle, EasyEDA, Altium, ODB++ and IPC-2581.
- Inputs and faults: Sensor faults, parts off the bus, wiring faults and input variation.
- Proving Ground: Interactive 3D world for multi-board systems, physics-fed sensors, actuators, power networks and wiring harnesses.
- Test your firmware: Test suites and test matrices, locally and on the hosted service.
- Coding agents and MCP: Zero-download hosted OAuth Streamable HTTP MCP (https://app.circuittwin.ai/mcp), local ct mcp serve and ct --json with exit codes.
- Test in CI: The GitHub Action and the GitLab CI/CD component.
- ct CLI reference: CLI commands, ct run --record DIR (JSONL traces, VCD waveforms, SHA-256 manifest), reverse-GDB, local MCP and 30-day offline licences.
- Debug in your IDE: The GDB server for STM32CubeIDE, VS Code and plain GDB (reverse-step/continue, RTOS threads, SWO/ITM and RTT).
- Install: Native ct CLI installers on Windows (install.ps1), macOS and Linux (install.sh), plus access-token sign-in.
- Pricing: The plans and their weekly allowances.
- Board dashboard: Each board and suite with its level, status and evidence file.
- Accuracy report: What the twins are checked against, the results and the known gaps, including timing and the reference emulators.
More
Other comparisons:
- CircuitTwin vs Renode: An open-source emulation framework with a large catalog of boards, compared from its public pages and on the agent benchmark.
- CircuitTwin vs QEMU: A general machine emulator, compared on a benchmark of seeded firmware bugs that ran on both.
- CircuitTwin vs Simantic: A firmware simulator with published firmware demos and tracing options, compared from its public pages.
- CircuitTwin vs LabWired: An MIT open-core YAML-configured embedded simulator compared on PCB auto-wiring, datasheet twin generation, 17-ISA coverage, 3D Proving Ground, and hosted MCP.
- CircuitTwin vs HardLabs: Design-driven PCB firmware-in-the-loop simulation compared on self-serve datasheet twins, 3D Proving Ground physics, hosted MCP, and published evidence.
- CircuitTwin vs Velxio: A free AGPLv3 browser simulator with WebAssembly ngspice compared on custom PCB import, headless CI matrices, reverse-GDB, and explicit unmodelled-register checks.
- CircuitTwin vs HIL Benches: Physical Hardware-in-the-Loop racks vs deterministic digital twins for PR-level firmware CI, fault matrices, electrical sign-off and cost.
- CircuitTwin vs Proteus VSM: Windows mixed-mode SPICE/MCU schematic simulation compared with Linux/macOS headless CI, KiCad PCB import and datasheet twin generation.
- CircuitTwin vs Arm Virtual Hardware: Official Arm Corstone/Ethos-U FVPs compared with multi-vendor MCUs, custom PCB netlists, sensor twins and bus fault injection.
- CircuitTwin vs PX4 SITL: Host POSIX Gazebo simulation compared with executing the real px4_fmu-v6c Cortex-M7 ELF on STM32H743 and SPI/I2C sensor twins.
- CircuitTwin vs Zephyr native_sim: Zephyr POSIX host builds (ASan/UBSan/Twister) compared with running the real cross-compiled MCU zephyr.elf on board twins.
- CircuitTwin vs simavr: Open-source GPL-3.0 8-bit AVR simulation and GTKWave VCD traces compared with datasheet sensor twins, PCB import and 32-bit MCUs.
- CircuitTwin vs Keil uVision Simulator: Windows legacy Cortex-M IDE simulation compared with headless Linux/macOS CI and datasheet-generated vendor peripheral twins.
The records behind CircuitTwin’s numbers:
- Accuracy report: What the twins are checked against, the results and the known gaps, with the record behind each number.
- Board dashboard: Each board and suite with its level, status and evidence file.
- Agent benchmark: Seeded firmware bugs run on a twin, Renode and QEMU, with every case and the record.
- Twin generation and checks: How a twin is generated from vendor documents and checked before you rely on it.