Introduction: Christmas Light

Christmas is one of my favorite holidays, the snow, the lights, Santa, gifts! It's just amazing. My dream is to see snow during Christmas, with all the colorful lights in the snow. So, in this project, I'm going to show you how to add LED lights to paintings.

code:https://create.arduino.cc/editor/viennachen/6bc56c88-7418-4638-a2e4-d8124747dd80

Supplies

1. USB cable

2. Bread Board

3. Multiply wires (depends on how many lights you use)

4. LED lights ( All colors are fine)

5. A box

6. Acrylic Paint

Step 1: Step 1: Prepare Materials

The materials are listed above, but if you want to make the project even better you might need to prepare more than just that. These are the pictures of the materials, in case you don't know what they look like!!

Step 2: Step 2: Arrange the Wires and the Lights

Attach the wires and the lights and buttons as in the pictures.

1. 5V connect to positive

2. GND connect to negative

3. Positive to button to resistance to negative

4. D pin to light to resistance to negative

5. Repeat step 4 ( depends on how many lights you want)

Step 3: Step 3: Finish the Code

This is the link of the code: https://create.arduino.cc/editor/meaganc719/b6a7ca...

Loop - If/ else - Digital read #D2

IF - Digital write # D13 Low

-Digital Wrtie #12 High

Else - Digital write # D13 Low
-Digital Wrtie #12 High

Step 4: Step 4: Connect!!!

Connect your breadboard with your computer. Remember to press upload (Arduino Block)

Test if everything works fine