Introduction: Color-Changing Mood Light
Create a relaxing smart lamp that automatically adjusts brightness based on your room’s light level. As it gets darker, the lamp glows brighter — slowly cycling through calming colors. Perfect for bedrooms, workspaces, or ambient night lights!
Supplies
- Arduino Uno
- RGB LEDs
- 220Ω Resistors
- 10KΩ Resistor
- LDR (Light Sensor)
- Breadboard
- Jumper wires
- USB Cable
- Paper Cube (optional)
Step 1: Build the LDR Circuit
Insert the LDR on the breadboard.
Connect one leg to 5V.
Connect the other leg to A0 on the Arduino.
Add a 10KΩ resistor from that same leg to GND.
Step 2: Wire RGB LEDs in Pairs
Group the LEDs into 2 pairs (1 & 2, 3 & 4).
Connect all Red pins in a pair together → resistor → PWM pin.
Repeat for Green and Blue.
Connect all cathodes to GND.
Step 3: Upload the Code
Open the Arduino IDE.
Paste the code below.
Select your board and port.
Click Upload.
Attachments
Step 4: Add a Paper Cube Diffuser (Optional)
Print a paper cube template (search “printable cube net”).
Cut and fold into a cube shape.
Leave one face open.
Slide the cube over the LEDs to soften and blend the light.







