LED_Blinking_Using_Arduino
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.
Description:
An LED is a semiconductor device that emits light when an electric current passes
through it. It has two terminals:
Key Features:
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:
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:
void setup() {
pinMode(ledPin, OUTPUT);
void loop() {
digitalWrite(ledPin, HIGH);
digitalWrite(ledPin, LOW);
}
Troubleshooting