ESP32 MicroPython Blink multiple LED

This guide shows you how to set up and write MicroPython code for an ESP32 to blink multiple LEDs at different speeds without using the time.sleep() function. It offers the instructions in two different ways:

ESP32 MicroPython blinks multiple LED

We'll explain how to do this with three LEDs. You can easily adjust it for two, four, or more LEDs.

Hardware Preparation

1×ESP-WROOM-32 Dev Module
1×USB Cable Type-C
1×LED
1×220 ohm resistor
1×Breadboard
1×Jumper Wires
1×(Recommended) Screw Terminal Expansion Board for ESP32
1×(Recommended) Power Splitter For ESP32

Or you can buy the following sensor kits:

1×DIYables Sensor Kit (30 sensors/displays)
1×DIYables Sensor Kit (18 sensors/displays)
Disclosure: Some of the links provided in this section are Amazon affiliate links. We may receive a commission for any purchases made through these links at no additional cost to you.
Additionally, some of these links are for products from our own brand, DIYables.

Overview of LED

If you're not yet familiar with LEDs (including their pinout, how it works, interfacing with the ESP32, and writing MicroPython code for the ESP32 to interact with them), you can learn more at:

Wiring Diagram

The wiring diagram between ESP32 MicroPython multiple LED

This image is created using Fritzing. Click to enlarge image

Video Tutorial

※ OUR MESSAGES

  • As freelancers, We are AVAILABLE for HIRE. See how to outsource your project to us
  • Please feel free to share the link of this tutorial. However, Please do not use our content on any other websites. We invested a lot of effort and time to create the content, please respect our work!