---
title: "Arduino RGB Color Mixer"
url: "https://maker.wiznet.io/abdul/projects/Arduino-RGB-Color-Mixer/"
markdown_url: "https://maker.wiznet.io/abdul/projects/Arduino-RGB-Color-Mixer/md"
type: "UCC: User Created Content"
author: "abdul"
author_url: "https://maker.wiznet.io/abdul/"
original_author: "abdul"
original_url: "https://create.arduino.cc/projecthub/FIELDING/arduino-rgb-color-mixer-b81863?ref=tag&ref_id=beginner&offset=5"
published: "2022-02-28"
language: "en"
hardware: ["Arduino UNO", "RGB LED", "Rotary Potentiometer", "resistor 10k ohm", "Breadboard", "Jumperwires"]
likes: 0
views: 121
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Arduino RGB Color Mixer

> Arduino RGB Color Mixer

Original author: abdul (source: https://create.arduino.cc/projecthub/FIELDING/arduino-rgb-color-mixer-b81863?ref=tag&ref_id=beginner&offset=5)

## Components

- **Arduino UNO** x 1 ([docs](https://www.farnell.com/datasheets/1682209.pdf))
- **RGB LED** x 1
- **Rotary Potentiometer** x 3
- **resistor 10k ohm** x 1
- **Breadboard** x 1
- **Jumperwires** x 1
- Software: **Arduino IDE** ([docs](https://www.arduino.cc/en/software))

## Documents and links

- [RGB Colour Mixer](http://maker.wiznet.io/uploads/2022/02/rgb_color_mixer.c) (code)
- RGB Colour Mixer (schematics)

## Article

**What is does:**?This simple circuit combines three potentiometers to set the brightness for each of the red, green and blue LED's inside an RGB LED. A pushbutton switch is added an an extra feature to turn the circuit on and off. How to build: The RGB Led is wired to PMW pins 9, 10 and 11 on the Arduino. The pushbutton is connected to pin 7 and the 3 potentiometers to A0, A1 and A2. Remember to add a 10K ohm pull up resistor to the ground connection on the pushbutton. For an explanation as to how this works, check out here https://playground.arduino.cc/CommonTopics/PullUpDownResistor Also make sure to connect 3 220 ohm resistor's between the LED and the output pins, this will ensure your LED does not burn out. The value of each Potentiometer is printed to the serial monitor, so if you are fiddling with the LED and find a color you like, you can record the RGB value to use later. Once you have the circuit wired up and the sketch uploaded, try turning the knobs on the potentiometers. Nothing should happen at first until you hit the button. Now try turning the knobs again. The led should now light up. Time to play with light! Remember RGB light is not like mixing paint. when all the potentiometers are on full, the light should be white. Try leaving one of the potentiometers off or very low, and varying the other two. An extension to this project would be to hard code some RBG values for particular colours you like, and add some more push buttons which, when pressed, would set the RGB LED to those colours.

---

Source: https://maker.wiznet.io/abdul/projects/Arduino-RGB-Color-Mixer/
