The ESP32 LED Blinker Trio is a simple yet effective introduction to microcontroller outputs, using three LEDs that blink in unison. This project demonstrates basic digital control by toggling three LEDs on and off at regular intervals, making it an ideal starting point for learning Arduino programming and circuit assembly.
This guide provides a complete parts list, wiring diagram, and step-by-step assembly instructions for breadboard setup. Readers will also receive the Arduino firmware needed to program the microcontroller, along with explanations of how the code controls each LED through digital pins.
Wiring diagram

Gather all the parts
Assemble it in 4 steps
1. Prepare the breadboard
Unplug the Arduino USB cable. Use a solderless breadboard and male-to-male jumper wires. Connect Arduino GND to the breadboard blue minus rail. Use the same continuous section of this rail for all three LEDs.
- The five holes in each numbered row on one side of the centre gap are connected. The two sides of the gap are separate. Some long rails are split halfway along.
2. Insert three LEDs
Put each LED's long leg (positive, anode) and short leg (negative, cathode) in separate numbered rows. Connect each short leg's row to the blue minus rail. The flat edge of the LED body also marks the negative side.
- Putting both legs in the same connected row shorts the LED, so it will not light.
3. Connect the three resistors
For LED1, put one end of r1 in the long leg's row and the other end in a new row. Connect that new row to Arduino D2. Repeat with r2 and LED2 to D3, and r3 and LED3 to D4. Each resistor is 220 ohms, rated 1/4 watt. Resistors can face either way.
- Each LED needs its own series resistor. Connecting an LED directly to an Arduino output can damage the LED or Arduino.
4. Check before powering
Check the three separate paths: D2 through r1 and LED1 to GND; D3 through r2 and LED2 to GND; D4 through r3 and LED3 to GND. Leave Arduino 5V and VIN unconnected; USB will power this circuit.
Review all connections
1. Connections between "r1" and "Arduino"
2. Connections between "led1" and "Arduino"
3. Connections between "r2" and "Arduino"
4. Connections between "led2" and "Arduino"
5. Connections between "r3" and "Arduino"
6. Connections between "led3" and "Arduino"
Deploy the firmware
#include <Arduino.h>
const uint8_t LED1 = 2;
const uint8_t LED2 = 3;
const uint8_t LED3 = 4;
void setup() {
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
}
void loop() {
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
delay(500);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
delay(500);
}Remix this project
Make it yours in one click
Open a full copy of this project in your own Schematik workspace, diagram, code, parts, and assembly steps included. Swap the sensor, add features, or redesign the whole thing with AI. The author's original stays untouched.




