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.
// 闹钟OLED菜单版:DS3231时钟+SSD1306 OLED(共用I2C总线A4/A5),按键1=D2切换菜单/数值+1,按键2=D8进入下级/移位/长按3秒退出,闹钟响时蜂鸣器D11滴滴+红灯D12常亮
#include <Wire.h> // I2C总线库
#include <RTClib.h> // DS3231实时时钟库
#include <Adafruit_GFX.h> // OLED图形基础库
#include <Adafruit_SSD1306.h> // SSD1306 OLED驱动库
// ---- 引脚定义 ----
#define BTN1 2 // 按键1接D2:待机进菜单/菜单循环选择/编辑数值+1
#define BTN2 8 // 按键2接D8:进入下级编辑/移位/长按3秒退出
#define BEEP 11 // 蜂鸣器接D11(有源蜂鸣器,高电平发声)
#define RED_LED 12 // 红色LED接D12(闹钟响时常亮)
// ---- OLED参数 ----
#define SCREEN_WIDTH 128 // OLED宽度像素
#define SCREEN_HEIGHT 64 // OLED高度像素
#define OLED_ADDR 0x3C // I2C地址,默认0x3C;黑屏时改0x3D
// 创建OLED、RTC对象(两个模块共用A4=SDA、A5=SCL,地址不同不冲突)
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
RTC_DS3231 rtc;
// ---- 时间与闹钟参数 ----
int nowH, nowM, nowS; // 当前时、分、秒
int alarmH = 7, alarmM = 0; // 闹钟时间(默认7:00)
int alarmDurMin = 1; // 菜单③:闹钟响铃持续时长(分钟)
int snoozeMin = 5; // 菜单④:赖睡间隔(分钟,短按按键2后隔多久再响)
// ---- 闹钟运行状态 ----
bool alarmOn = false; // 闹钟是否正在响
bool snoozePending = false; // 是否处于赖睡等待
unsigned long alarmStartMs = 0; // 本次响铃开始时刻(ms)
unsigned long snoozeNextMs = 0; // 赖睡结束时刻(ms)
// ---- 菜单状态机 ----
byte state = 0; // 0=待机 1=菜单选择 2=参数编辑
int curMenu = 1; // 当前选中菜单 1~4(1时间 2闹钟 3响铃时长 4赖睡时长)
int setBuf[2]; // 编辑缓存[第1个值, 第2个值]
int editPos = 0; // 编辑位:0=第1字段 1=第2字段
// ---- 按键检测变量 ----
bool btn1Was = false; // 按键1上一次电平(边沿检测)
bool btn2Was = false; // 按键2上一次电平
unsigned long btn2DownMs = 0; // 按键2按下时刻
bool btn2LongDone = false; // 按键2长按是否已触发
const unsigned long LONG_PRESS_MS = 3000; // 长按阈值3秒
const unsigned long DEBOUNCE_MS = 20; // 消抖时间20ms
unsigned long btn1LastEvent = 0; // 按键1上次触发时刻
void setup() {
Serial.begin(9600); // 开启串口调试(9600波特)
pinMode(BTN1, INPUT_PULLUP); // 按键1:内部上拉,按下为低电平
pinMode(BTN2, INPUT_PULLUP); // 按键2:内部上拉
pinMode(BEEP, OUTPUT); // 蜂鸣器输出
digitalWrite(BEEP, LOW); // 初始关闭蜂鸣器
pinMode(RED_LED, OUTPUT); // 红灯输出
digitalWrite(RED_LED, LOW); // 初始熄灭红灯
if (!display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDR)) { // OLED初始化
Serial.println("OLED init fail"); // 失败提示
while (1); // 卡住等待排查接线/地址
}
display.clearDisplay(); // 清空显存
display.setTextSize(1); // 文字大小1倍
display.setTextColor(SSD1306_WHITE); // 白色文字
if (!rtc.begin()) { // DS3231初始化
Serial.println("RTC init fail"); // 失败提示
while (1);
}
if (rtc.lostPower()) { // 时钟掉过电/首次上电
rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); // 自动同步编译时间
}
}
// 补零显示:个位数前面加0(如 7 → "07")
void print