Skip to Content
Maestro Docs
Sim LabArduino

Build and run

How your code is compiled, how errors show up, the serial monitor, and how fast the simulation runs.

Upload

Press Upload in the Code panel. Your code is compiled on Maestro's servers (with avr-gcc), never in your browser, and the finished program is loaded onto the emulated board. A normal sketch builds in well under a second, so Upload is quick. After a quiet period the first build can take longer while the build service starts.

If you change the circuit or the code and upload again, the board restarts from reset.

Compile errors

Errors from the compiler are shown in the Code panel, pointing at your own file and line (for example sketch.ino:3). Fix the first error and upload again.

Size limits

  • The program must fit in 32,256 bytes of flash. If it is too big, the build stops with "Sketch too big."
  • After a successful build you see a size summary, like the Arduino IDE: "Sketch uses N bytes (X%) of program storage space…".
  • RAM is 2 KB. The summary reports it, but running out of RAM is not blocked, so large arrays can behave strangely.

Running

The program runs together with the circuit solver, in real time. A delay(500) takes half a real second. When a board is in your circuit, the Inspector has a Real time switch.

On a slower computer the simulation can fall below real time. It is still correct, just slower. A circuit with many parts can run at about 80% of real time on a laptop.

Serial monitor

Serial.print and Serial.println from the board appear in a serial monitor panel. It keeps the most recent 8 KB of text.

What is saved

Your source code is saved with the project, not the compiled program. When you reopen the project, it rebuilds and runs again. After undo or a page reload the board restarts from reset.

Shared live rooms

If you work in a shared live room, each person's browser runs its own copy of the board, so boards can drift apart in timing. The program itself is last-save-wins.