Automatic Reading Lamp

by sopewww in Circuits > Electronics

287 Views, 1 Favorites, 0 Comments

Automatic Reading Lamp

IMG 3068

This is a lamp set up on a book holder for reading. When the user place the book onto the book holder, the lamp will turn on and provide bright light for reading.

Materials

3 card board box

1 scissor

1 box cutter

1 book holder

1 pen

1 tape

1 hot glue gun

1 Arduino Leonardo

at least 8 LED lights

at least 23 wires

at least 16 male to female wires

1 photoresistor

4 resistance of 1k Ohms 5%

1 resistance of 120 Ohms 1%

the code: https://create.arduino.cc/editor/username_sopie/e...

Circuit

截圖 2021-06-11 下午12.52.00.png

This is how you should build the circuit. Depending on personal preference, you can add more LED light if you want to on D Pin 2, 3, 4, 5. But you will only need one photoresistor in this project.

In this project, the LED lights should be able to reach the top of the book holder. As a result, apply extension such as male to female wire can be very important.

The code you're going to download and insert is in the following link:

https://create.arduino.cc/editor/username_sopie/e3...

Lampshade

IMG_3002.JPG
IMG_3012.JPG
IMG_3013.JPG
IMG_3014.JPG
IMG_3015.JPG
IMG_3016.JPG
IMG_3043.JPG
IMG_3036.JPG
IMG_3045.JPG

First of all, cut a piece of card board in rectangle with the box cutter or the scissor. It should be shorter than the length of the book holder, with a width longer than 15cm. It will be serving as the lampshade of the reading lamp.

Then use the box cutter to cut a line on the card board, but don't cut too deep so it won't fall apart. Valley fold the card board so it bent in about 90°.

After that, place the card board onto the book holder, adjust it's position until you are satisfied with it, then use a pen to mark the line where the cardboard meets the book holder, so you know where to stick the LED lights later.

Next, use tape to fix the LED lights onto the card board, above the line you just drew. Be careful with the connections of each wires, so them won't be accidentally pulled up from the breadboard causing trouble.

Cover

IMG_3049.JPG
IMG_3050.JPG
IMG_3052.JPG
IMG_3053.JPG
IMG_3055.JPG

Push a box into another box. The box pushed in will serve as the heightening pad for the circuit so it can reach the top of the book holder, and the box containing the other box served as the cover of the circuit. If the second box doesn't fully cover the circuit, you can also pull the wing of the box out to achieve the goal.

Final

IMG_3056.JPG
IMG_3058.JPG
IMG_3064.JPG
截圖 2021-06-11 上午4.43.23.png
IMG_3063.JPG
IMG 3067
IMG 3065

After setting up the circuit, card board and the boxes, place the card board with LED lights on it onto the top of the book holder, use hot glue gun to fix them together. Next, use hot glue gun to fix the card board and the wing of the box together.

After that, pull two of the wires that connects the photoresistor under the book holder, connect the photoresistor then adjust it's position so it can be block from light when you place a book onto the book holder, but still contacting the light while no book is on the book holder.

After uploading the code of this project, the product would be able to use with a stable electric sources connecting to it.

Hope you enjoy!