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

Arduino-Controlled RGB LED Strip Lighting System with 220V to 24V Power Transformer

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled RGB LED Strip Lighting System with 220V to 24V Power Transformer

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller controlling multiple RGB LED strips. The RGB LED strips are powered by a 24V power transformer, and the Arduino UNO is used to control the color of the LEDs by sending signals to the respective color pins (Red, Green, Blue).

Component List

LED RGB Strip

Power Transformer (220V to 24V)

Arduino UNO

Wiring Details

LED RGB Strip

Power Transformer (220V to 24V)

Arduino UNO

Code Documentation

Arduino UNO Code

void setup() {
  pinMode(2, OUTPUT); // Green
  pinMode(3, OUTPUT); // Red
  pinMode(4, OUTPUT); // Blue
}

void loop() {
  // Example: Turn on all colors
  digitalWrite(2, HIGH); // Green
  digitalWrite(3, HIGH); // Red
  digitalWrite(4, HIGH); // Blue
  delay(1000); // Wait for 1 second

  // Example: Turn off all colors
  digitalWrite(2, LOW); // Green
  digitalWrite(3, LOW); // Red
  digitalWrite(4, LOW); // Blue
  delay(1000); // Wait for 1 second
}

This code initializes the pins connected to the RGB LED strips as outputs and then toggles the LEDs on and off every second.