In its latest development phase, the online electronics simulator Vadnica Elektronik IDE (Arduino & ESP Simulator) has gained its first working steps in executing Arduino code, along with a series of user interface improvements. Special attention was given to the starter circuit, the serial monitor, code editing, and a more adaptable workspace.
While the previous update focused on expanding the library to 41 development boards, this release centers on how users actually interact with the simulator: from writing a program and starting a simulation to monitoring the LED and serial output messages.
1. The Starter Circuit Now Has a Working Simulation
Upon launching the application, users are greeted with a starter example featuring an Arduino board and an LED. Previously, clicking the start simulation button produced no visible effect. We have changed that: the simulator now executes supported basic commands from the program and updates the LED state on the canvas based on the circuit connections.
The default Blink sketch alternates a digital output pin between high and low states inside a loop, causing the LED to blink at the rhythm defined by the delays in the code. If a user modifies the supported commands or delay intervals, the changes are reflected in the simulation the next time it runs.
- Pin configuration: the
pinModecommand sets the operating mode of a digital pin. - Turning on and off: the
digitalWritecommand changes the output state, updating the visual state of a properly connected LED. - Time delays: the
delaycommand controls pauses between individual actions in the program. - Basic program structure: the runtime supports a starter sketch with
setupandloopfunctions, along with basic constants and variables. - Stopping the simulation: stopping the simulation halts execution and turns off the LED.
- Error handling: unsupported or invalid code does not fail silently—instead, the simulator displays an error message to the user.
Important current limitation: the execution engine currently supports a basic set of Arduino commands and the Arduino Uno R3 board. While the component catalog includes many other boards, code execution is not yet supported for them. The simulator also does not yet execute the full C++ language.
2. Serial Monitor for Tracking Program Execution
The Monitor tab in the left sidebar is now connected to the execution of supported Arduino code. Alongside visual changes on the canvas, users can monitor messages sent by the program over the serial interface.
- Connection initialization: the starter program uses
Serial.beginto initialize serial communication. - Text output: the
Serial.printandSerial.printlncommands display messages inside the monitor. - System messages: the monitor also informs the user about simulation start, stop, and any runtime errors.
- Starter example: on startup, the default sketch prints a message to the monitor confirming that the Arduino is ready.
The serial monitor complements the visual circuit display: the LED shows hardware state on the canvas, while text output helps track program execution step by step.
3. Direct Code Editing in the Left Sidebar
Previously, the Code tab only contained a button to open the bottom editor drawer. Now, it directly displays the entire Arduino sketch, which can also be edited right inside the panel. Users no longer need to open an extra drawer just to make quick changes.
- Direct editing: code can be written and modified directly in the left sidebar right next to the workspace canvas.
- Complete program in one place: the editor field shows the full sketch content rather than just a button to access the code.
- Real-time synchronization: changes made in the sidebar editor immediately sync with the bottom editor and vice versa.
- Single source for simulation: when started, the simulator uses the synchronized editor code.
The bottom Arduino C++ Sketch Editor drawer remains available, as does the Code (.ino) button in the application header, allowing users to choose whichever workspace layout suits them best.
4. Quick Simulation Start Directly Below the Code
We added a Run Simulation button directly beneath the code editor in the left tab. When tweaking a sketch, users no longer need to move up to the header button—they can edit and test their code in the exact same place.
- Two buttons, one simulation: both the button in the Code tab and the button in the header control the same simulation instance.
- Start and stop: either button can be used to start or stop the simulation.
- Synchronized state: both buttons simultaneously reflect whether the simulation can currently be started or stopped.
- Bilingual support: the button label automatically adapts to the selected interface language.
5. Improved Sidebar Collapsing and Bottom Drawer Resizing
The left and right sidebars provide extra room on the canvas when collapsed, but previously, collapsing them also hid the button needed to reopen them. We have fixed this behavior on both sides.
- Left sidebar: settings, code, monitor, and tools can be hidden and reopened anytime using a visible toggle arrow.
- Right sidebar: the list of tools and components can likewise be collapsed and expanded again.
- More workspace: users can hide either or both sidebars as needed without having to refresh the page to bring them back.
We also improved how the bottom code drawer behaves. Previously, collapsing a sidebar left the drawer fixed in place without utilizing the newly freed space. Now, its width dynamically adapts to the state of both sidebars:
- When the left sidebar collapses, the editor expands toward the left.
- When the right sidebar collapses, the editor expands toward the right.
- When a sidebar is reopened, the drawer adjusts back on that side.
- Resizing works independently on both sides, making full use of the screen even when both sidebars are collapsed at once.
6. Cleaner Component Selection
We removed the redundant horizontal category bar below the search box in the right sidebar. Since development boards are already organized into dedicated selection windows, the extra bar took up unnecessary space and made browsing harder.
The component search bar remains, along with separate selection windows for Arduino, ESP, XIAO, and other development boards. As a result, the right sidebar is cleaner while keeping all existing search and selection options accessible.
7. Overview of Key Updates
| Area | New Feature or Improvement |
|---|---|
| Simulation | Execution of basic Arduino commands and visual LED blinking in the starter circuit. |
| Serial Monitor | Display of supported serial outputs along with simulation status and error messages. |
| Code Tab | The entire sketch can now be viewed and edited directly inside the left sidebar. |
| Code Editors | The sidebar editor and bottom drawer editor stay synchronized in real time. |
| Simulation Controls | Simulations can be started and stopped either from the header or directly below the code. |
| Sidebars | Visible toggle arrows remain accessible to reopen collapsed sidebars. |
| Bottom Drawer | Editor width dynamically adapts when either or both sidebars are collapsed or expanded. |
| Components | Removed the redundant category bar; search and board selection windows remain intact. |
From the First Line of Code to Circuit Response
This development phase connects writing code with its first visible hardware response: users can edit the starter sketch, run the simulation, watch the LED blink, and follow messages in the serial monitor. At the same time, adaptable sidebars and two synchronized editors make working across different screen sizes much smoother.
Code execution is currently limited to basic commands and the Arduino Uno R3, but it lays a solid foundation for continued development of the simulator and gradual expansion of its capabilities.