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

Projects and files

Where your work is kept, saving projects on the simulator, project files, examples and a new empty project.

Your work is kept in three places: in this browser automatically, on the simulator when you save a project, and in a file when you export it.

Where your work is kept

WhatKept
The open sketch, parts, board, layout of the Diagram and Schematicin this browser, saved at every change; still there after a reload
Saved projects (Projects)on the simulator, in your account: at most 50 projects of 400 KB each
What the sketch stores: Preferences, EEPROM, SPIFFS / LittleFS files, the SD cardwith the open project in this browser; kept between runs, removed with Erase flash (flash) or Empty card (SD)
Exported project fileswherever you save the .mcusim.json file
Device tokens of IoT Platformonly in the sketch you fill them into; the simulator does not store them elsewhere

Saving projects on the simulator

Open 🗂 Projects, type a Name and press Save. The project (sketch, parts with their wiring and places, board and its rotation) is saved in your account, so you can open it from another computer.

  • Save updates the project that is open; Ctrl+S does the same from anywhere.
  • Save as new keeps the old one and saves a copy under the name you typed.
  • Open next to a project in the list opens it; it replaces the sketch and parts that are open, so you are asked first. Delete removes it from the simulator (this cannot be undone).
  • The dialog tells you which project is open, or Not saved on the simulator yet.

A new empty project

New Empty Project (in the Projects dialog) closes the open project and starts with an empty setup() / loop(), no parts, an empty flash and SD card, on the board that is selected. It is not saved on the simulator until you press Save.

Project files

⇩ Export downloads the project as <name>.mcusim.json: sketch, board, parts and their places. ⇧ Import opens such a file (older .esp32sim.json files too). Use files to hand in work, share a circuit with someone, or keep a copy.

The Diagram and Schematic can also be exported as pictures (SVG, PNG, JPEG, PDF) with their own Export… menu.

Examples

The Example list in the top bar has ready-made sketches with their parts already wired:

ads1115.ino aht20_sht31.ino bh1750.ino blackpill_oled_counter.ino blink.ino bluepill_pwm_pot.ino bme280.ino bmp280.ino dc_motor_l298n.ino ds18b20.ino esp32c3_oled_demo.ino esp32s3_rgb_led.ino esp8266_blink_a0.ino esp8266_gps_softwareserial.ino esp8266_nodemcu_mqtt.ino flow_sensor.ino gas_mq2.ino gps_neo6m.ino hx711_scale.ino i2c_scanner.ino ina219_power.ino iot_platform_http.ino iot_platform_mqtt.ino ir_obstacle.ino joystick.ino keypad_lock.ino lcd_i2c.ino mhz19_co2.ino mpu6050.ino nano_weather_lcd.ino neopixel_ring.ino nucleo_ultrasonic_alarm.ino oled_ssd1306.ino pico_w_iot_platform_mqtt.ino pzem004t_energy.ino relay4_rain_door.ino rfid_rc522.ino rgb_led.ino rotary_encoder.ino sd_card_logger.ino smart_garden.ino stepper_28byj48.ino tft_st7735.ino tm1637_clock.ino ultrasonic_hcsr04.ino uno_traffic_light.ino

Opening an example replaces the open sketch and parts. Save your own work first.

Undo and redo

Every change of the circuit (adding, removing or copying a part, wiring, moving, turning) can be undone with ↶ / ↷ in the Diagram or Schematic toolbar, or Ctrl+Z and Ctrl+Y while one of them is shown. Moving a sensor slider is not a step. The history starts again when you open a project, an example or a file.