ESP32 LED Project

Light LEDs by WIFI with the ESP32

Objective of this project:

In this project we will turn LEDs on and off by WIFI with the ESP32 card and a smartphone.

Necessary components

  • ESP32 board

  • Green LED
  • Yellow LED
  • Red LED
  • 220Ω resistors

  • Connecting wires


To perform the assembly, you can connect the yellow LED resistor to pin D22, the green LED resistor to pin D21 and the red LED resistor to pin D23 of the ESP32 board.

MicroPython program


Copy the following code to the ESP32 boot.py file.



Copy the following code into the ESP32 main.py file.

0 commentaire

Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top