Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Controlled Blinking LED Circuit

Image of Arduino UNO Controlled Blinking LED Circuit

Circuit Documentation

Summary of the Circuit

This circuit consists of an Arduino UNO microcontroller, a red two-pin LED, a resistor, and a 9V battery. The Arduino UNO is used to control the LED, turning it on and off with a digital output pin. The resistor is used to limit the current flowing through the LED to prevent damage. The 9V battery provides the power source for the circuit.

Component List

LED: Two Pin (red)

  • Description: A red light-emitting diode (LED) with two pins: anode and cathode.
  • Purpose: To emit light when powered.

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Purpose: To control the LED and provide power distribution.

Resistor

  • Description: A passive two-pin component with a resistance value.
  • Properties: 200 Ohms resistance.
  • Purpose: To limit the current through the LED.

9V Battery

  • Description: A standard 9V battery with positive and negative terminals.
  • Purpose: To provide a power source for the circuit.

Wiring Details

LED: Two Pin (red)

  • Cathode: Connected to the GND pin of the Arduino UNO.
  • Anode: Connected to one pin of the resistor.

Arduino UNO

  • GND: Connected to the cathode of the LED and the negative terminal of the 9V battery.
  • Vin: Connected to the positive terminal of the 9V battery.
  • D7: Connected to the other pin of the resistor.

Resistor

  • Pin1: Connected to the anode of the LED.
  • Pin2: Connected to digital pin D7 of the Arduino UNO.

9V Battery

  • Negative Terminal (-): Connected to the GND pin of the Arduino UNO.
  • Positive Terminal (+): Connected to the Vin pin of the Arduino UNO.

Documented Code

sketch.ino

void setup() {
  pinMode(7, OUTPUT); // Set digital pin 7 (D7) as an output
}

void loop() {
  digitalWrite(7, HIGH); // Turn the LED on (HIGH is the voltage level)
  delay(1000);           // Wait for a second (1000 milliseconds)
  digitalWrite(7, LOW);  // Turn the LED off by making the voltage LOW
  delay(1000);           // Wait for a second
}

This code is written for the Arduino UNO microcontroller. It initializes digital pin 7 (D7) as an output in the setup() function. In the loop() function, it turns the LED on and off with a one-second interval between each state change. The digitalWrite() function is used to set the voltage level of pin D7 to HIGH or LOW, which in turn controls the LED connected through the resistor.