Link: Wokwi - Online Arduino and ESP32 Simulator
Topic: There are already a lot of Arduino and ESP32 simulators online. Unfortunately, most of them have been last updated several years before. A few are available but not for free. Here I have tried almost all Arduino Simulators and common problems are below
- No support of external libraries
- No support for assembly programming
- runs on an outdated Arduino IDE
- Very slow
I have been working with the wokwi Arduino simulator for some time, and I would like to share my experience of why it is a valid and workable solution presently for simulation needs.
- The basic AVR8js compiler engine which runs the simulator is made open-source (GitHub - wokwi/avr8js: Arduino (8-bit AVR) simulator, written in JavaScript and runs in the browser / Node.js)
- The execution happens on the browser itself yet without much lag (very fast, compared to older simulators)
- Peripherals support - new ones are added frequently
- A step towards practical things - For example - bounce feature is there for the switches
- Quite a number of standard examples are there
- Supports UNO, Mega, Nano, ATtiny85, ESP32 and more will be added on request, soon
- special peripherals such as ultrasonic sensors, NeoPixels, FastLEDs (matrix, strip and others) are supported
- support is available (Wokwi) and (Facebook: Wokwi Users Group - Arduino, ESP32 and Embedded System Simulator | Facebook)
many people have created applications based on the open-source AVR8js engine
- Arduino Robotics Lab - Dawson College - Virtual Lab for students
- GitHub - arcostasi/avr8js-electron-playground: An AVR8js and Wokwi Elements playground implemented with Electron - a downloadable electron Arduino simulator
- AVR8js+Falstad - Combining the power of Falstad with the Arduino Simulator etc
I would request you to share your constructive criticism. This helps a lot to make this Free Arduino simulator, a practical tool too in the future
Updates:
- Wokwi now supports Internet of things simulation too
- Raspberry Pi Pico SDK support added (example 1, Example 2)
- More embedded systems boards are in pipeline now