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 ESP32-S3 circuit simulation you can run free in your browser on Velxio, by tcflm.
// ESP32-S3 超声波+双舵机+LED+震动传感器项目
// 引脚定义 和上面原理图一一对应
#define SERVO1_PIN 21 // 第一个舵机信号线,原理图绿色线GPIO1
#define SERVO2_PIN 42 // 第二个舵机信号线,原理图绿色线GPIO2
#define SERVO_FREQ 50 // 舵机固定PWM频率 50Hz,周期20ms
#define SERVO_RESOL 16 // 16位分辨率,计数值范围0~65535
// 舵机脉冲换算:0.5ms对应1638,2.5ms对应8192(50Hz 16bit)
#define SERVO_MIN_VAL 1638
#define SERVO_MAX_VAL 8192
#define TRIG_PIN 4 // HC-SR04 Trig触发脚
#define ECHO_PIN 5 // HC-SR04 Echo回波脚
#define LED_PIN 9 // 红色LED引脚,串限流电阻
#define VIBRATE_PIN 6 // 震动传感器OUT引脚
void setup() {
Serial.begin(115200); // 开启串口,波特率115200,用于调试打印
pinMode(TRIG_PIN, OUTPUT); // Trig设置为输出,发送超声波触发信号
pinMode(ECHO_PIN, INPUT); // Echo设置为输入,接收反射回波
pinMode(LED_PIN, OUTPUT); // LED引脚设为输出,控制亮灭
pinMode(VIBRATE_PIN, INPUT);// 震动传感器设为输入,读取高低电平
// ========== 新版LEDC 舵机绑定【修复原来93/94/96行报错】==========
// 删掉了旧版 ledcTimerSetup
// ledcAttach(引脚, PWM频率, 位宽); 内部自动分配定时器、通道
ledcAttach(SERVO1_PIN, SERVO_FREQ, SERVO_RESOL); // 舵机1绑定PWM
ledcAttach(SERVO2_PIN, SERVO_FREQ, SERVO_RESOL); // 舵机2绑定PWM
// 上电舵机归中位
ledcWrite(SERVO1_PIN, (SERVO_MIN_VAL + SERVO_MAX_VAL)/2);
ledcWrite(SERVO2_PIN, (SERVO_MIN_VAL + SERVO_MAX_VAL)/2);
delay(500);
}
// 超声波测距函数,返回距离cm
float getUltrasonicCM(){
digitalWrite(TRIG_PIN, LOW);
delayMicroseconds(2);
digitalWrite(TRIG_PIN, HIGH); // 输出10us高电平触发超声波
delayMicroseconds(10);
digitalWrite(TRIG_PIN, LOW);
// 读取回波高电平持续时间
unsigned long pulseTime = pulseIn(ECHO_PIN, HIGH, 30000UL);
if(pulseTime == 0) return -1.0; // 超时无回波,返回-1代表测距失败
float distance = pulseTime * 0.0343 / 2.0; // 声速换算距离,来回除以2
return distance;
}
void loop() {
float dist = getUltrasonicCM();
int vibrateState = digitalRead(VIBRATE_PIN); // 读取震动传感器状态
Serial.print("距离:");
Serial.print(dist);
Serial.print(" cm | 震动信号:");
Serial.println(vibrateState);
if(dist > 0 && dist < 30){ // 距离小于30cm触发动作
digitalWrite(LED_PIN, HIGH); // LED点亮
ledcWrite(SERVO1_PIN, SERVO_MAX_VAL); // 舵机1转到最大角度
ledcWrite(SERVO2_PIN, SERVO_MIN_VAL); // 舵机2转到最小角度
}else{
digitalWrite(LED_PIN, LOW); // LED熄灭
ledcWrite(SERVO1_PIN, SERVO_MIN_VAL);
ledcWrite(SERVO2_PIN, SERVO_MAX_VAL);
}
delay(200);
}