Introduction: Arduino Night Light

The original publisher of this project is: ENG249GroupProject

and this is the link of the original publisher's website

This night light is use for people who are afraid of darkness and it won't be too dazzling.

I added a yellow LED to make the night light looking not that boring.

Another change I made is I made the lamp bigger, so it can cover the breadboard.

Step 1: Step 1: Tools and Materials


a computer with USB port




box cutter


x1 Arduino board with a USB connection cable

x1 Breadboard

x1 common anode RGB LED

x3 220 Ohm resistors

8 wires

thick opaque paper

thin translucent paper (graph paper)


Step 2: Step 2: Making the Lamp

Rectangle paper

Take a A4 size paper and cut the paper into a rectangle of length 30 widths 15.

Fold in half and cut a little triangle at the line you just fold.

Measure 12cm at the side of 15cm, fold in the 1.5cm in each side.

Last, cut off four small triangle in each corner.

Triangle paper

Take another paper and cut it into a triangle with two sides being 14.5cm and the other side of 20cm. (you need two of this, so make two)

Draw two smaller triangle on the triangle you just cut off.

Take the white (note paper) and cut it into a triangle that is a little smaller than the thick paper. (you need two)

Stick them together

Combine the Rectangle and Triangle paper

Ding! You made it !

Step 3: Code

Arduino night light code

const int redLEDPin = 9;

const int greenLEDPin = 10;

const int blueLEDPin = 11;

const int redValue = 255;

const int greenValue = 0;

const int blueValue = 0;

void setup() {

pinMode( 12, OUTPUT); 改

pinMode(redLEDPin, OUTPUT);

pinMode(greenLEDPin, OUTPUT);

pinMode(blueLEDPin, OUTPUT);


void loop() {

digitalWrite( 12, HIGH ); 改

analogWrite(redLEDPin, redValue);

analogWrite(greenLEDPin, greenValue);

analogWrite(blueLEDPin, blueValue);