RGB LEDs With Potentiometers
This circuit consists of 4 RGBs and 3 potentiometers that blink with an Arduino code. The potentiometers make it possible for the RGBs to change brightness and color.
We started with the circuit for a blinking LED which was then evolved into what we have here.
Supplies
- (1) Bread Board
- (1) Arduino Board
- (1) Type Mini B cord
- (3) Potentiometers
- (4) RGB LEDs
- (4) Resistors
- (21) Wires
- App - Arduino IDE
LEDs, Resistors, and Potentiometers
NOTE: The 1st port is for the most left leg and the 2nd port is for the most right leg
(All parts are listed starting from the left side of the images)
LEDs:
- RGB 1 = h1 to h3
- RGB 2 = h8 to h11
- RGB 3 = h20 to h23
- RGB 4 = h26 to h29
Resistors:
The leg of the resistor should align with the longest leg of the RGBs
- Resistor 1 = d2, f2
- Resistor 2 = d9, f9
- Resistor 3 = d21, f21
- Resistor 4 = d27, f27
Potentiometers:
- Pot 1 = i5 to i7
- Pot 2 = i12 to i14
- Pot 3 = i17 to i19
Wiring of RGB 1
The wires used in all the images correspond with the same colored wires as in the Tinkercad schematic. If the picture is too hard to read then please refer to the schematic. (This applies for all wires *except* the Arduino Wires)
For RGB 1, the wires go with the following ports:
Green - h4 to h17
Red - g1 to f5
Blue - g3 to h12
Wiring of RGB 2
Red - h5 to g8
Blue - g10 to g12
Wiring of RGB 3
Green - g14 to g23
Blue - h19 to g22
Wiring of RGB 4
Green - g19 to g29
Blue - h14 to g28
Negative Wires
One terminal of the wire should go to the following ports:
- Wire 1 = a1
- Wire 2 = a9
- Wire 3 = a21
- Wire 4 = a27
The other terminal of the wire should connect to the Negative ports of the bread board that line up with their "a" ports.
Positive Wires
One terminal of the wire should go to the following ports:
- Wire 1 = h6
- Wire 2 = h13
- Wire 3 = h18
The other terminal of the wire should connect to the Positive ports of the bread board that line up with their "h" ports.
Arduino Wires
Positive wire (red) connects "8" on the Arduino to farthest right port in the positive line of ports
Negative wire (black) connects "GND" on the Arduino to farthest right port in the negative line of ports
Arduino Code
Copy the following code into an Arduino sketch in order to operate this circuit. Read the comments to understand what each line does. Here is a link to the code we referenced to create our code: Example Code
---------------------------------------------------------------------------------------------
Have Fun With the Circuit
The file below is a video of the possible things you could do with the potentiometers and RGBs. Have fun and thanks for following along!
Credits: Connor, Allyson, Maeven, Keanu, and Jessica