Documentation
// setup

Getting Started

Follow these steps to simulate your first Arduino sketch.

Option 1: Use the Hosted Version

No installation needed, go to https://velxio.dev and start coding immediately.

Option 2: Self-Host with Docker

Run a single Docker command to start a fully local instance:

docker run -d \
  --name velxio \
  -p 127.0.0.1:3080:80 \
  ghcr.io/davidmonterocrespo24/velxio:master

Then open http://localhost:3080 in your browser.

Option 3: Manual Setup (Development)

Prerequisites: Node.js 24+ (Corepack), Rust (Cargo), arduino-cli

1. Clone the repository

git clone https://github.com/davidmonterocrespo24/velxio.git
cd velxio

2. Start the backend

cargo build --locked -p eidolon-esp32-worker
cargo run --locked -p eidolon-server -- --port 8001

3. Start the frontend in a second terminal at the repository root

corepack enable
pnpm install --frozen-lockfile
pnpm --filter @eidolon/web run dev

Open http://localhost:5173.

4. Set up arduino-cli (first time)

arduino-cli core update-index
arduino-cli core install arduino:avr

# For Raspberry Pi Pico support:
arduino-cli config add board_manager.additional_urls \
  https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
arduino-cli core install rp2040:rp2040

Your First Simulation

  1. Open the editor at velxio.dev/editor.
  2. Select a board from the toolbar (e.g., Arduino Uno).
  3. Write Arduino code in the Monaco editor, for example:
1void setup() {
2  pinMode(13, OUTPUT);
3}
4
5void loop() {
6  digitalWrite(13, HIGH);
7  delay(500);
8  digitalWrite(13, LOW);
9  delay(500);
10}
  1. Click Compile: the backend calls arduino-cli and returns a .hex file.
  2. Click Run: the AVR8 emulator executes the compiled program.
  3. Add components using the component picker (click the + button on the canvas).
  4. Connect wires by clicking a component pin and then another pin.

Troubleshooting

ProblemSolution
arduino-cli: command not foundInstall arduino-cli and add it to your PATH.
LED doesn't blinkCheck the browser console for port listener errors; verify pin assignment in the component property dialog.
Serial Monitor is emptyEnsure Serial.begin() is called inside setup() before any Serial.print().
Compilation errorsCheck the compilation console at the bottom of the editor for full arduino-cli output.