Introduction
In this Arduino tutorial, we will learn to make a Decoration Series using Arduino Uno R3 with LEDs. In this project, the LEDs of five different colours will blink simultaneously after a particular period of time.
This project can be used for various festivals for decoration purposes like Diwali, Christmas, New year, etc.
The components can be purchased online or from any electronics centre for physical projects.
For the online projects, the TinkerCad website can be used.
Supplies
To do this Decoration Series using Arduino with LEDs, we will require the following components:
Components
- Arduino Uno R3
- 5 LEDs (Green, Red, Blue, White, and Yellow)
- 1 Small Breadboard
- 1 Green wire
- 7 Black wires
- 1 Yellow wire
- 1 Red wire
- 1 Blue wire
- 1 White wire
Circuit Diagram
Steps To Create Decoration Series Using Arduino with LEDs
Step 1: Gather all the components on the Digital Board or Physical Table.
Step 2: Place all three LEDs on BreadBoard.
Step 3: Connect the Anode part of the LEDs to the Arduino using three coloured wires to pin numbers 12,9,7,4 and 1 of Arduino, respectively.
Step 4: Connect the cathode part of all three LEDs to the grounding of the Arduino Uno using black coloured wire.
Step 5: The circuit is ready, input the source code and switch on the Arduino to run it.
Source Code
void setup() { pinMode(12, OUTPUT); pinMode(9, OUTPUT); pinMode(7, OUTPUT); pinMode(4, OUTPUT); pinMode(1, OUTPUT); } void loop() { digitalWrite(12, HIGH); delay(100); digitalWrite(12, LOW); digitalWrite(9, HIGH); delay(100); digitalWrite(9, LOW); digitalWrite(7, HIGH); delay(100); digitalWrite(7, LOW); digitalWrite(4, HIGH); delay(100); digitalWrite(4, LOW); digitalWrite(1, HIGH); delay(100); digitalWrite(1, LOW); }
Explanation of the Code
We need to input the code to make the Decoration Series using Arduino with LEDs.
For this, we have used two functions, namely, setup() and loop().
The setup function is used to declare from which LED pin number we are producing the output.
In the loop function, we are producing the output as high for each pin number for some amount of time using the delay function. And thereafter, making it low.
The delay will fix the time period till which the LED will glow. The time is in milliseconds.
Output
We will get the following output on the successful completion of the Decoration Series using Arduino with LEDs project.
The LEDs will glow as per the delay function, just one after the other.

Meerali’s expertise lies in building Arduino projects from scratch. She has a vast knowledge of the various sensors, actuators, and other electronic components that can be used with Arduino boards. Meerali is also skilled in programming languages like C++, Python, and Java, which are commonly used to program Arduino boards.
0 Comments