MCU Simulator Robotic and Embedded System Laboratory
← Open the simulator
Documentation

The workspace

The top bar, the editor tabs, the board panel, the serial monitor, the layout and the display style.

The simulator has one page: the editor on the left, the board and its parts on the right, and the serial monitor below them.

The top bar

ControlWhat it does
ExampleOpens an example sketch with its board and parts. It replaces your sketch and parts (you are asked first).
▶ RunCompiles the sketch for the selected board and starts it. Shortcut: Ctrl+Enter in the editor.
■ StopStops the board. Running again starts from setup(), like pressing reset.
📟 DevicesYour IoT Platform devices: open the platform's firmware template for a device, or fill in its token. Shown when you are signed in. See Connecting to IoT Platform.
🗂 ProjectsSave the sketch, parts and board on the simulator, open or delete saved projects. See Projects and files.
⚙ SettingsNetwork settings: which WebSocket address to use for each MQTT broker, and the MAC address of the simulated board. See Network.
⇩ Export / ⇧ ImportSave the project as a .mcusim.json file, or open one.
📖 DocsThis documentation, in a new tab.
StatusReady, Compiling…, Running, Stopped or an error.
Your nameThe account you are signed in with; its menu signs you out of the simulator, or of IoT Platform too.
Standard / FILKOM, ☀ ☾ ◐The look of the app: Standard or FILKOM colours, light, dark, or following your system. Remembered in this browser.

The editor tabs

  • sketch.ino: the code editor. See Writing sketches.
  • Diagram: the wiring canvas, with the board and the parts drawn as modules and wires between them. See The Diagram.
  • Schematic: the same circuit as a schematic drawing. See The Schematic.

Below the editor, Compiler output opens the full log of the last compilation.

The board panel

At the top of the right column:

  • the board picker (ESP32 DevKit, ESP32-S3 DevKitC-1, ESP32-C3 SuperMini, ESP32-C3 OLED, ESP32-CAM, NodeMCU ESP8266, Wemos D1 mini). Changing the board stops the sketch; it is compiled again for the new board at the next run;
  • Wi-Fi and MQTT chips showing whether the sketch is connected;
  • Erase flash: deletes what the sketch stored with Preferences, EEPROM and SPIFFS / LittleFS files (they are kept between runs, like on a real board);
  • the pin map: the board with its header pins, what is connected to each and its level while running. Hover a pin to see what it can do (ADC, input only, boot pin, ...);
  • on the ESP32-CAM, the camera menu (test pattern or your computer's camera).

Below it, the Parts list: one card per part with its pins, power, values and wiring messages. See Parts and wiring.

Serial monitor and Network

The Serial monitor shows what the sketch writes to Serial. Type in the line at the bottom and press Enter to send text to the sketch (Serial.read(), Serial.readStringUntil()). The Network tab logs the sketch's network traffic: Wi-Fi, MQTT connects, published and received messages, and HTTP requests with their status. Clear empties the tab shown.

Arranging the page

  • Drag the bar between the editor and the right column to make the editor wider or narrower (double-click: back to the default).
  • Fold the Board panel or the Serial monitor with the ▾ in their title; the other one gets the whole column. A dot on the folded serial monitor tells you there is new output.
  • The layout, the open tab and the look are remembered in this browser.