Skip to content

Your first project

The fastest way to understand Velxio is to run something. In this tutorial you’ll open the classic blink example, run it, watch a simulated ESP32 drive a real LED circuit, and then change the code.

The blink example running

Go to velxio.dev/example/esp32-blink-led (or find ESP32 Blink in the examples gallery).

The blink example loaded in the editor

You get a complete project: the code on the left (an Arduino sketch that toggles two LEDs), and the circuit in the middle — an ESP32 DevKit wired through a resistor to an external LED.

Click the green Run button in the toolbar (or press Ctrl+B to compile first). Velxio compiles your sketch with the real Arduino/ESP-IDF toolchain in the cloud — the Output console at the bottom left streams the compiler’s progress, exactly like the Arduino IDE would.

The first compile of a session can take a little while; after that, builds are much faster.

When the build finishes, the firmware boots on the emulated ESP32:

The blink example running: LED on, serial output flowing

Three things happen at once:

  • The LED on the canvas blinks — the simulation drives the actual component, through the actual resistor.
  • The serial monitor shows the boot log and then LED ON / LED OFF, straight from Serial.println() in the sketch.
  • The yellow SPICE badge above the circuit shows the analog engine solving the LED’s current path.

Edit the sketch — for example, change the delay to make it blink faster:

delay(100); // was 500

Press Run again. That’s the whole loop: edit, run, observe.

Click the save icon above the file tree (or Ctrl+S), give the project a name, and it’s stored in your account. See Saving and opening projects.

Tip: stuck at any point? Open the AI assistant on the right and ask — “why is my LED not blinking?” is one of its example prompts for a reason. See AI assistant.