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, GitHub Sync and the offline desktop app, 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, the local network gateway and the offline desktop app. 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 Raspberry Pi 4 circuit simulation you can run free in your browser on Velxio, by qwez.
import time
import RPi.GPIO as GPIO
try:
from smbus2 import SMBus
except ImportError:
from smbus import SMBus
# ---------- 引脚 ----------
RELAY_PIN = 18
DRIVE_PIN = 13
LIGHT_PIN = 17
KEYS = {
"K1": 27,
"K2": 22,
"K3": 23,
"K4": 24,
}
LCD_ADDR = 0x27
RTC_ADDR = 0x68
# 开灯、关灯时间:[小时, 分钟]
on_time = [18, 0]
off_time = [6, 0]
# 0正常显示;1~4为四个设置项
setting = 0
manual_brightness = None
manual_mode = False
lamp_on = False
dark_count = 0
dark_confirmed = False
last_light_read = 0.0
bus = None
pwm = None
GPIO.setmode(GPIO.BCM)
GPIO.setup(RELAY_PIN, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(DRIVE_PIN, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(LIGHT_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)
for pin in KEYS.values():
GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
# ---------- 按键消抖 ----------
# 电平变化后连续稳定20毫秒,才接受新状态
key_raw = {name: GPIO.HIGH for name in KEYS}
key_stable = {name: GPIO.HIGH for name in KEYS}
key_changed_at = {name: time.monotonic() for name in KEYS}
key_armed = {name: False for name in KEYS}
def read_keys():
events = []
now = time.monotonic()
for name, pin in KEYS.items():
value = GPIO.input(pin)
if value != key_raw[name]:
key_raw[name] = value
key_changed_at[name] = now
elif (
value != key_stable[name]
and now - key_changed_at[name] >= 0.02
):
key_stable[name] = value
print(
f"[KEY {now:.2f}] {name} GPIO{pin} "
f"{'LOW/pressed' if value == GPIO.LOW else 'HIGH/released'}",
flush=True
)
if value == GPIO.HIGH:
key_armed[name] = True
elif key_armed[name]:
key_armed[name] = False
events.append(name)
# A stable released input arms the next press.
if (
value == GPIO.HIGH
and key_stable[name] == GPIO.HIGH
and now - key_changed_at[name] >= 0.02
):
key_armed[name] = True
return events
# ---------- LCD ----------
def write_nibble(value):
value |= 0x08
bus.write_byte(LCD_ADDR, value)
bus.write_byte(LCD_ADDR, value | 0x04)
time.sleep(0.001)
bus.write_byte(LCD_ADDR, value)
time.sleep(0.001)
def send(value, is_data=False):
mode = 1 if is_data else 0
write_nibble((value & 0xF0) | mode)
write_nibble(((value << 4) & 0xF0) | mode)
def show_line(text, row):
send(0x80 if row == 0 else 0xC0)
for char in text[:16].ljust(16):
send(ord(char), True)
def init_lcd():
time.sleep(0.05)
for value in (0x30, 0x30, 0x30, 0x20):
write_nibble(value)
time.sleep(0.005)
for command in (0x28, 0x08, 0x01, 0x06, 0x0C):
send(command)
time.sleep(0.005)
# ---------- 时钟 ----------
def from_bcd(value):
return (value >> 4) * 10 + (value & 0x0F)
def read_clock():
data = bus.read_i2c_block_data(RTC_ADDR, 0x00, 7)
sec