What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can make nine useful Arduino LED patterns with a few basic ideas: switch digital outputs on and off, vary the timing, coordinate multiple pins, or use PWM to fade an LED. Start with the board’s built-in LED for the simplest patterns; use external LEDs and a current-limiting resistor for multi-LED projects.

What you need to know before wiring LEDs

Arduino’s Blink example uses LED_BUILTIN to address the onboard LED without assuming that every board uses the same pin. Arduino lists D13 for the UNO and D6 for the MKR1000; check your board’s documentation before substituting a hard-coded pin. See Arduino’s Blink example.

For an external LED in Arduino’s documented UNO R3 circuit, the resistor goes between the output pin and the LED anode, while the LED cathode connects to GND. The resistor limits current to protect both the LED and output pin. Arduino gives 220 ohms for that specific 5V UNO R3 setup; do not treat it as a universal resistor value for every board and LED.

Simple on/off patterns use pinMode() to configure a pin and digitalWrite() to set its state. The examples below are pattern ideas, not a canonical Arduino list. Multi-LED versions require separate outputs and suitable current limiting for each external LED.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
300 Pcs 3mm & 5mm LED Diode Assortment Kit
  • Dual-Size Versatility: Each color (White/Red/Blue/Green/Yellow) includes 20pcs 5mm LEDs and 40pcs 3mm LEDs, totaling 300pcs. Perfect for projects requiring flexibility in size and brightness.
  • Precise Technical Specs: Forward Voltage: Red/Yellow 2.0-2.2V; Blue/Green/White 3.0-3.2V.
  • Wide Application: Ideal for DIY electronics, Arduino/Raspberry Pi projects, PCB circuits, car decorations, science experiments and holiday lights.
  • Organized Storage: Color-coded and size-separated in a labeled plastic case for easy access and protection against damage.
  • Premium Quality: High-conductivity silver-plated pins and durable materials ensure long-lasting performance.

Nine Arduino LED pattern ideas

1. Steady blink

Turn one LED on, wait, turn it off, and wait again. Arduino’s Blink example demonstrates this cycle using digitalWrite() and delay(). Change the wait intervals to make the blink slower or faster.

2. Double flash

Turn the LED on for a short pulse, turn it off briefly, repeat the short pulse, then leave it off for a longer pause. The same digital on/off controls used for a steady blink work here; the pattern comes from changing the sequence and timing.

Rank #2
ELEGOO Electronic Fun Kit Bundle with Breadboard, 235 Items for Arduino
  • BUILD BREADBOARD CIRCUITS AND MINI PROJECTS - Create LED indicators, button inputs, traffic-light sequences, light-activated circuits, RGB effects and buzzer alarms for electronics practice, classroom demonstrations and maker projects
  • 235 PARTS FOR REPEATABLE EXPERIMENTS - Includes a 400-tie-point solderless breadboard, power module, jumper wires, Dupont wires, potentiometer, buttons, LEDs, resistors, capacitors, diodes, transistors, buzzers and light-sensitive components
  • LEARN HOW CORE COMPONENTS WORK - Use the 74HC595 to expand outputs, the 4N35 optocoupler to explore signal isolation, PN2222 transistors to switch loads and 1N4007 diodes for polarity protection and rectification experiments
  • POWER AND REWIRE PROJECTS QUICKLY - Use the breadboard power module for selectable 3.3 V or 5 V rails, while rigid jumpers and female-to-male leads simplify connections; use a suitable 6.5–9 V DC input and do not exceed 9 V
  • COMPONENT KIT WITH CLEAR EXPECTATIONS - A controller board, programming cable and wall power adapter are not included; use a compatible microcontroller for coded projects and follow the current tutorial, datasheets and wiring guidance

3. Slow and fast blink

Keep the same LED and wiring, but use longer intervals for a slow blink and shorter intervals for a fast one. This is an easy way to see how timing alone changes the pattern’s appearance.

4. Alternating pair

Connect two external LEDs to separate output pins, then switch them in opposite phases: while one is on, the other is off. Give each external LED appropriate current limiting. The exact wiring and pin choice depend on the board and circuit.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
California JOS 50 PCS Colorful 5mm LED Light Diodes, LED Circuit Assorted Kit for Science Project Experiment (10pieces/Color)
  • ✅LED polarity: the longer pin is the Anode (positive +), and the shorter pin is the Cathode (negative -).
  • ✅Multi-color: 5 Colors - White/Red/Green/Blue/Yellow, 5 mm LED Diodes Kit with water drop shape round.
  • ✅Forward voltage: B/W:3V-3.2V R/GY:1.8V-2.2V Max. Current: 20 mA
  • ✅Application - These LED lights are perfect for DIY LED Projects, Arduino Projects, STEM Science Experiments, Car Decorations, Signal Indicators, Electronic, and Electrical Experiments, etc.
  • ✅ All LEDs are been packed & QC in the USA. Our business policy:100% satisfaction. Please contact us with any problems anytime through Amazon message. We provide 7-24 service.

5. Chasing sequence

Extend the alternating idea across several LEDs. Turn one on, then move the lit state from one output to the next to create a traveling effect. This is a multi-output adaptation of basic digital control, not a specific sequence documented in the cited Arduino examples.

6. Group blink

Use multiple outputs to turn several LEDs on together, then turn them off together. This produces a simultaneous flash rather than a traveling sequence. Each external LED needs appropriate current limiting.

Rank #4
DiCUNO 450pcs 5mm LED Diode, LED Light Kit Box 5 Colors, for DIY Project
  • Overview: 5mm LED light assortment kit includes 5 colors x 90pcs diodes-handy kit box ready for DIY lighting project. Head Diameter: 5mm Round; Pin Length: 18 mm ( Longer Part: Anode) / 17 mm ( Shorter Part: Cathode).
  • Electrical Parameters: Forward Voltage: Red/Yellow 2.0-2.2V; Blue/Green/White 3.0-3.2V; Max. Current: 20mA; Viewing Angle: 30 degree. Note: Due to varying voltages across different LED colors, please calculate in advance to achieve optimal lighting performance.
  • Wide Application: DiCUNO super bright 5mm LED diodes are widely used in DIY LED Projects, School Science Experiments, Signal Indicators, Car Decorations, Electronic and Electrical Experiments, Breadboard, etc.
  • Luminous Intensity: Red, 2000-3000mcd; Yellow, 3000-4000mcd; Green, 15000-20000mcd; Blue, 3000-4000mcd; White, 12000-14000mcd. Mini LED lights, yet deliver impressive brightness.
  • Wavelength Range: Red, 620-625nm; Yellow, 590-595nm; Green, 520-525nm; Blue, 460-465nm; White, 8000K. 5mm LED 5 Colors-one box offers you multiple and accurate lighting effects.

7. Breathing fade

Gradually raise and lower an LED’s brightness on a PWM-capable output. Arduino’s Fading example uses analogWrite() on pin 9 to increase and decrease brightness. Confirm that your chosen board and pin support PWM before adapting it.

Arduino describes PWM as rapidly switching the output on and off with a changing ratio of on time to off time, producing analog-like behavior. The changing ratio makes the LED appear to dim or brighten.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Smraza 298 Pieces Electronics Starter Kit with Breadboard for Arduino
  • Smraza Electronics Fun Kit - It has all consumable component are often used. Compatible with Arduino and Raspberry Pi, it can almost meet all your needs. Not included controller board.
  • A Breadboard and Power Supply Module -Include a good range of LEDs, resistors, buttons, capacitors, a few transistors and diodes.
  • With jumper wire and Male-female dupont wire to meet your project expetation.
  • All parts components are in a sturdy and nice storage box which can help you keep the components neat after using.
  • With Datasheet and Tutorial - We provide detailed instruction for you to begin your electronic projects, any questions, please contact our customer service.

8. Traffic-light sequence

Use separate outputs for red, yellow, and green LEDs, and give each color a timing stage in the sequence. This is a project idea built from multiple outputs and timed state changes; the cited Arduino pages do not prescribe its wiring or timing.

9. Responsive blink

If the sketch must check inputs or do other work while an LED pattern runs, avoid relying on a long delay(). Arduino’s Blink Without Delay example demonstrates blinking without delay(), making it a better starting point for responsive timing.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choose a pattern by its requirements

Pattern LEDs and outputs Control approach Timing consideration
Steady blink One LED; onboard LED or one external output Digital on/off Timed state changes; a delay-based version blocks other work while waiting
Double flash One LED and output Digital on/off Short pulses followed by a longer pause
Slow and fast blink One LED and output Digital on/off Change the on/off intervals
Alternating pair Two external LEDs and two outputs Opposite digital states Coordinate the two phases
Chasing sequence Several LEDs and outputs Sequential digital states Advance the lit state over time
Group blink Several LEDs and outputs Simultaneous digital states Turn the group on and off together
Breathing fade One LED on a PWM-capable output PWM with analogWrite() Gradually raise and lower brightness
Traffic-light sequence Three LEDs and outputs Timed digital states Coordinate red, yellow, and green stages
Responsive blink One LED and output Digital on/off without delay() Use the Blink Without Delay approach when other work must continue

When to use delay() and when not to

delay() is straightforward for a standalone blink: the sketch waits for the specified interval before continuing. Arduino’s Blink documentation says, “When you use the delay() command, nothing else happens for that amount of time.” That makes it unsuitable for a pattern that must also remain responsive to inputs or perform other work during the wait. For that situation, use Arduino’s Blink Without Delay example as the timing starting point.

More Arduino examples

Arduino’s Built-in Examples index lists related examples, including Blink, Digital Read Serial, Fading a LED, and “Analog Write with 12 LEDs on an Arduino Mega.” The index establishes that these examples are available, but it does not provide implementation details for every pattern described here.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
300 Pcs 3mm & 5mm LED Diode Assortment Kit
300 Pcs 3mm & 5mm LED Diode Assortment Kit
Precise Technical Specs: Forward Voltage: Red/Yellow 2.0-2.2V; Blue/Green/White 3.0-3.2V.
$7.99
Bestseller No. 3
Bestseller No. 5
Smraza 298 Pieces Electronics Starter Kit with Breadboard for Arduino
Smraza 298 Pieces Electronics Starter Kit with Breadboard for Arduino
With jumper wire and Male-female dupont wire to meet your project expetation.
$11.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.