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.
/* 双舵机控制(引脚9 + 引脚11)- 纯寄存器版本 */
/* 舵机1 信号线 -> 引脚9 (PB1 / OC1A, 定时器1, 16位, 标准 20ms/50Hz) */
/* 舵机2 信号线 -> 引脚11 (PB3 / OC2A, 定时器2, 8位, 16.384ms/~61Hz) */
/* 注意:引脚11 是 8 位定时器2 的 OC2A,硬件周期最大 16.384ms(≈61Hz),
达不到标准 50Hz。多数舵机(SG90等)按脉宽定位,61Hz 下仍可正常转动;
若舵机抖动/异响,说明该舵机对频率敏感,需改用引脚10(OC1B)或软件PWM。 */
#include <avr/io.h>
#include <stdint.h>
/* ============ 角度 -> OCR 换算 ============ */
/* 舵机1(定时器1):0°=1000(0.5ms) 180°=5000(2.5ms),每计数0.5us,精度高 */
#define S1_ANGLE_TO_OCR(a) (1000 + (uint16_t)((a) * 4000UL / 180UL))
/* 舵机2(定时器2):每计数64us,脉宽范围取 8~39 计数
0°->OCR2A=8 (0.51ms),180°->OCR2A=39 (2.50ms)
约31档覆盖0~180°,每档≈6°,角度精度±3°(比定时器1粗,属8位固有) */
#define S2_ANGLE_TO_OCR(a) (8 + (uint8_t)((a) * 31UL / 180UL))
/* ============ 定时器0:毫秒延时(CTC 模式) ============ */
void delay_ms(uint16_t ms)
{
TCCR0A = (1 << WGM01); /* 模式2 CTC:计数到 OCR0A 自动清零 */
TCCR0B = (1 << CS01) | (1 << CS00); /* 预分频64 -> 16MHz/64=250kHz -> 4us/计数 */
OCR0A = 249; /* (249+1)*4us = 1ms 匹配一次 */
TCNT0 = 0; /* 计数器清零 */
for (uint16_t i = 0; i < ms; i++)
{
while (!(TIFR0 & (1 << OCF0A))); /* 轮询等 OCF0A 置位(1ms 到) */
TIFR0 |= (1 << OCF0A); /* 写1清标志 */
}
TCCR0B = 0; /* 停定时器0 */
}
/* ============ 双舵机初始化 ============ */
void servo_init(void)
{
/* ① 方向:PB1(引脚9)、PB3(引脚11) 设为输出 */
DDRB |= (1 << DDB1) | (1 << DDB3);
/* ② 舵机1:定时器1 Fast PWM 模式14(TOP=ICR1),非反相
TCCR1A: COM1A1=1(OC1A非反相) WGM11=1;波形位 WGM13:10=1110=模式14 */
TCCR1A = (1 << COM1A1) | (1 << WGM11);
TCCR1B = (1 << WGM13) | (1 << WGM12) | (1 << CS11); /* WGM13/12=1 + 预分频8 */
ICR1 = 39999; /* 周期=(39999+1)*0.5us=20ms -> 50Hz */
OCR1A = 1000; /* 舵机1 初始 0° */
/* ③ 舵机2:定时器2 Fast PWM 模式3(TOP=0xFF=255),非反相
TCCR2A: COM2A1=1(OC2A非反相) WGM21=1 WGM20=1(模式位低2位)
TCCR2B: CS22:20=111 -> 预分频1024;WGM22=0 与低2位组成模式3 */
TCCR2A = (1 << COM2A1) | (1 << WGM21) | (1 << WGM20);
TCCR2B = (1 << CS22) | (1 << CS21) | (1 << CS20);
/* 定时器2时钟 = 16MHz/1024 = 15.625kHz -> 每计数64us
周期 = 256 * 64us = 16.384ms(≈61Hz,见文件头说明) */
OCR2A = 8; /* 舵机2 初始 0°(0.51ms) */
TCNT1 = 0; /* 两计数器清零 */
TCNT2 = 0;
}
/* ============ 角度设置:只改比较值 ============ */
void servo1(uint8_t angle) { if (angle > 180) angle = 180; OCR1A = S1_ANGLE_TO_OCR(angle); }
void servo2(uint8_t angle) { if (angle > 180) angle = 180; OCR2A = S2_ANGLE_TO_OCR(angle); }
void setup()
{
servo_init();
}
void loop()
{
/* 两舵机反向同步摆动 */
for (uint8_t i = 0; i <= 180; i++)
{
servo1(i); /* 舵机1 角度递增 */
servo2(180 - i); /* 舵机2 角度递减 */
delay_ms(15); /* 每步15ms,全程约2.7s */
}
/* 反向回摆 */
for (uint8_t i = 180; i >= 1; i--)
{
servo1(i); /* 舵机1 角度递减 */
servo2(180 - i); /* 舵机2 角度递增 */
delay_ms(15);
}
}