BetterSPICE has reached version 1.0.0. It is a circuit editor and simulator that runs microcontroller code against the analog circuit around it in the same session. The project site's banner says the release is out with its source open. The simulator is free and runs on Windows, macOS and Linux, and there is also a browser version. The GitHub repository, published under the account arwidcool, describes the project as a "live circuit simulator" and hosts both the source and the release builds.

Plenty of free simulators exist. BetterSPICE stands out for two things: it simulates firmware-facing peripherals alongside SPICE-level analog behaviour, and it publishes a large validation claim against ngspice. Both are covered below, along with the limits of each.

What the simulator does

According to CNX Software's write-up, BetterSPICE uses ngspice 47 for its SPICE analyses. The project site says pressing F5 runs a transient, AC or DC analysis on the schematic.

The headline feature is MCU support. CNX reports that the firmware runs inside the circuit against the real pin voltages for GPIO, ADC, DAC, PWM, timers, UART, I2C, SPI and CAN Bus. The developer, Arwid Vasilev, told CNX the simulator is fast enough to keep a 578-part board running live. In practice, MCU code can drive a pin, an ADC can read a node voltage produced by the analog solver, and a PWM output can feed a filter or driver stage in the same session.

There is an important limit. CNX notes that the code is written in a small Arduino-style language, not compiled firmware, and the project site says the live view and Simulate do not run compiled microcontroller firmware. Anyone who needs cycle-accurate execution of a specific compiled firmware image should look elsewhere.

The validation claims

Spec accuracy is the main question for a new simulator, and BetterSPICE leads with numbers. The project site reports a pass count of 5,767 out of 5,767 signals across 455 test circuits, and it separately lists 4,647 of 4,647 signals checked against ngspice. The two site figures are consistent: the site also lists 1,120 signals checked against a closed form or a datasheet window, and 4,647 plus 1,120 is 5,767. The developer gave CNX a different figure: all 3,797 signals checked match ngspice, with operating points agreeing "to better than 1 part in 10^11" on 95 % of values. Neither source explains why the CNX figure is lower than the site's.

The ngspice comparisons measure agreement with ngspice, not with bench measurements. That is a reasonable regression target for a tool that uses ngspice 47, but it shows the tool matches its reference engine, not that its models match real silicon.

Desktop versus browser

The desktop and browser builds differ, so the choice matters:

  • Model library: the project site lists 160,807 vendor models from more than 70 manufacturers in the desktop app. CNX reports that the browser version has about 600 open-licensed models.
  • Desktop-only features (per CNX): the full vendor library with ngspice, saving in place to your own folders, the full HTML report, and AI agents with the MCP server. CNX lists Monte Carlo tolerance analysis and the MCU debugger among the features common to both versions.
  • Performance: CNX says the desktop build runs up to about 1.4x faster than the browser on large boards. The project site gives the same ratio for a 578-part board on the native engine versus WebAssembly.
  • Extras: the project site lists 1,000 example circuits. CNX counts 17 built-in engineering calculators.

The MCP server lets AI agents create and modify circuits, run simulations and inspect results, according to CNX, which suits automated design checks. CNX lists it as desktop-only, so browser users cannot use it.

KiCad import: a real-world test

CNX tested more than a demo circuit. It imported the KiCad schematics for the Olimex ESP32-P4-PC board into the browser version in Firefox. The import worked but failed to find several components, replacing them with black boxes. CNX counted 299 of 342 components resolved, and said the circuit still looked OK.

That is about 87 % of components (299 divided by 342) on a dense, real board, which is a useful baseline. It also shows what to expect when importing an existing project: the schematic arrives, but part of it will not simulate until models are supplied. CNX suggests the desktop version might do better because it comes with a much larger library, but it tested only the browser build, so that remains unverified.

How it was built

The GitHub repository showed 3,389 commits, 77 stars and 9 forks when it was read for this article, along with a license file and a security policy file. This article does not quote the license terms, so check the repository's license file before reusing the code in a commercial product.

CNX describes the source code on GitHub as Claude-assisted. The sources do not say how much of the code that covers or how it was reviewed. For a tool whose value depends on numerical correctness, the published comparison against ngspice is the evidence to judge, more than how the code was written. The test-suite figures are the developer's own and had not been independently reproduced in the sources available.

What It Means for Makers

BetterSPICE targets the gap between "the schematic looks right" and "the firmware works on the board." It is aimed at hobbyists, embedded engineers and educators who want to see MCU code interact with real node voltages before ordering a PCB. Examples include an ADC reading a sensor divider, PWM driving an RC filter, or bus traffic on UART, I2C, SPI or CAN. Educators may find the browser build useful because it needs no installation. Anyone who wants the full vendor library, ngspice for vendor models and the MCP server should plan on the desktop app.

It does not replace bench testing. Its validation is against ngspice, its MCU code is an Arduino-style language rather than your compiled firmware, and imported schematics may contain unmodelled parts, as CNX's ESP32-P4-PC test showed. As a free, cross-platform simulator built around ngspice 47 with peripheral simulation included, it covers ground that free tools rarely combine.

Price and availability: BetterSPICE 1.0.0 is released and free, with source code and builds for Windows, macOS and Linux available from GitHub. The browser version is available through the project site. The sources list no paid tier.

Sources