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 consists of an Arduino UNO microcontroller board and a two-pin red LED. The Arduino UNO is programmed to control the LED, turning it on and off at one-second intervals. The LED's anode is connected to a digital output pin (D13) on the Arduino, and the cathode is connected to the ground (GND) pin on the Arduino, completing the circuit.

Component List

Arduino UNO

LED: Two Pin (red)

Wiring Details

Arduino UNO

LED: Two Pin (red)

Documented Code

// Filename: sketch.ino

void setup() {
  pinMode(13, OUTPUT); // Set pin D13 as an output
}

void loop() {
  digitalWrite(13, HIGH); // Turn the LED on
  delay(1000);            // Wait for a second
  digitalWrite(13, LOW);  // Turn the LED off
  delay(1000);            // Wait for a second
}

This code is written for the Arduino UNO microcontroller. In the setup() function, pin D13 is configured as an output. The loop() function then creates an infinite loop that turns the LED on by setting D13 high, waits for one second, turns the LED off by setting D13 low, and then waits for another second. This cycle repeats indefinitely, causing the LED to blink on and off every second.