Arduino UNO-Based Smart RGB LED Strip Controller with Servo Motors and Color Sensor
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, various sensors, actuators, and power management components. The circuit is designed to control servos, read data from a color sensor, and manage an RGB LED strip. Power is supplied through a 220V to 12V transformer and regulated using an LM2596 voltage regulator.
Component List
Arduino UNO
- Description: 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
Power 220V
- Description: 220V AC power source.
- Pins: hot wire, neutral wire
LM2596
- Description: DC-DC buck converter for voltage regulation.
- Pins: IN, OUT
Transformer 220V TO 12V POWER CONVERTER
- Description: Converts 220V AC to 12V DC.
- Pins: Live, Neutral, Vout +, Vout -
Bridge Rectifier
- Description: Converts AC to DC.
- Pins: Source_in-, source_out-, source_out+, source_in+
TCS3200
- Description: Color sensor.
- Pins: GND, OUT, S2, S3, VCC, LED, S0, S1
LED RGB Strip
- Description: RGB LED strip for lighting.
- Pins: Common Connect, Blue Connect, Red Connect, Green Connect
Photodiode
- Description: Light sensor.
- Pins: cathode, anode
Mosfet
- Description: Transistor for switching.
- Pins: Gate, Drain, Source
Servo
- Description: Servo motor for precise control.
- Pins: GND, VCC, PWM
Ceramic Capacitor
- Description: Capacitor for filtering.
- Pins: pin0, pin1
- Properties: Capacitance: 0.0000001 Farads
Wiring Details
Arduino UNO
- 5V: Connected to VCC of Servo, VCC of Servo, VCC of TCS3200, pin0 of Ceramic Capacitor, pin0 of Ceramic Capacitor
- GND: Connected to GND of Servo, GND of Servo, pin1 of Ceramic Capacitor, pin1 of Ceramic Capacitor, OUT of LM2596, cathode of Photodiode, GND of TCS3200
- Vin: Connected to OUT of LM2596
- D12: Connected to S1 of TCS3200
- D11: Connected to PWM of Servo
- D10: Connected to PWM of Servo
- D9: Connected to LED of TCS3200
- D8: Connected to OUT of TCS3200
- D7: Connected to S3 of TCS3200
- D6: Connected to Gate of Mosfet
- D5: Connected to Gate of Mosfet
- D4: Connected to S2 of TCS3200
- D3: Connected to Gate of Mosfet
- D2: Connected to anode of Photodiode
Power 220V
- hot wire: Connected to Live of Transformer 220V TO 12V POWER CONVERTER
- neutral wire: Connected to Neutral of Transformer 220V TO 12V POWER CONVERTER
LM2596
- IN: Connected to source_out+ of Bridge Rectifier, source_out- of Bridge Rectifier
- OUT: Connected to GND of Arduino UNO, Vin of Arduino UNO
Transformer 220V TO 12V POWER CONVERTER
- Live: Connected to hot wire of Power 220V
- Neutral: Connected to neutral wire of Power 220V
- Vout +: Connected to source_in+ of Bridge Rectifier, Common Connect of LED RGB Strip
- Vout -: Connected to Source of Mosfet, Source of Mosfet, Source of Mosfet, Source_in- of Bridge Rectifier
Bridge Rectifier
- Source_in+: Connected to Vout + of Transformer 220V TO 12V POWER CONVERTER, Common Connect of LED RGB Strip
- Source_in-: Connected to Source of Mosfet, Source of Mosfet, Source of Mosfet, Vout - of Transformer 220V TO 12V POWER CONVERTER
- source_out+: Connected to IN of LM2596
- source_out-: Connected to IN of LM2596
TCS3200
- GND: Connected to GND of Arduino UNO, cathode of Photodiode
- OUT: Connected to D8 of Arduino UNO
- S2: Connected to D4 of Arduino UNO
- S3: Connected to D7 of Arduino UNO
- VCC: Connected to 5V of Arduino UNO
- LED: Connected to D9 of Arduino UNO
- S1: Connected to D12 of Arduino UNO
LED RGB Strip
- Common Connect: Connected to source_in+ of Bridge Rectifier, Vout + of Transformer 220V TO 12V POWER CONVERTER
- Blue Connect: Connected to Drain of Mosfet
- Red Connect: Connected to Drain of Mosfet
- Green Connect: Connected to Drain of Mosfet
Photodiode
- cathode: Connected to GND of Arduino UNO, GND of TCS3200
- anode: Connected to D2 of Arduino UNO
Mosfet
- Gate: Connected to D6 of Arduino UNO, D5 of Arduino UNO, D3 of Arduino UNO
- Drain: Connected to Blue Connect of LED RGB Strip, Red Connect of LED RGB Strip, Green Connect of LED RGB Strip
- Source: Connected to Source of Mosfet, Source of Mosfet, Source_in- of Bridge Rectifier, Vout - of Transformer 220V TO 12V POWER CONVERTER
Servo
- GND: Connected to GND of Arduino UNO
- VCC: Connected to 5V of Arduino UNO
- PWM: Connected to D11 of Arduino UNO, D10 of Arduino UNO
Ceramic Capacitor
- pin0: Connected to 5V of Arduino UNO
- pin1: Connected to GND of Arduino UNO
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)