Atmospheric Light: RGB LED Color Cycle
The RGB LED Color Cycle project is a beautiful introduction to PWM (Pulse Width Modulation) and color theory. By blending Red, Green, and Blue light at different intensities, you can create any color in the rainbow.

How It Works: Color Mixing
An RGB LED is actually three LEDs in one single housing. By changing the brightness of each internal LED using the analogWrite() function (values from 0 to 255), the Arduino MIXES them:
- Red + Green = Yellow
- Red + Blue = Magenta
- Blue + Green = Cyan
- Full Red + Green + Blue = White
Hardware List
- Arduino Uno/Nano: To provide PWM signals.
- Common Cathode RGB LED: The light source.
- 220-ohm Resistors (x3): Crucial for protecting each color channel.
- Breadboard and Jumper Wires.

Coding the "Fading" Effect
The most impressive part of this project is the Smooth Rainbow Cycle. Instead of jumping from red to green, the code use for loops to slowly increase one color while decreasing another. This creates a professional ambient lighting effect similar to high-end gaming setups or smart mood lamps.