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

Arduino UNO Controlled LED Blinking Circuit

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

Circuit Documentation

Summary of the Circuit

This circuit consists of an Arduino UNO microcontroller used to control six green LEDs. Each LED is connected in series with a 200 Ohm resistor. The LEDs are connected to the digital pins D13, D12, D11, D10, D9, and D8 of the Arduino UNO. The purpose of this circuit is to demonstrate the ability to turn on and off multiple LEDs in a sequence, creating a blinking effect.

Component List

Arduino UNO

LEDs (Green)

Resistors

Wiring Details

Arduino UNO

LEDs (Green)

Resistors

Documented Code

/*
 * Arduino Sketch to control six green LEDs with pull-up resistors.
 * The LEDs are connected to digital pins D13, D12, D11, D10, D9, and D8.
 * Each LED is connected in series with a 200 Ohm resistor.
 */

void setup() {
  // Set pin modes for LED pins
  pinMode(13, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(8, OUTPUT);
  
  // Initialize all LEDs to be off
  digitalWrite(13, HIGH);
  digitalWrite(12, HIGH);
  digitalWrite(11, HIGH);
  digitalWrite(10, HIGH);
  digitalWrite(9, HIGH);
  digitalWrite(8, HIGH);
}

void loop() {
  // Example: Blink all LEDs
  digitalWrite(13, LOW); // Turn on LED connected to D13
  digitalWrite(12, LOW); // Turn on LED connected to D12
  digitalWrite(11, LOW); // Turn on LED connected to D11
  digitalWrite(10, LOW); // Turn on LED connected to D10
  digitalWrite(9, LOW); // Turn on LED connected to D9
  digitalWrite(8, LOW); // Turn on LED connected to D8
  delay(1000); // Wait for 1 second
  
  digitalWrite(13, HIGH); // Turn off LED connected to D13
  digitalWrite(12, HIGH); // Turn off LED connected to D12
  digitalWrite(11, HIGH); // Turn off LED connected to D11
  digitalWrite(10, HIGH); // Turn off LED connected to D10
  digitalWrite(9, HIGH); // Turn off LED connected to D9
  digitalWrite(8, HIGH); // Turn off LED connected to D8
  delay(1000); // Wait for 1 second
}

This code is designed to run on the Arduino UNO microcontroller. It initializes the digital pins D13 to D8 as outputs and sets them to HIGH, which turns off the connected LEDs due to the common ground configuration. In the loop function, the code toggles the state of each LED, creating a blinking effect with a 1-second interval.