ESP32 simulator with Neopixel interface. Learn ESP32 coding online - Use Wokwi ESP32 simulator for your next project!

This project will show how to connect an LED ring to an ESP32. You can program ESP32 simulator using Arduino or Micropython programming. Wokwi ESP32 simulator allows you to run ESP32 code right out of the browser. Sharing the ESP32 projects is easy. You just have to share the link with others. Everybody will be able to run the project online and also create their own versions. 

Step to simulate ESP32 online on Wokwi

Step 1 - Start with ESP32 project template

There are two options. 

Option 1 - Select `ESP32` as the new project option

Option 2 - Select `Micropython on ESP32` as the new project option

ESP32 oprject options

Choose between ESP32 on Arduino Core or Micropython on ESP32 option - Wokwi online ESP32 simulator

Step 2 - Add the parts in the Wokwi Simulator

Here is the simple image showing the steps to add an LED, resistor, LED ring and more. 

Wokwi-ESP32-NeoPixelRing-LED-Switch.gif

Wokwi ESP32 Simulator - Adding components

Step 3 - Add the code!

You can copy paste the code or type it out. Wokwi ESP32 simulator provides one of the best-state-of-the-art editor. you can follow a few examples given here. 

        # NeoPixels Rainbow on MicroPython
# Wokwi Example https://wokwi.com/arduino/projects/305569065545499202

from machine import Pin
from neopixel import NeoPixel
from time import sleep

rainbow = [
  (126 , 1 , 0),(114 , 13 , 0),(102 , 25 , 0),(90 , 37 , 0),(78 , 49 , 0),(66 , 61 , 0),(54 , 73 , 0),(42 , 85 , 0),
  (30 , 97 , 0),(18 , 109 , 0),(6 , 121 , 0),(0 , 122 , 5),(0 , 110 , 17),(0 , 98 , 29),(0 , 86 , 41),(0 , 74 , 53),
  (0 , 62 , 65),(0 , 50 , 77),(0 , 38 , 89),(0 , 26 , 101),(0 , 14 , 113),(0 , 2 , 125),(9 , 0 , 118),(21 , 0 , 106),
  (33 , 0 , 94),(45 , 0 , 82),(57 , 0 , 70),(69 , 0 , 58),(81 , 0 , 46),(93 , 0 , 34),(105 , 0 , 22),(117 , 0 , 10)]

pixels = NeoPixel(Pin(15), 16)
while True:
  rainbow = rainbow[-1:] + rainbow[:-1]
  for i in range(16):
    pixels[i] = rainbow[i]
  pixels.write()
  sleep(0.1)
    

Step 4 - Connection diagram creation

chrome_EgQfaw1pvI.png

Wokwi NeopixelESP32 simulator example

Step 5 - ESP32 Simulation example

https://wokwi.com/arduino/projects/305569065545499202

The below article answers the following questions

  • How to draw and connect using wires
  • How to add a part in the Wokwi Simulator
  • How to change wire colours
  • How to delete a part on Wokwi
  • How to move, rotate parts on the Wokwi Simulator and more

https://www.hackster.io/Hack-star-Arduino/how-to-use-wokwi-arduino-simulator-what-is-wokwi-304e6b

Support/feedback/suggestions?

you have many ways to ask for help, suggest a feature or share your feedback

Open an issue on GitHub

Visit Facebook group

Hop on to Discord Server!

leave a comment here 😅

share Open-Tech
Hardware enthusiast with ample interest in Arduino projects