Dinosaur Night Lamp

by AngelinaChen in Circuits > Arduino

361 Views, 2 Favorites, 0 Comments

Dinosaur Night Lamp

螢幕快照 2020-04-16 下午8.36.05.png

This is a dinosaur light lamp that can light in the night. Its design is based on the Jurrasic world, and it's just a simple lightbox/night lamp that requires one led and a few steps.

Inspired by: https://www.instructables.com/id/Cool-and-Easy-Ni...

Supplies

Arduino Leonardo board *1

LED light bulbs *1

Wires Breadboard *1

Button *1

Paper box *1

Paper *1

Vaseline*1

Abrasive paper *1

Tape *1

78D9FFE7-0DE3-43E4-9AB1-FE8A681191EC.JPG
螢幕快照 2020-04-16 下午8.37.26.png

Use the picture to connect the LED with the button

The Led Will Shine When You Press the Button

螢幕快照 2020-04-16 下午8.37.36.png

Step2

ECA35EA2-E1A6-46EE-BF5C-31E656D25D48.JPG

Cut the board into any shapes (For my example, I’m cutting into the shape of dinosaurs)

Connect them together using Vaseline and abrasive paper(to make it become 3D, if you don’t want to make it too complex, just cut the shape whatever you want and leave it there)

Step3

螢幕快照 2020-04-16 下午8.37.11.png
6F603EC4-0ECB-450E-9845-BED099171DCE.JPG

If you connect them successfully, it should be like this.

Step4

螢幕快照 2020-04-16 下午8.36.44.png

Put the board on the back of the box, and stick it with tape.

Step5

dig a hold on the floor of the box, and then took the led out of the hole, to get inside the box

Dig a hole on the box, and use the same steps like led, but instead, place the button on the top of the box

Step6

Cut a board to cover the breadboard and wires

Fold the paper into the size that can fit the paper box
Sticks the background on the paper

Step7

Place the dinosaurs in the box you prepared, you can draw the background in the box, to make it more realistic like the Jurassic world.

Step8

螢幕快照 2020-04-16 下午8.54.14.png
Dinosaur night lamp

Well Done! You just make a Dinosaur night lamp

Video:

Code

void setup()

{

pinMode( 11 , INPUT); /////Button

pinMode( 12 , OUTPUT); /////LED light bulbs

}

void loop()

{

if (digitalRead( 11 )) /////if you turn on your button

{ digitalWrite( 12 , HIGH ); /////LED light bulb will shine delay(2000); 改 }

else /////if the button isn't switched on

{ digitalWrite( 12 , LOW ); /////LED light bulb will not shine delay(2000); 改 }

}

link: https://create.arduino.cc/editor/angelinachen0312...