Lesson 9: How to Run in Wokwi Simulator

 Learning Objectives

  • Learn how to create and run basic IoT simulations using Wokwi.

  • Understand how to set up an ESP32 microcontroller with basic components.

  • Simulate an LED blinking program online.

What is Wokwi?

Wokwi is an online simulator for Arduino, ESP32, and other electronics projects. It allows you to design circuits, write code, and see your project run — all from a web browser, without needing physical hardware.



Steps to Run in Wokwi

  1. Go to https://wokwi.com.

  2. Click "Start a new project" and select ESP32 as your board.

  3. From the Add Part (+) menu, add an LED and a resistor.

  4. Wire them as follows:

    • Connect the LED's anode (+) to GPIO pin 14 of the ESP32.

    • Connect the LED's cathode (–) to one end of the resistor.

    • Connect the other end of the resistor to GND.

  5. The resistor can be connected to either the anode or cathode side of the LED without affecting the circuit’s operation, as long as it is in series with the LED. 

  6. Replace the default code with the example LED blink code provided in class. 


  7. Click ▶ Play at the top — the LED should blink every 1 second.



Comments