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.
Ultrasonic Distance Meter with LCD2004 display on Arduino Uno
An interactive Arduino Uno circuit simulation you can run free in your browser on Velxio, by leikz.
/*
* 完全无库版:Grove 超声波 + LCD2004(I2C)
* 直接操作 TWI 寄存器,不 include 任何库
*/
#define SIG_PIN 2
#define LCD_ADDR 0x27
/* ---------- 裸 I2C / TWI ---------- */
void i2cInit() {
TWBR = 72; // 100kHz @ 16MHz
TWSR = 0x00; // 预分频 = 1
}
void i2cStart() {
TWCR = (1<<TWINT) | (1<<TWSTA) | (1<<TWEN);
while (!(TWCR & (1<<TWINT)));
}
void i2cStop() {
TWCR = (1<<TWINT) | (1<<TWSTO) | (1<<TWEN);
}
void i2cWrite(byte d) {
TWDR = d;
TWCR = (1<<TWINT) | (1<<TWEN);
while (!(TWCR & (1<<TWINT)));
}
void i2cSend(byte d) {
i2cStart();
i2cWrite(LCD_ADDR << 1);
i2cWrite(d);
i2cStop();
}
/* ---------- LCD 2004 ---------- */
void lcdByte(byte val, bool isData) {
byte rs = isData ? 0x01 : 0x00;
i2cSend((val & 0xF0) | rs | 0x08 | 0x04);
i2cSend((val & 0xF0) | rs | 0x08);
i2cSend(((val<<4) & 0xF0) | rs | 0x08 | 0x04);
i2cSend(((val<<4) & 0xF0) | rs | 0x08);
delayMicroseconds(50);
}
void lcdCmd(byte c) { lcdByte(c, false); }
void lcdData(byte d) { lcdByte(d, true); }
void lcdInit() {
delay(50);
lcdCmd(0x30); delay(5);
lcdCmd(0x30); delayMicroseconds(150);
lcdCmd(0x30); delayMicroseconds(150);
lcdCmd(0x20); delayMicroseconds(150);
lcdCmd(0x28);
lcdCmd(0x0C);
lcdCmd(0x06);
lcdCmd(0x01);
delay(2);
}
void lcdPos(byte col, byte row) {
static byte off[] = {0x00, 0x40, 0x14, 0x54};
lcdCmd(0x80 | (col + off[row]));
}
void lcdStr(const char* s) { while (*s) lcdData(*s++); }
/* ---------- 超声波 ---------- */
long readCm() {
long sum = 0;
long minUs = 99999, maxUs = 0;
for (byte i = 0; i < 5; i++) {
pinMode(SIG_PIN, OUTPUT);
digitalWrite(SIG_PIN, LOW);
delayMicroseconds(2);
digitalWrite(SIG_PIN, HIGH);
delayMicroseconds(10);
digitalWrite(SIG_PIN, LOW);
pinMode(SIG_PIN, INPUT);
long us = pulseIn(SIG_PIN, HIGH, 50000UL);
if (us == 0) return -1;
sum += us;
if (us < minUs) minUs = us;
if (us > maxUs) maxUs = us;
delay(15);
}
long avg = (sum - minUs - maxUs) / 3;
long cm = (long)(avg / 58.0 + 2.0);
if (cm < 3) cm = 2; // 传感器最小量程 2cm,再近就钳位
return cm;
}
void setup() {
i2cInit();
lcdInit();
lcdPos(0, 0);
lcdStr("Ultrasonic Meter");
}
void loop() {
long cm = readCm();
lcdPos(0, 1);
if (cm < 0) lcdStr("Out of range ");
else {
char buf[16];
snprintf(buf, sizeof(buf), "%ld cm ", cm);
lcdStr(buf);
}
delay(200);
}