Arduino - Blink multiple LED

This tutorial teaches you how to program an Arduino to make multiple LEDs blink simultaneously without using the delay function. The tutorial provides code in two ways:

We will use three LEDs as examples. You can easily modify it to adapt for two LEDs, four LEDs, or even more.

Hardware Required

1×Arduino UNO or Genuino UNO
1×USB 2.0 cable type A/B (for USB-A PC)
1×USB 2.0 cable type C/B (for USB-C PC)
1×LED
1×220 ohm resistor
1×Breadboard
1×Jumper Wires
1×(Recommended) Screw Terminal Block Shield for Arduino Uno
1×(Recommended) Breadboard Shield For Arduino Uno
1×(Recommended) Enclosure For Arduino Uno

Or you can buy the following sensor kits:

1×DIYables Sensor Kit (30 sensors/displays)
1×DIYables Sensor Kit (18 sensors/displays)
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.

About LED

We have a detailed LED tutorial including hardware pinout, working principle, Arduino wiring, and code instructions. Learn more here:

Wiring Diagram

Arduino multiple LED Wiring Diagram

This image is created using Fritzing. Click to enlarge image

Video Tutorial

We are considering to make the video tutorials. If you think the video tutorials are essential, please subscribe to our YouTube channel to give us motivation for making the videos.

The Best Arduino Starter Kit

※ OUR MESSAGES