ESP32 boards
Getting Started
You can use the ESP32 simulator to run different kinds of applications:- ESP32 Arduino Core projects (including ESP-IDF projects)
- MicroPython and CircuitPython projects (examples at https://wokwi.com/micropython)
- Rust projects (see https://wokwi.com/rust)
- Custom application firmware files (e.g. applications built using the ESP-IDF)
Arduino Core
Start from the Arduino-ESP32 Project Template, or from the ESP32 Blink Example.MicroPython
Start from the MicroPython ESP32 Project Template, or from the MicroPython ESP32 Blink Example.While the simulation is running, press Ctrl+C inside the Serial Terminal to get into the MicroPython REPL. Alternatively, you can edit the Blink Example code and remove the while loop. For more information, check out the MicroPython Guide.
Custom Application Firmware
1
Open template
2
Upload firmware
Press “F1” in the code editor. Then choose “Upload Firmware and Start Simulation…”. Choose any .bin, .elf or .uf2 file from your computer and the simulation will start.
Simulator Examples
Arduino Examples
Blink
Simple LED blinking
Seven segment counter
Count on a 7-segment display
FastLED NeoPixel Blink
Control NeoPixels with FastLED
WiFi Scanning
Scan for WiFi networks
MicroPython Examples
SSD1306 Example
OLED display with MicroPython
NeoPixels
Control NeoPixels
AES256 Encryption
Hardware-accelerated encryption
WiFi Scanning
Scan for WiFi networks
ESP-IDF Examples
The following examples use the ESP-IDF functions. They are compiled using Arduino ESP32 Core:Blink using FreeRTOS API
FreeRTOS task example
Binary LED counter using FreeRTOS tasks
Multiple FreeRTOS tasks
GPIO button input + interrupts
Handle button interrupts
WiFi Example
Connect to WiFi with ESP-IDF
Sming Framework
Sming Framework Guide
Follow this guide to simulate Sming Framework projects
Simulation Features
Legend:
✔️ Simulated
🟡 Partial implementation/work in progress
❌ Not implemented (but if you need it, please open a feature request)
— Not available on this chip * The amount of SRAM can be customized using the “psramSize” attribute.
WiFi Simulation
See the ESP32 WiFi Guide.Advanced Usage
Flash and memory size
You can customize the size of flash and PSRAM by adding the following attributes to the chip: | Attribute | Description | Default | |-----------|------------------------------------------------------------|---------|| | flashSize | Flash size in MB. Valid values: “2”, “4”, “8”, “16”, “32”. | “4” | | psramSize | PSRAM size in MB. Valid values: “2”, “4”, “8”. | “4” | | psramType | PSRAM type. Valid values: “quad”, “octal”. | “quad” |ESP32 Custom flash size example
See how to configure custom flash size
USB CDC (Serial over USB) support
Some chips have a built-in USB CDC (Serial over USB) + JTAG peripheral. These chips include the ESP32-S3, ESP32-C3/C5/C6, and ESP32-H2. You can configure USB CDC support in Wokwi by adding the following attribute to the chip:You also need to remove any connections to the
$serialMonitor pins from the connections section in your diagram.json file.Custom Partition Table
You can specify a custom partition table by adding a “partitions.csv” file to your project. Check out the ESP32 Partition Table Guide for the exact format of this file.ESP32 Custom partition table code example
See how to use custom partition tables