Introduction: Cool and Easy Night Lamp

To make a cool night lamp to put in your bedroom, you have to follow my instructions.

Warning: by not following the instructions, you will face failure, depress, and shame.

First, use the picture above to connect your LED light bulbs and button.

Second, design your own lamp, you can design your own lamp or use my design. I will put an AI file and a PDF file of my design above. (recommend using a laser cutting machine to cut my design of from a piece of wood) As you can see from my design, you can glue the three parts of my design together

Third, tape your light bulbs and your lamp together like the picture below shows.

Forth, copy my code below and paste it on your "Arduino IDE". Connect your computer to your Arduino board. and upload your code to your Arduino board.

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

}

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

{ digitalWrite( 12 , LOW ); /////LED light bulb will not shine

}

}

Supplies

Arduino Leonardo board *1

LED light bulbs *1

Wires

Breadboard *1

Button *1

Step 1: