Color-Changing Mood Light
.jpg)
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)
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.
Wire RGB LEDs in Pairs

.jpg)
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.
Upload the Code
Open the Arduino IDE.
Paste the code below.
Select your board and port.
Click Upload.
Downloads
Add a Paper Cube Diffuser (Optional)
.jpg)
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.