Arduino, running the sketch you wrote
arduino-cli compiles it, an AVR8 core executes it instruction by instruction, and the LCD shows what the ATmega328P actually put on the bus. Uno, Nano, Mega and ATtiny85, no board on your desk.

Hardware is all about iteration. Velxio lets you wire a circuit, program the board and run it in seconds, real firmware on a real solver, right in the browser.
DFRobot · M5Stack links on this page are affiliate links: a purchase through them earns Velxio a small commission at no extra cost to you.
Nothing on this page is a scripted animation: the firmware is compiled and executed, and the circuit around it is solved.
arduino-cli compiles it, an AVR8 core executes it instruction by instruction, and the LCD shows what the ATmega328P actually put on the bus. Uno, Nano, Mega and ATtiny85, no board on your desk.

arduino-cli or ESP-IDF compiles the sketch, then AVR8, RP2040, RISC-V, Xtensa or ARM executes it instruction by instruction. What the OLED draws and what the serial monitor prints is what the chip actually did.

ngspice compiled to WebAssembly runs a full nodal analysis about 60 times a second. GPIO pins drive real nets, ADC inputs read solved node voltages, and probes report RMS, DC and current wherever you drop them.

Adders, comparators, decoders, flip-flops and a 1-bit ALU slice: no microcontroller anywhere, just gates, switches and LEDs solved as a real net. The classroom half of electronics, without the breadboard.

The M5Stack Cardputer with its keyboard, Seeed's round display keeping time, Pimoroni's Badger 2350 driving e-paper, and DFRobot's UNIHIKER M10 in the catalogue alongside them. Their makers sent the hardware so the emulation could be checked against the real thing.




35 boards across 6 CPU architectures — AVR8, ARM Cortex-M, ARM Cortex-A, RISC-V, Xtensa, and Linux. Including partner boards from Pimoroni, M5Stack, Seeed Studio and DFRobot. All running locally, no cloud needed.
One institution contract gives every student in the class a full Pro account. No per-seat checkout, no card details in a classroom.
Private projects, BOM and schematic exports, GitHub Sync and the offline desktop app, for everyone enrolled.
Billed once to your institution, per semester or per year. Volume pricing on request for large cohorts.
Arduino, ESP32, RP2040, STM32, ATtiny and Raspberry Pi, with SPICE analog solved alongside the firmware. Not a sandboxed mock.
The simulator stays free forever, WiFi with internet included. Paid plans unlock the Linux and STM32 boards, custom WiFi networks, the local network gateway and the offline desktop app. Maker and Pro add the AI agent; No AI leaves it out.
Discover the simulator + light AI help.
The full workbench, zero AI. You write every line.
For makers shipping real circuits with AI help.
Private projects, GitHub Sync and BOM exports.
Questions, bugs and ideas: the Discord and the issue tracker are open, and so is every line of the simulator.
An interactive Esp32 Devkit C V4 circuit simulation you can run free in your browser on Velxio, by alireza-cs94.
#include <Arduino.h>
#include "MCS4Bus.hpp"
#include "Intel4004.hpp"
#include "Intel4001.hpp"
#include "Intel4002.hpp"
#include "Intel4003.hpp"
#include "GPIODevice.hpp"
#include "Assembler4004.hpp"
// -----------------------------------------------------------------------
// Reads two decimal numbers of ANY length from the Serial Monitor and
// adds them using the 4004's own decimal-arithmetic mechanism: for each
// digit position (least significant first), it runs
// LDM a_digit; XCH R0; LDM b_digit; ADD R0; DAA
// on the real CPU core. ADD produces a raw 4-bit sum (which can exceed
// 9), and DAA decimal-adjusts it back into a single digit, setting the
// carry flag if a decimal carry needs to ripple into the next digit -
// exactly like doing long addition by hand. Requires the DAA fix that
// makes it actually set carry on overflow (see Intel4004.cpp).
//
// HOW TO USE: rename this file to .ino (and rename whichever file
// currently has setup()/loop() to something else - only one .ino with
// setup()/loop() can be active at a time). Upload, then open Serial
// Monitor at 115200 baud with "Newline" line ending set.
// -----------------------------------------------------------------------
MCS4Bus bus;
Intel4004 cpu;
Intel4001* rom0;
Intel4002* ram0;
GPIODevice* led0;
Assembler4004 asm4;
String readDigits(const char* prompt) {
Serial.println(prompt);
while (!Serial.available()) {
delay(10);
}
String line = Serial.readStringUntil('\n');
line.trim();
// Strip anything that isn't a digit (handles stray spaces, minus signs, etc.)
String clean = "";
for (unsigned int i = 0; i < line.length(); i++) {
if (isdigit(line[i])) clean += line[i];
}
if (clean.length() == 0) clean = "0";
Serial.print(" got: ");
Serial.println(clean);
return clean;
}
void setup() {
Serial.begin(115200);
delay(1000);
static uint8_t emptyROM[256] = { 0 };
led0 = new GPIODevice(2);
rom0 = new Intel4001(emptyROM, led0);
ram0 = new Intel4002();
bus.romChips[0] = rom0;
bus.ramChips[0] = ram0;
bus.ioPorts[0] = led0;
cpu.attachBus(&bus);
Serial.println("===== Intel4004 Serial Adder (any length) =====");
Serial.println("Adds two decimal numbers of any size, one digit at a time,");
Serial.println("using the 4004's own ADD + DAA decimal-carry mechanism.");
}
void loop() {
String a = readDigits("Enter first number:");
String b = readDigits("Enter second number:");
int len = max(a.length(), b.length());
// Left-pad the shorter number with zeros so both are the same length.
while ((int)a.length() < len) a = "0" + a;
while ((int)b.length() < len) b = "0" + b;
String resultDigits = "";
cpu.reset(); // carry = 0 going into the least-significant digit
for (int i = len - 1; i >= 0; i--) {
int digitA = a[i] - '0';
int digitB = b[i] - '0';
String src =
" LDM " + String(digitA) + "\n"
" XCH R0\n"
" LDM "
+