Project 1: Arduino Blinking LED
(A Beginner's Guide to Arduino)
10/10/20265 min read
1. Introduction
Have you ever wondered how traffic lights change, how toys produce flashing lights, or how electronic devices turn lights on and off automatically?
In this project, you will build your first Arduino circuit and program an LED to blink repeatedly. You will learn how to connect electronic components, write your first Arduino program, and upload it to the Arduino Uno.
This is one of the simplest and most important projects in robotics because it introduces a fundamental concept: making a computer control something in the real world.
By the end of this tutorial, you will have a working blinking LED circuit and understand how the code controls it.
What will you build?
An LED that turns on for one second, turns off for one second, and repeats the process continuously.
2. What You Will Learn
After completing this project, you should be able to:
Understand what an Arduino is and how it works.
Identify an LED, resistor, breadboard, and jumper wires.
Understand the positive and negative terminals of an LED.
Connect a simple electronic circuit.
Write and upload your first Arduino program.
Understand basic programming commands such as pinMode(), digitalWrite(), and delay().
Change the timing of a blinking LED by modifying the code.
3. Components Required
Gather the following components from your Arduino Robotics Kit.
Arduino Uno (1) - Controls the LED
Breadboard (1) - Allows you to build a circuit without soldering
LED (1) - Produces light
220-ohm resistor (1) - Limits current flowing through the LED
Jumper wires (Pin to Pin) (2) - Connect the components
USB cable (1) - Connects the Arduino to a computer and supplies power
Important: You do not need the 9V battery for this project. The USB cable can power the Arduino Uno while you are learning and testing the circuit.














Breadboard
Arduino Uno
1x LED (Any Color)
2x Jumper Wires
(Pin to Pin)
Arduino USB Cable
1x 220 Ohm Resistor
4. Understanding the Components
Before connecting anything, let's understand what each component does.
Arduino Uno
The Arduino Uno is a small programmable board. You can write instructions on a computer and upload them to the board. It then follows those instructions to control electronic components.
For this project, we will use digital pin 8 to control the LED.
LED (Light-Emitting Diode)
An LED is an electronic component that produces light when current flows through it in the correct direction.
An ordinary LED has two legs:
Long leg: Usually the positive (+) side, called the anode.
Short leg: Usually the negative (-) side, called the cathode.
An LED must be connected with the correct polarity to work properly. If it does not light up, check that its legs are connected in the correct direction.
220-ohm resistor
A resistor limits the electrical current flowing through the LED. Without an appropriate resistor, too much current could damage the LED.
For this project, we will use a 220-ohm resistor in series with the LED.
Breadboard
A breadboard allows you to build circuits without soldering. Small holes on the breadboard are connected internally in specific patterns, allowing components and wires to form a circuit.
Jumper wires
Jumper wires connect the Arduino, breadboard, and electronic components.
5. Understanding the Circuit
Before building the circuit, let's understand how electricity will flow.
The circuit will follow this path:
Arduino digital pin 8 → 220-ohm resistor → LED → Arduino GND
When the Arduino sets pin 8 to HIGH, it supplies a voltage that allows current to flow through the resistor and LED to ground. The LED turns on.
When the Arduino sets pin 8 to LOW, the voltage at that output drops, and the LED turns off.
The Arduino will repeat these two actions using a program.
6. Step-by-Step Circuit Assembly
Follow these instructions carefully. Make sure the Arduino is disconnected from USB power while you are assembling or changing the circuit.
Step 1: Place the LED on the breadboard
Insert the LED into the breadboard. Ideally, place its two legs in separate connected rows so that they do not make an unintended direct connection.
Remember:
The long leg is the anode (+).
The short leg is the cathode (-).
Step 2: Connect the resistor
Connect one end of the 220-ohm resistor to the same breadboard row as the LED's long leg.
The resistor's other end should be connected to an unused row.
Step 3: Connect digital pin 8
Use a jumper wire to connect Arduino digital pin 8 to the free end of the resistor.
This allows the Arduino to control the LED through the resistor.
Step 4: Connect the LED to ground
Use another jumper wire to connect the breadboard row containing the LED's short leg to a GND pin on the Arduino.
Your circuit should now have the following connections:
Arduino digital pin 8 → One end of the resistor
Other end of the resistor → LED long leg (anode)
LED short leg (cathode) → Arduino GND
Step 5: Check your connections
Before supplying the power, check the following:
The resistor is connected in series with the LED.
The LED's long leg is connected toward pin 8 through the resistor.
The LED's short leg is connected to GND.
No wires or component legs are accidentally shorting the circuit.


Your circuit is now ready for programming
7. Setting Up the Arduino Software
Now that the circuit is assembled, you need to write a program that tells the Arduino when to turn the LED on and off.
We will use the Arduino IDE, which is the software used to write and upload programs to Arduino boards.
Step 1: Install the Arduino IDE
Open the official Arduino software website:
https://www.arduino.cc/en/software
Download and install the Arduino IDE version suitable for your computer.
Step 2: Connect your Arduino
Connect the Arduino Uno to your computer using the USB cable.
The board should receive power, and the power indicator LED should light up.
Step 3: Select the correct board
Open the Arduino IDE.
From the board selection menu, select Arduino Uno. Depending on your IDE version, this may appear under the board selector or the Tools menu.
Step 4: Select the correct port
Select the serial port associated with your Arduino.
On Windows, it usually appears as a COM port, such as COM3 or COM4. The actual number may differ.
If no port appears, check the USB cable, reconnect the board, and check whether your computer recognizes it.
8. Writing Your First Arduino Program
Create a new sketch in the Arduino IDE. Remove any existing code and enter the following program.
This is the complete program. You do not need to add anything else for the basic project.
Step 1: Verify the code
Click the Verify button, usually represented by a checkmark.
The IDE will check your program for compilation errors.
Step 2: Upload the code
Click the Upload button, usually represented by a right-facing arrow.
Wait for the upload process to finish. If everything is connected and configured correctly, the program will start running automatically.
Step 3: Observe your LED
Your external LED should now:
Turn on.
Stay on for one second.
Turn off.
Stay off for one second.
Repeat the sequence continuously.
Congratulations! You have built and programmed your first Arduino project.
CONTACT US
WhatsApp: +92 313 8444618
WhatsApp: +92 310 4166 312
Shipping worldwide from Lahore, Pakistan
Copyright © 2026 BrixBotics - All rights reserved.
Real hardware engineering for young minds.


