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
- Description: RGB LED strip capable of displaying multiple colors.
- Pins:
- Common Connect
- Blue Connect
- Red Connect
- Green Connect
Power Transformer (220V to 24V)
- Description: Converts 220V AC to 24V DC.
- Pins:
- 1 - Primary
- 2 - Primary
- 3 - Secondary
- 4 - Secondary
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins:
- UNUSED
- IOREF
- Reset
- 3.3V
- 5V
- GND
- Vin
- A0
- A1
- A2
- A3
- A4
- A5
- SCL
- SDA
- AREF
- D13
- D12
- D11
- D10
- D9
- D8
- D7
- D6
- D5
- D4
- D3
- D2
- D1
- D0
Wiring Details
LED RGB Strip
Common Connect:
- Connected to: Power Transformer (220V to 24V) - 3 - Secondary
- Connected to: Other LED RGB Strips - Common Connect
Blue Connect:
- Connected to: Arduino UNO - D4
- Connected to: Other LED RGB Strips - Blue Connect
Red Connect:
- Connected to: Arduino UNO - D3
- Connected to: Other LED RGB Strips - Red Connect
Green Connect:
- Connected to: Arduino UNO - D2
- Connected to: Other LED RGB Strips - Green Connect
Power Transformer (220V to 24V)
3 - Secondary:
- Connected to: LED RGB Strips - Common Connect
4 - Secondary:
- Connected to: Arduino UNO - GND
Arduino UNO
GND:
- Connected to: Power Transformer (220V to 24V) - 4 - Secondary
D2:
- Connected to: LED RGB Strips - Green Connect
D3:
- Connected to: LED RGB Strips - Red Connect
D4:
- Connected to: LED RGB Strips - Blue Connect
Code Documentation
Arduino UNO Code
void setup() {
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
delay(1000);
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
delay(1000);
}
This code initializes the pins connected to the RGB LED strips as outputs and then toggles the LEDs on and off every second.