Home › Projects › Arduino RGB colour mixer: three knobs, one RGB LED

Arduino RGB colour mixer: three knobs, one RGB LED

by Zen Circuit Lab · published today · 0 opened in the lab · 0 page views

Arduino RGB colour mixer: three knobs, one RGB LED: the circuit on the lab bench

Open in the lab ▸Make my own copy

Three potentiometers mix red, green and blue on one RGB LED, each colour through its own 220 Ω resistor. analogRead gives 0 to 1023; divided by 4 that is the 0 to 255 analogWrite wants. Red and blue make purple, red and green make yellow, all three make white. Open it and press Run: the sketch is inside the board (click the board, then Code). Every part, pin and resistor matches what you would build on a real breadboard; the guided build of the same name has the test sheet and hidden faults.

What is on the bench

9 parts, 17 wires, with a sketch (the program runs in the lab). Boards: Arduino Uno R3.

Potentiometer3
Resistor3
Arduino Uno R31
USB charger / port1
RGB LED1

Put it on your page

The project runs live inside the frame: readers can press buttons, turn knobs and read the meters.

<iframe src="https://zencircuitlab.com/embed/zclcrgb" width="100%" height="560" style="border:1px solid #2f363a;border-radius:10px" loading="lazy" title="Arduino RGB colour mixer: three knobs, one RGB LED on Zen Circuit Lab"></iframe>

Link

https://zencircuitlab.com/p/zclcrgb

Published by its author under the lab's community terms: it may be opened, copied and changed by anyone. Simulation results are for learning; check a real build against the parts' datasheets.