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

Arduino UNO Controlled RGB LED Blinker

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

Circuit Documentation

Summary of the Circuit

This circuit is designed to control three LEDs (red, green, and blue) using an Arduino UNO microcontroller. Each LED is connected to a digital output pin on the Arduino (D13 for red, D12 for green, and D11 for blue) and is in series with a 200 Ohm resistor to ground. The purpose of the circuit is to rapidly turn the LEDs on and off in a sequence, creating a blinking effect.

Component List

Arduino UNO

Resistor (200 Ohms)

LED: Two Pin (red)

LED: Two Pin (green)

LED: Two Pin (blue)

Wiring Details

Arduino UNO

Resistor (200 Ohms)

LED: Two Pin (red)

LED: Two Pin (green)

LED: Two Pin (blue)

Documented Code

/*
 * This Arduino sketch controls three LEDs (red, green, blue) connected to
 * digital pins D13, D12, and D11 respectively. Each LED is connected in
 * series with a 200 Ohm resistor to ground. The sketch will light up the
 * LEDs rapidly in a loop.
 */

// Pin definitions
const int redLEDPin = 13;
const int greenLEDPin = 12;
const int blueLEDPin = 11;

void setup() {
  // Initialize the LED pins as outputs
  pinMode(redLEDPin, OUTPUT);
  pinMode(greenLEDPin, OUTPUT);
  pinMode(blueLEDPin, OUTPUT);
}

void loop() {
  // Turn on all LEDs
  digitalWrite(redLEDPin, HIGH);
  digitalWrite(greenLEDPin, HIGH);
  digitalWrite(blueLEDPin, HIGH);
  delay(100); // Wait for 100 milliseconds

  // Turn off all LEDs
  digitalWrite(redLEDPin, LOW);
  digitalWrite(greenLEDPin, LOW);
  digitalWrite(blueLEDPin, LOW);
  delay(100); // Wait for 100 milliseconds
}

Filename: sketch.ino

This code is designed to run on an Arduino UNO microcontroller. It initializes three digital pins as outputs to control the red, green, and blue LEDs. In the main loop, it turns on all the LEDs for 100 milliseconds, then turns them off for another 100 milliseconds, creating a blinking effect.