Simulation projects
Students and participantsInstructors and assistants
Creating a microcontroller project — choosing the target processor, language and starting template; copying from the example gallery, categories, the archive, exporting and importing a project, and going back to an earlier version from the revision history.
In the Simulation module every piece of work is a project: your source files, the target processor you chose, the build settings and (if there is one) the project's circuit are kept together. Projects are stored on the server, so you can carry on from any computer.
Where are my projects?#
Select Simulation in the sidebar. The Simulation projects page opens.

- Active / Archived: the projects you're working on are on the Active tab; projects you archive move to the Archived tab.
- Categories: projects are grouped into categories (for example "Laboratuvar"). Categories are created by the unit's instructors, assistants, engineers or administrators; you put your project in one with Move to category in the row's ⋮ menu. Projects without a category are listed under Uncategorized.
- To open a project, select its name or the Open button; the workspace opens (see Writing and building code).
The ⋮ menu at the right of each row has these actions:
| Action | What it does |
|---|---|
| Export | Downloads the project as a .circuit-sim.json file (sources, settings, circuit). |
| Copy | Creates a copy of the project. |
| Edit | Changes the name and description. |
| Move to category | Puts the project in another category. |
| Archive | Moves the project to the Archived tab. Archiving is not deleting: content and history are preserved, and you can restore the project from the Archived tab. |
| Build for release (Build & Analysis) | Builds and analyzes the project on the server for real hardware (if your license includes Build & Analysis; see Build & Analysis). |
How do I create a new project?#
- On the Simulation projects page, select New project.
- Type the Project name; optionally add a description and choose a category.
- Choose the Target processor. Only active processor packs assigned to your license are listed.
- Choose the Language (Assembly or C, depending on the target).
- Choose a Starting template:
- LED pattern — writes a running pattern to a port; you watch it on the eight LEDs of the ready-made circuit.
- Write to serial — sends text over the UART; it appears in the serial terminal.
- Timer interrupt — produces a regular interrupt with a timer; you watch it on the Peripherals tab.
- Blank — only an entry point and a main loop; you write the rest.
- Select Create. The project is created and the workspace opens.

Tip
If you're just starting, choose the LED pattern template and select Run in the workspace straight away: the program is built and the LEDs light up one after another.
Which language for which processor?#
| Target processor | Languages | Where it is built |
|---|---|---|
| Generic 8051, Generic 8052, Nuvoton MS51PC0AE, Analog Devices ADuC841 | Assembly, C | In the browser: the built-in assembler or SDCC 4.6 (C). Optionally with SDCC on the server. |
| Microchip ATmega328P, ATmega2560, ATtiny85 | C | On the server (avr-gcc) |
| Arm Cortex-M0+ | C | On the server (arm-none-eabi-gcc) |
| Microchip PIC16F877A | C, Assembly | On the server (SDCC pic14 and gputils) |
The first C build for the 8051 family downloads a compiler of about 4.8 MB into the browser once; later builds are fast.
Note
Each project is locked to the processor pack version it was created with (header files, peripheral model). Pack versions published later don't change your existing project, so an update in the middle of term won't break your assignment.
Starting from an example project#
The Microcontroller examples gallery has 91 examples for all nine target processors, each verified while running: writing and reading ports, 7-segment displays, DIP switches, timers, interrupts, serial communication and analog peripherals. Examples labelled Circuit included come with a ready-made circuit. Open the gallery with the Example projects button on the projects page or from the start wizard.

Select View example on an example to open its detail page: a description, the source code, the expected register timeline verified while the example runs, and the license notice.
- Copy to my private project copies the example into your account as a project you can edit; the example itself doesn't change.
- Download ZIP downloads the source files.

Exporting and importing a project#
- Export (in the row's ⋮ menu) downloads the project as a single
.circuit-sim.jsonfile. - Import (top right of the page) creates a new project from such a file. This is how you bring a project a classmate or your instructor shared into your own account.
Revision history: going back to an earlier version#
Every save creates a revision. In the workspace, the Toggle revision history button at the top right opens the history panel.

- If you type what changed in Note for the next save, the note is attached to the revision created by your next save.
- The panel shows each revision's date and author, as well as build records (successful or failed, with the number of errors and warnings).
- To go back to an earlier revision, choose Restore on it. The history isn't deleted; that content is written as a new revision. You can bring back a file you deleted the same way.
Opening someone else's project#
If you're allowed to see a project that belongs to someone else (for example as an instructor or administrator), it opens read-only: you can run and inspect it, but changes aren't saved. To edit it, select Copy and edit among the workspace's commands: a copy is made in your own account and opens.
How do I submit my project to an assignment?#
The Submit to assignment button on the workspace toolbar hands in the project's saved files to the open assignment you choose. For details: My courses and assignments.
Last updated:
Could not find what you need? Write to support — tell us the screen and what you expected to happen.