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.
//常规代码====================
/*
#include <Servo.h>
int servoAngle =90;//舵机初始角度
Servo myServo;//创建舵机对像
const int pinLeftBtn = 8;//按钮8引脚
const int pinRightBtn = 7;//按钮7引脚
const int pinSevo = 9;//航机9引脚
unsigned long lastTime =0;//计算抖动时间,系统运行时候-lastTime大于设置的时间
const int servoAnglebut=3;//舵机每次运行角度
const unsigned long stepInterval=20;//防抖时间
void setup()
{
myServo.attach(pinSevo);//绑定舵机引起
myServo.write(servoAngle);//舵机初始角度
pinMode(pinLeftBtn, INPUT_PULLUP);//绑定按钮引脚,内部上拉电阻
pinMode(pinRightBtn, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
unsigned long now = millis();//当前系统运行时间
if(now - lastTime >stepInterval)
{
bool leftPress = (digitalRead(pinLeftBtn) == LOW);//按下按钮
bool rightPress = (digitalRead(pinRightBtn) == LOW);
if(leftPress)
{
Serial.println(servoAngle);
servoAngle -=servoAnglebut;
if(servoAngle <= 0)servoAngle=0;
myServo.write(servoAngle);
lastTime = now;
}
if (rightPress)
{
servoAngle +=servoAnglebut;
if(servoAngle >= 180)servoAngle= 180;
myServo.write(servoAngle);
lastTime = now;
}
}
}
*/
/*
// 舵机按键控制 - 寄存器底层版本【修复BUG】
// UNO D9 = OC1B (PB1,Timer1通道B),50Hz舵机PWM
// 按键:D8左转(PB0),D7右转(PD7),内部上拉
// 按住不放,每4秒±10°;松开停止,不会自动转
int servoAngle = 90;
const int pinServo = 9;
const int pinLeftBtn = 8;
const int pinRightBtn = 7;
unsigned long lastTime = 0;
const unsigned long stepInterval = 5; // 4秒步进间隔
// 角度转OCR1B值:0°=500us,180°=2500us,20ms周期,预分频8,1计数=0.5us
uint16_t angleToOCRB(int angle){
return map(angle, 0, 180, 1000, 5000);
}
void setup() {
// ========== 1. D9(PB1)设置为输出,用于Timer1 OC1B PWM输出 ==========
DDRB |= (1 << PB1); // DDRB = 0b00000010,PB1置1 → 输出;其余位保持不变
// ========== 2. Timer1寄存器配置,50Hz快速PWM 模式14 ==========
TCCR1A = 0; // TCCR1A = 0b00000000,清空Timer1控制寄存器A
TCCR1B = 0; // TCCR1B = 0b00000000,清空Timer1控制寄存器B
TCNT1 = 0; // TCNT1 = 0x0000,定时器计数器清零
ICR1 = 39999; // TOP最大值,16M晶振,预分频8 → 定时器时钟2MHz
// 20ms周期 = 20000us,20000us / 0.5us = 40000,所以ICR1=39999
TCCR1A |= (1 << COM1A1); // COM1B1=1,TCCR1A = 0b00100000;OC1B非反转PWM,匹配清零,TOP置高
TCCR1A |= (1 << WGM11); // WGM11=1,TCCR1A = 0b00100010;快速PWM模式14需要(WGM11=1)
TCCR1B |= (1 << WGM13); // WGM13=1,TCCR1B = 0b00010000;选择TOP=ICR1(模式14 WGM13=1,WGM12=0)
TCCR1B |= (1 << WGM12);
TCCR1B |= (1 << CS11); // CS11=1,TCCR1B = 0b00010010;预分频8;CS10=0 CS12=0
OCR1A = angleToOCRB(servoAngle); // 初始90度PWM值
// ========== 3. 配置按键引脚 D8(PB0)、D7(PD7) 内部上拉输入 ==========
// --- D7(PD7) 右转按键 ---
DDRD &= ~(1 << PD7); // DDRD = 0b0xxxxxxx & 0b01111111,PD7位清0 → 输入模式
PORTD |= (1 << PD7); // PORTD |= 0b10000000,PD7置1 → 开启内部上拉,按下接地=低电平
// --- D8(PB0) 左转按键【重点修复!D8是PB0,不是PD8!】 ---
DDRB &= ~(1 << PB0); // DDRB &= 0b11111110,PB0位清0 → 输入模式
PORTB |= (1 << PB0); // PORTB |= 0b00000001,PB0置1 → 开启内部上拉,按下接地=低电平
Serial.begin(9600);
}
void loop() {
unsigned long now = millis();
if(now - lastTime >= stepInterval){
// 读按键寄存器:PINB读取PORTB,PIND读取PORTD
bool leftPr