ESP8266 - Blink multiple LED

This tutorial instructs you how to program the ESP8266 to blink multiple LEDs simultaneously, each blinking at a different frequency, without relying on the delay function. We'll use three LEDs as an example, but you can adjust the code to handle more LEDs easily.

Hardware Preparation

1×ESP8266 NodeMCU
1×Micro USB Cable
1×220 ohm resistor
1×Jumper Wires
1×(Optional) DC Power Jack
1×(Optional) ESP8266 Screw Terminal Adapter

Or you can buy the following sensor kit:

1×DIYables Sensor Kit 30 types, 69 units
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. We appreciate your support.

Overview of LED

We have specific a tutorial about LED. The tutorial contains detailed information and step-by-step instructions about hardware pinout, working principle, wiring connection to ESP8266, ESP8266 code... Learn more about them at the following link:

Wiring Diagram

The wiring diagram between ESP8266 NodeMCU and multiple LED

This image is created using Fritzing. Click to enlarge image

See more in ESP8266's pinout and how to supply power to the ESP8266 and other components.

Video Tutorial


  • 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!