Arduino — RGB LED Color Mixer
Three pots, one RGB LED — mix any color of the rainbow
Arduino
RGB LED
Potentiometer
analogRead
PWM
What you will learn
- How an RGB LED works (common cathode vs common anode)
- How to mix colors by varying three independent brightness values
- Why each color needs its own current-limiting resistor
What you will need
| Component |
|---|
| 1× Arduino Uno R3 |
| 3× LED (red, green, blue — acts as a 3-channel RGB mixer) |
| 3× 220Ω resistors |
| 3× potentiometers |
| 1× breadboard |
| 10× jumper wires |
Step by step
Take it further
- Add a 4th potentiometer that controls the OVERALL brightness of all three channels (master dimmer).
- Add a button that, when pressed, randomly picks a color (a "mood light" mode).
- Print the current R, G, B values to the Serial Monitor so you can record your favorite mixes as hex codes.
Practise it before you build it
Wire this circuit in the ThinkEdge Learn simulator first. The simulator runs a real Arduino sketch against a modified-nodal-analysis solver, so the LED on screen actually lights when the current is right — no hardware, no burnt components, and a class can try it in a browser.
Related projects
Servo — Knob to AngleTwist to point
LDR — Sunrise Alarm ClockWhen the sun rises, the room wakes up with a soft glow
Arduino Mega — 4-Servo Robot ArmDrive 4 servos at once for a pan-tilt-gripper-tilt arm
Arduino — Potentiometer Tone ControlTurn the knob, hear the pitch change in real time
LDR — Light-Following Robot (Solar Tracker)It always faces the brightest spot
Sound Sensor — VU Meter (5 LEDs)The louder the sound, the more LEDs light up
Guides that use this project
3 guides on the site build this project as part of a longer explanation. The guide says why the circuit works; this page says how to wire it.
ESP32-S3: What Changed and Why It Matters for Class BuildsThe ESP32-S3 adds a native USB port, Bluetooth 5 and vector instructions to the original ESP32. Here is what changed and what it means for class projects.
Raspberry Pi Pico: Why This Microcontroller Is a Teaching BreakthroughThe Raspberry Pi Pico is a 3.3 V microcontroller with programmable I/O and no radios. How its hardware differs from an Arduino Uno, and what to build with it.
Smart Lighting: The Driver, the Controller and the RadioSmart lighting is a driver, a controller and a radio. Learn PWM, current limits, MOSFET switching and flicker, then build a lamp you can query.
Where this project sits
It is also part of these lists, which is how a class usually finds it.
Try the full simulator with your class
103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. One licence covers a whole school.