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, a red two-pin LED, and a resistor. The purpose of the circuit is to blink the LED on and off at a regular interval of one second. The Arduino UNO is programmed to control the LED's state using one of its digital pins. The resistor is used to limit the current flowing through the LED to prevent damage.

Component List

Arduino UNO

LED: Two Pin (red)

Resistor

Wiring Details

Arduino UNO

LED: Two Pin (red)

Resistor

Documented Code

// Code for Arduino UNO to blink an LED

int led = 7; // LED connected to digital pin 7

void setup() {
  pinMode(led, OUTPUT); // Initialize the digital pin as an output
}

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

File Name: sketch.ino

This code sets up the Arduino UNO to blink an LED connected to pin D7. The setup() function initializes pin D7 as an output. The loop() function turns the LED on and off with a one-second delay between each state change, creating a blinking effect.