A LED Pen Holder

by tpwpzivy_9535 in Circuits > Arduino

166 Views, 0 Favorites, 0 Comments

A LED Pen Holder

P_20210417_201849 (1).jpg
P_20201128_224328_2_1.jpg
P_20210418_200202_1.jpg
P_20210418_195953_1.jpg

Introduction:

On our desk, there will usually be some books, a computer, and a penholder with some stationery in it. But sometimes, we will also want to put some decorations on the desk. So why don’t we combine some of them into a thing? So in this project, I combine the penholder and the idea of decorations together. And due to the idea above, I create a pen holder that can turn and shine three colors of light separately.

The original device’s link: https://www.instructables.com/Led-7/

The extra features I added:

1. I added another LED light to the device, originally there were only two LED lights, now there are three LED lights.

2. Originally, there is only the device, there is nothing around it, and it makes it look ugly. In this project, I make a pen holder with cardboard. Then put the device that I make a change in the pen holder. 3. LED lights are originally plugged on the breadboard, but because in this device, I will put it in a penholder, so I use wires to connect the LED and the breadboard.

4. The time of each LED shine is originally

5 seconds then delay for 1 second, but I change it into 4 second and delay 1 second.

5. The original device is two red LED lights, but I think if it is the same color, why don’t just use one light. So in this project, I use three different colors of LED light.

Supplies

Computer with Arduino Program

USB Wires x1

Arduino Leonardo Board x1

Resistor x3

Wires x13

White LED x1

Blue LED x1

Green LED x1

Cardboards Ruler

Hot Glue Gun

Scissors

Step 1: Make the Pen Holder

P_20201128_224328_2_1.jpg
P_20210418_195953_1.jpg

Design the penholder first, then make the pen holder according to the blueprint above.

1. Cut the Boards into pieces that I need

2. Fixed, connect, glue all of the small pieces together

3. Fixed, connect, glue all part together Finish the pen holder

Step 2: Connect the Circuits to Make the Device

P_20210417_201849 (1).jpg

1.Connect a wire from CND to negative

2. Plug each side of the LED in two separate wires, repeat it for the other two

3. Connect a wire from negative to the breadboard → plug a side of the resistor on the same road with the wire in the above step → plug the side of the wire that connects the longer side of the LED on the other side of the resistor → plug the other wire that connects the other side of LED on the breadboard → connect a wire from the wire in the above step to D8

4. Repeat the step above to the other two LED, but for the last part of the last step, change it to D6 and D5

Step 3: Write the Code

螢幕擷取畫面 (8).png

Link of the code: https://create.arduino.cc/editor/tpwpzivy_0305/b9c...

When finished writing the code, plug the USB wire on the Arduino Leonardo with the computer, and upload the code to Arduino Leonardo.

The place with //改 is the part that I made some change comparing to the original project, the words after it is a short description of the change that I made.

Step 4: Combine the Pen Holder and the Device

P_20210418_181300.jpg
P_20210418_200116.jpg
P_20210418_200202_1 (1).jpg

1. Take the 3 LED light that is connected with the wire and plug it into the edge of the middle part of the penholder

2. Take the other side of the wire and make it go over the hole in the middle of the base, when it is over it, connect it with the breadboard

3. Put the device in the base, plug the USB wire through the hole on the side of the lid then plug it on the device, close the lid of the base

Step 5: Final Product

Arduino Project - A LED Pen Holder

You Finished !!!

Downloads