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

Arduino UNO LED Blinker with Dual Red LEDs

View and Edit Project In Cirkit DesignerImage of Arduino UNO LED Blinker with Dual Red LEDs

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, two red LEDs, and a resistor. The Arduino UNO controls the LEDs, making them blink alternately. The resistor is used to limit the current flowing through the LEDs to prevent damage.

Component List

Arduino UNO

Resistor

LED: Two Pin (red)

LED: Two Pin (red)

Wiring Details

Arduino UNO

Resistor

LED: Two Pin (red)

LED: Two Pin (red)

Code Documentation

Arduino UNO Code

void setup() {
  // Initialize digital pins D13 and D8 as outputs
  pinMode(13, OUTPUT);
  pinMode(8, OUTPUT);
}

void loop() {
  // Turn on LED connected to D13 and turn off LED connected to D8
  digitalWrite(13, HIGH);
  digitalWrite(8, LOW);
  delay(500); // Wait for 500 milliseconds

  // Turn off LED connected to D13 and turn on LED connected to D8
  digitalWrite(13, LOW);
  digitalWrite(8, HIGH);
  delay(500); // Wait for 500 milliseconds
}

This code initializes the digital pins D13 and D8 as outputs. In the main loop, it alternates turning on and off the LEDs connected to these pins with a delay of 500 milliseconds.