Introduction: Computer Light for the Night

My project is the computer light for the night. I thought of this topic because I trust that many people like to use their computers just before they sleep, and with this project, now I can use an easy control without having to open the main light of my room and be able to have a light on my computer, making the screen, and the keyboard much more brighter and easier to use with just one button.


LED LIGHT(you can use the color of your choice, I chose a white one because it is better for your eyes at night compared to other colors like blue, red, and green)

A Pushbutton

Jumper Cables

Male to Female wires

A Breadboard

An Arduino(Most models will work but I chose Arduino UNO)

Step 1: Step:1 Get Your Supplies

First, you have to have the following things,

  • LED LIGHT(you can use the color of your choice)
  • A button
  • Jumper cables
  • Male to Female wires
  • A Breadboard
  • An Arduino(I used Arduino UNO)
  • 2 Resistors

If you want to decorate it like mine

  • Tape
  • Paint
  • Double Sided Tape

Step 2: Step 2:Write the Code

I wrote my code and it looks like the following:

void setup() {
pinMode (12, INPUT);

pinMode (13, OUTPUT);

Serial.begin (9600);


void loop() {

Serial.print (digitalRead (12));

Serial.println (" ");

if ((digitalRead (12)) == HIGH){

digitalWrite (13, HIGH);



digitalWrite (13, LOW);



Step 3: Step 3:Connecting the Wire

This is the way I connected my wires, there might be even more ways, tell me if you have more ways and new ideas for it.

Step 4: Step 4: Finishing

Now you have a night light attached on the top of your computer. Convenient, Reliable, and Simple. I hope you had a lot of fun trying this project and toying with it. If you found any ways to make this project better in any way or found something wrong about my page, please leave a comment and tell me.