Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Controlled Blinking LED Circuit

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Blinking LED Circuit

Circuit Documentation

Summary of the Circuit

This circuit is designed to control an LED using an Arduino UNO microcontroller. The LED is connected to one of the digital pins of the Arduino (D13) and is turned on and off in an alternating pattern to create a blinking effect. A resistor is included in series with the LED to limit the current and protect the LED from damage.

Component List

Resistor

LED: Two Pin (red)

Arduino UNO

Wiring Details

Resistor

LED: Two Pin (red)

Arduino UNO

Documented Code

The following code is written for the Arduino UNO microcontroller to control the blinking of the LED:

// Define the LED pin
const int kPinLed = 13;

// The setup function runs once when you press reset or power the board
void setup() {
  // Initialize digital pin D13 as an output.
  pinMode(kPinLed, OUTPUT);
}

// The loop function runs over and over again forever
void loop() {
  // Turn the LED on (HIGH is the voltage level)
  digitalWrite(kPinLed, HIGH);
  // Wait for a half second (500 milliseconds)
  delay(500);
  // Turn the LED off by making the voltage LOW
  digitalWrite(kPinLed, LOW);
  // Wait for a half second
  delay(500);
}

This code sets up the Arduino UNO to output a high voltage to pin D13, turning the LED on, and then a low voltage, turning the LED off, with a 500-millisecond delay between each state change, creating a blinking effect.