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 and GitHub Sync, 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 and the local network gateway. 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 Arduino Uno circuit simulation you can run free in your browser on Velxio, by tcflm.
// Blink LED Example
// Toggles the built-in LED on pin 13
// ============================================================
// 交通灯 - ATmega328P 寄存器级版本
// 芯片: ATmega328P (Arduino Uno)
// 红灯 -> PB2 (D10)
// 绿灯 -> PB1 (D9)
// 黄灯 -> PB0 (D8)
// ============================================================
// ------------------------------------------------------------
// 引脚位掩码定义(用位操作,不用数字引脚号)
// 1 << n 的意思:把 1 往左移 n 位,得到只有第 n 位是 1 的字节
// 例如 1 << 2 = 0b00000100,即第 2 位是 1
// ------------------------------------------------------------
#define RED_BIT (1 << PB2) // 红灯位掩码 = 0b00000100 = 0x04
#define GREEN_BIT (1 << PB1) // 绿灯位掩码 = 0b00000010 = 0x02
#define YELLOW_BIT (1 << PB0) // 黄灯位掩码 = 0b00000001 = 0x01
#define RED_BITD 0x20//(1 << PD5) // 红灯位掩码 = 0b00100000 = 0x20
#define GREEN_BITD (1 << PD6) // 绿灯位掩码 = 0b01000000 = 0x40
#define YELLOW_BITD (1 << PD7) // 黄灯位掩码 = 0b10000000 = 0x80
#define BUTTIN (1<<PB3)//按键0b00001000=0x08
// 三个灯合起来的掩码,一次性设置方向用
#define ALL_LIGHTSD (RED_BITD | GREEN_BITD | YELLOW_BITD) //0XE0
#define ALL_LIGHTS (RED_BIT | GREEN_BIT | YELLOW_BIT) // = 0b00000111 = 0x07
// 显示时长(秒)
int dispR = 5;
int dispG = 5;
int dispY = 5;
// ============================================================
// Red() - 亮红灯,灭绿灯和黄灯
// 输入: time = 亮灯秒数
// 返回: 实际延时毫秒数
// ============================================================
int Red(int time)
{
// ----------------------------------------------------------
// 操作 PORTB 寄存器,只改我们关心的 3 位,其他位不动
//
// 思路: 先把 3 个灯的位全部清 0(灭),再把红灯位置 1(亮)
//
// 第一步: 清 0 - 用 AND 操作
// PORTB &= ~ALL_LIGHTS
// ~ALL_LIGHTS = ~0b00000111 = 0b11111000
// 原来的 PORTB: xxxxxxxx (x 表示其他引脚原有状态,不能动)
// AND 0b11111000
// 结果: xxxxx000 ← 只有低 3 位变 0,高位不变
//
// 第二步: 置 1 - 用 OR 操作
// PORTB |= RED_BIT
// RED_BIT = 0b00000100
// 上一步结果: xxxxx000
// OR 0b00000100
// 结果: xxxxx100 ← 第 2 位(红灯)变 1,其他位不变
// ----------------------------------------------------------
PORTB &= ~ALL_LIGHTS; // 三个灯全灭(低3位清0)
PORTB |= RED_BIT; // 红灯亮(第2位置1)
// 延时 time 秒
PORTD &= ~ALL_LIGHTSD;//PORTD=0b00000000 =0b00000000 &(~0b11100000)=0b00000000,//111位关闭
PORTD |= RED_BITD;//0b00000000=0b00000000 | 0b00100000= 0b00100000开
delay(time * 1000);
return (time * 1000);
}
// ============================================================
// Green() - 亮绿灯,灭红灯和黄灯
// ============================================================
int Green(int time)
{
// 同样的套路:先全灭,再亮绿灯
PORTB &= ~ALL_LIGHTS; // 三个灯全灭(低3位清0)
PORTB |= GREEN_BIT; // 绿灯亮(第1位置1)
//
// 逐位推演:
// 假设原 PORTB = 0bxxxxx101 (之前亮着红灯+黄灯)
// AND ~ALL_LIGHTS (= 0b11111000) → 0bxxxxx000 (全灭)
// OR GREEN_BIT (= 0b00000010) → 0bxxxxx010 (只有绿灯亮)
//
PORTD &=~ALL_LIGHTSD; //0b00100000 &= ~0b10000000 = 0b00100000 &= 0b11011111 = 0b00100000 & 0b11011111= 0b00000000 //1位关0,关红灯,开绿灯
PORTD |= GREEN_BITD; //GREEN_BIT= 0b01000000 = 0x40,POTD=0b00000000,
del