Combination of Color-changing Lamp and Pen Holder

by tpwpzivy_9535 in Circuits > Arduino

125 Views, 0 Favorites, 0 Comments

Combination of Color-changing Lamp and Pen Holder

P_20210516_160921.jpg
P_20201128_224328_2_1.jpg
P_20210515_172502.jpg

Introduction:

On our desk, there will normally be some books, a desk light, and a penholder with some stationery in it. But sometimes, when I am playing with things like puzzles or models, the desk will be very crowded and the small pieces of the puzzles will disappear, and the cause of it is because there are too many things on the desk. In order to solve this problem, I will have to decrease the number of things on the desk. Books, desk lights, penholders are all things needed on the desk, so we can’t take them away. After some thinking, I figure out a solution, which is to combine the deck light and the penholder together. But after this, I found out another problem. Sometimes when using the deck light, the color of the light will be too white, and sometimes when the angle of the deck light isn’t correct, the light will shine at my eye, which makes it not comfortable to see. So when combining the penholder and the deck light, I decided to use an RGB LED to make the desk light, this way, I can control the color of the deck light by myself. Also, in order to solve the problem of the light shining in my eye, I decided to put the light in the penholder to solve the problem I said above. Due to the idea above, I created a pen holder that can turn and have a desk light that can control color by RGB.

Supplies

Computer with Arduino Program

USB Wires x1

Arduino Leonardo Board x1

Resistor x1

Variable Resistance x3

Wires x19

RGB LED x1

Cardboards Ruler

Hot Glue Gun

Scissors

Make the Pen Holder

P_20201128_224328_2_1 (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

Connect the Circuits to Make the Device

qwertyuiop.png
P_20210515_172502.jpg

The place circled by red need to add wires between them to let the RGB LED be able to reach out to the pen holder.

Write the Code

2021-05-16 (3).png

Downloads

Combine the Pen Holder and the Device

P_20210516_155338.jpg
P_20210516_160354.jpg
P_20210516_160921.jpg

1. Take the RGB LED light that is connected with the wire and plug it into the edge of the middle part of the penholder, and 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.

2. 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

3. Put a decoration that light can pass through in the middle of the penholder that the RGB LED is to make it look nice and decreases the lightness on the light.

Final Product

Arduino Project - Combination of Color-changing Lamp and Pen Holder

You Finished !!!