0% found this document useful (0 votes)
5 views

LED_Blinking_Using_Arduino

The document outlines a project to make an LED blink using an Arduino board, detailing the materials required, including an Arduino Uno, LED, resistor, breadboard, jumper wires, and a USB cable. It provides a circuit diagram and Arduino code to control the LED, along with troubleshooting tips for common issues like the LED not blinking or problems with code upload. The project serves as a basic introduction to using microcontrollers for controlling electronic components.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

LED_Blinking_Using_Arduino

The document outlines a project to make an LED blink using an Arduino board, detailing the materials required, including an Arduino Uno, LED, resistor, breadboard, jumper wires, and a USB cable. It provides a circuit diagram and Arduino code to control the LED, along with troubleshooting tips for common issues like the LED not blinking or problems with code upload. The project serves as a basic introduction to using microcontrollers for controlling electronic components.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

LED BLINKING USING ARDUINO

Objective:

To make an LED blink on and off at a regular interval using an Arduino board.

Materials Required

1. Arduino Uno (or any compatible board): The Arduino Uno serves as the brain of
the project. It controls the LED by sending high or low voltage signals to a specific pin
based on the uploaded code.

2. LED (Light Emitting Diode)

Description:
An LED is a semiconductor device that emits light when an electric current passes
through it. It has two terminals:

 Anode (+): Long leg, connected to the positive voltage.


 Cathode (-): Short leg, connected to ground.

Key Features:

 Low power consumption


 Bright and efficient light output
 Available in various colors (red, green, blue, white, etc.)

Purpose in the Project:


The LED acts as an indicator. It blinks on and off based on the signals sent by the
Arduino, visually demonstrating how the microcontroller controls outputs.

3. Resistor (220-ohm): The resistor limits the current flowing through the LED, ensuring
it operates safely without overheating or burning out.
4. Breadboard:

Description:
A breadboard is a prototyping tool that allows you to connect and test electronic
components without soldering. It has a grid of interconnected holes for inserting wires
and components.

Key Features:

 Rows and columns with internal connections


 Easy-to-use for temporary circuits
 Reusable
Purpose in the Project: The breadboard provides a platform to connect the LED,
resistor, and Arduino without soldering, making the setup quick and adjustable.

This Photo by Unknown Author is licensed under CC BY-SA

5. Jumper Wires: Jumper wires connect the Arduino pins, breadboard, resistor, and
LED, completing the circuit.

6. USB Cable: The USB cable powers the Arduino during programming and transfers the
code from the Arduino IDE to the microcontroller.

Circuit Diagram

1. Connect the long leg (anode) of the LED to one end of the 220-ohm resistor.
2. Connect the other end of the resistor to pin 13 on the Arduino.
3. Connect the short leg (cathode) of the LED to the GND pin on the Arduino.
4. Ensure all connections are tight and secure.
Arduino Code:

// Define the pin where the LED is connected

const int ledPin = 13;

void setup() {

// Set the LED pin as an output

pinMode(ledPin, OUTPUT);

void loop() {

// Turn the LED on

digitalWrite(ledPin, HIGH);

delay(1000); // Wait for 1 second

// Turn the LED off

digitalWrite(ledPin, LOW);

delay(1000); // Wait for 1 second

}
Troubleshooting

1. LED Not Blinking:


o Check if the LED is connected in the correct polarity (long leg = positive).
o Verify the resistor and connections.
2. No Upload:
o Ensure the correct board and port are selected in the Arduino IDE.
o Restart the Arduino IDE or press the reset button on the board.

You might also like