Project 5 · Arduino

Color Mixing Lamp

Mix red, green and blue light with three light sensors.

Easy 45 min 8 components
Color Mixing Lamp wiring diagram

What you'll learn

  • Drive a common-cathode RGB LED with three PWM signals.
  • Read three analog sensors and remap their range with map().
  • Understand additive color mixing in code.

What's in the kit

  • Arduino UNO
  • Breadboard
  • Common-cathode RGB LED
  • 220 Ω resistor×3
  • Photoresistor (LDR)×3
  • 10 kΩ resistor×3
  • Red / Green / Blue colored gel filter×3
  • Jumper wires×12

Protocol: analog