How to Make ESP32 Built-In LED Blink

Agung Ahsary
2 min readFeb 6, 2022

--

Hello.. As you can see in the title of this blog, we are going to make our ESP32 microcontroller built-in LED blink.

Here’s what you need to prepare in order to do that.

Requirements

  1. Any kind of ESP32 microcontroller board
  2. A PC or laptop
  3. Arduino IDE software installed on the PC
  4. Micro-USB to USB cable

And then, let’s do these steps one by one in order to complete our goal!

Steps

  1. Turn on your PC/laptop and open the Arduino IDE that we’ve installed before.
  2. Connect your ESP32 board to your PC using your Micro-USB to USB cable.

3. For the initial ESP32 board setup, in your Arduino IDE, go to Tools > Board > ESP32 Arduino > and choose what type of ESP32 board you are using, in my case I’m using “DOIT ESP32 DEVKIT V1”.

4. And then, again, in your Arduino IDE go to Tools > Port > and choose COM3.

5. After the initial setup, we can begin to write the code for our project. You can just put in the code as the image below.

6. Next, you just have to click upload (the arrow that points to the right, circled red).

7. Wait for the IDE to compile, and you have your built-in LED blink!

That’s it y’all, thanks for reading!

--

--