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

Arduino UNO Controlled RGB LED Sequence Display

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled RGB LED Sequence Display

Circuit Documentation

Summary of the Circuit

This circuit is designed around an Arduino UNO microcontroller and includes three LEDs (green, blue, and red) each with a corresponding resistor. The purpose of the circuit is to sequentially light up each LED for a short duration and then turn them off in the same order. This is achieved through digital pins D13, D12, and D11 of the Arduino UNO, which are connected to the anodes of the green, blue, and red LEDs, respectively. The cathodes of the LEDs are connected to ground (GND) through 200 Ohm resistors to limit the current through the LEDs.

Component List

Arduino UNO

LED: Two Pin (green)

LED: Two Pin (blue)

LED: Two Pin (red)

Resistor (200 Ohms)

Wiring Details

Arduino UNO

LED: Two Pin (green)

LED: Two Pin (blue)

LED: Two Pin (red)

Resistor (200 Ohms)

Documented Code

// Code for controlling three LEDs with an Arduino UNO
int LED1 = 13; // Green LED connected to pin D13
int LED2 = 12; // Blue LED connected to pin D12
int LED3 = 11; // Red LED connected to pin D11

void setup() {
  // Set LED pins as outputs
  pinMode(LED1, OUTPUT);
  pinMode(LED2, OUTPUT);
  pinMode(LED3, OUTPUT);
}

void loop() {
  // Turn on the green LED
  digitalWrite(LED1, HIGH);
  delay(200); // Wait for 200ms
  // Turn on the blue LED
  digitalWrite(LED2, HIGH);
  delay(200); // Wait for 200ms
  // Turn on the red LED
  digitalWrite(LED3, HIGH);
  delay(200); // Wait for 200ms
  
  // Turn off the green LED
  digitalWrite(LED1, LOW);
  delay(300); // Wait for 300ms
  // Turn off the blue LED
  digitalWrite(LED2, LOW);
  delay(300); // Wait for 300ms
  // Turn off the red LED
  digitalWrite(LED3, LOW);
  delay(300); // Wait for 300ms
}

Note: The code provided has syntax errors with extra periods in the digitalWrite function calls. These should be removed for the code to compile and run correctly.