Arduino New Years LEDs + Potentiometer

by GracenRison in Circuits > Arduino

76 Views, 0 Favorites, 0 Comments

Arduino New Years LEDs + Potentiometer

Arduino Title.png

This Arduino project uses two RGB LEDs to resemble fireworks that go off for New Years. Using the two separate potentiometers each light is able to go dimmer or brighter.

Supplies

For this Arduino setup you will need:
- Arduino

- Breadboard

- 2 kΩ resistors

- 2 potentiometers

- Blue RGB LED

- Red RGB LED

- 4 red cables

- 4 black cables

- 2 green cables

- Yellow cable

- Orange cable

Code

In the code for this Bright Lights New Years Arduino the outputs are the blue and red RGB LEDs and the inputs are the potentiometer. The potentiometer is coded to change the brightness of the LEDs.

Hardware Setup

Arduino Circuit.png

Steps:

1) First, connect a red cable to from power 5V on the Arduino to the furthest positive right hole on the breadboard

2) Connect a black cable from power GND on the Arduino to the negative hold diagonal of the red cable we just connected to the breadboard

3) On the opposite side of the breadboard (so the left side) connect a red cable from furthest left positive hole on the bottom to the furthest left positive hole on the right

4) On the opposite side of the breadboard (so the left side) connect a black cable from furthest left negative hole on the bottom to the furthest left negative hole on the right

5) Take a potentiometer and it place the left leg in hole E4 and the right leg should be in E6

6) Take a second potentiometer and it place the left leg in hole E25 and the right leg should be in E27

7) Place a blue LED in E9 and E10

8) Place a red LED in E20 and E21

9) Place a kΩ resistor in B9 (red end) so the brown end should be in the negative section of the breadboard

10) Place a kΩ resistor in B20 (red end) so the brown end should be in the negative section of the breadboard

11) Take a black cable and put it in D4 and the other end should go vertically down to the negative section of the breadboard

12) Take a green cable and put it in D5 and the other end should go in analog in A1 on the Arduino

13) Take a red cable and put it in D6 and the other end should go vertically down to the positive section of the breadboard

14) Take a black cable and put it in D25 and the other end should go vertically down to the negative section of the breadboard

15) Take a green cable and put it in D26 and the other end should go in analog in A0 on the Arduino

16) Take a red cable and put it in D27 and the other end should go vertically down to the positive section of the breadboard

17) Take a yellow cable and put it in B10 and the other end should go digital 13 on the Arduino

18) Lastly, take an orange cable and put it in B21 and the other end should go digital 12 on the Arduino

Playing the Puzzle

To use this Arduino you have to turn the potentiometers which will then change the brightness of the LED. Each LED has their own potentiometer so they are controlled seprately.