Wokwi – An Arduino, Raspberry Pi Pico, and ESP32 board simulator

Wokwi is an online simulator for Arduino, Raspberry Pi Pico, and ESP32 boards, or even your own custom microcontroller board designed to learn programming without the actual hardware.

My girlfriend’s daughter has just attended a free 5-day online course about AI, IoT, ESP32, MicroPython, and more organized by King Mongkut’s Institute of Technology Ladkrabang (KMITL) and IMAKE Innovation, a STEM education company in Thailand. I was told they had some homework for ESP32 as part of the course, so I asked her whether she wanted an ESP32 board. But she said no need. So then I asked how to program the ESP32 without the board, or do they have a simulator? And indeed I was sent the screenshot below along with a blurry video showing the LED display updated as the program runs in the web browser.

ESP32 MicroPython Simulator

Considering ESP32 boards are so cheap and external modules or a breadboard are typically required to create a project, I did not think this type of emulator would be necessary. But considering the aforementioned online course consisted of a Zoom call with over 500 attendees, it start to make a lot of sense, especially for LFH (Learn from Home) / remote education.

So that may explain Wokwi‘s popularity and it looks like a great platform for education with support for several Arduino boards (Uno, Mega, Nano), the Raspberry Pi Pico, and a generic ESP32 board programmed either with Arduino or MicroPython.

WOKWI Arduino Raspberry Pi Pico ESP32 simulator

It’s also possible to add custom boards so it’s not limited to the officially supported boards. You can start your project from scratch by only selecting a board and adding components and writing the code yourself or start from an existing project such as an ESP32 + DHT22 temperature and humidity sensor project.

Wokwi ESP32 simulator

There’s an Arduino sketch, and we can just click on the green icon to start the simulation. It will show the temperature and humidity in the simulated serial console.

You can also add more components such as LEDs, potentiometers, buttons, sensors, VCC, GND, and so on, and the diagram can also be seen in the source code as a JSON file.

Wokwi add components

Wokwi is free to use, but there’s also a premium membership program called the “Wokwi Club” that costs $7 per month or $67 per year and allows users to add Arduino libraries, upload custom binary files, connect to ESP32 WiFi, and save their projects privately. Members can also vote on new Wokwi features.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

Radxa Orion O6 Armv9 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
11 Comments
oldest
newest
andelf
andelf
1 year ago

The only “bad” thing about these is that users workout access to real hardware won’t learn that hardware isn’t perfect.

ginandbacon
ginandbacon
1 year ago

While I agree, having worked on various hardware platforms over the years, imagine trying to teach an online class with 500 plus students who all had various ESP32’s or telling them all they had to buy the same specific model considering how many different versions and hardware makers there are. If it was in person that might be different but online, over zoom, this is a much better solution for that scenerio. I need to check it out since it’s free. Sounds like it may be useful granted I have probably 5 ESP32’s sitting around currently that aren’t in use.… Read more »

Mari
Mari
1 year ago

100% this, though from the perspective of a student. I recently dropped a machine learning MOOC because of the very specific Arduino board the class. called for. A board I had no luck finding stocks of. And also this saves some hassle and time. I think that if people take the time to review components and leave reviews for suppliers, that can help anticipate the problems of real life hardware not being as consistent.

Willy
1 year ago

This looks really excellent! This reminded me a program I wrote about 28 years ago, as I was a student. It was a PC simulator to help people learn how to assemble a PC. You had to connect the different power connectors, SIMM, CPU, VGA, HD, FD controllers, the hard drive, the floppy drive, the keyboard, and it would simulate a boot till the DOS prompt depending on what was connected and how, or even fire if components were inserted the wrong way. I was delighted to see an old guy manage to assemble a PC correctly at once for… Read more »

Mari
Mari
1 year ago

The LED graveyards of our youth.

Mari
Mari
1 year ago

I’m shocked that this is the first post on Wokwi here! I had thought that
CNX Software was where I had read about it first, but apparently not! If you think that’s cool, I like this idea they have for combining Wokwi simulations with LLM-generated code: https://blog.wokwi.com/learn-arduino-using-ai-chatgpt/

Mari
Mari
1 year ago

You got everything to work! (in the end) I am glad you told me about using ChatGPT with the Cytron board or I would have passed that review by. Nothing against Cytron, I just tend to assume their boards are more costly than I can afford. I swear it’s tricky sometimes, but overall easier. Learning how best to prompt seems to take a bit of practice, neither over-describing nor understating, nor misleading prompts. Goldilocks prompts, one might say. I mentioned Controllino’s coding helper, but at last glance they hadn’t integrated Python support for it, just C. I assume it’s how… Read more »

Jerry
Jerry
1 year ago

Does anyone know where to download the crack?

Mari
Mari
1 year ago

sidewa.lk

Just don’t step on it or you might break your motherboard’s backwards compatibility.

Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...