MINI Night Lamp

by akshar1101 in Circuits > Arduino

20821 Views, 200 Favorites, 0 Comments

MINI Night Lamp

DSC_0586 (1).jpg

this project is inspired by Mohit Boite. Electronics is a very big ocean and to explore it today I made a small lamp mini night lamp which is controlled by Arduino microcontroller.

The concept is simple, all you need is an LDR ( light dependent resistor), few LEDs, and a few resistors.

oh! and also our brain the Arduino board.

here I'm using the Arduino pro mini.

Supplies

1. Arduino pro mini

2. brass wire

3. LDR( light dependent resistor)

4. 2 blue LED

5. 2 18 ohms resistors

6. 1 100k resistor

7. brass wire

8. copper wire

Working

breadboard setup.png

take an Arduino pro mini and connect the same as shown above.

here I have uploaded the code for the given project.

Coding

DSC_0556.JPG

in this code, the basic logic is when you place the lamp in a dark place it will glow and when light falls on it then it falls dim

Downloads

Making : the Frame

DSC_0547.JPG
DSC_0548.JPG
DSC_0549.JPG
DSC_0551.JPG
DSC_0550.JPG
DSC_0552.JPG
DSC_0553.JPG
DSC_0555.JPG

1. Take the brass wire and cut 8 1inch pieces for the upper and lower faces.

2. solder the wires into a square shape.

3. then take the Arduino board and measure its dimensions, here we have 0.7*1.2 inches.

4. now cut out 4*1.2 inch wire.

5. solder the wire into a block shape.

the mainframe is ready.

Freeform Connections

DSC_0558.JPG
DSC_0559.JPG
DSC_0560.JPG
DSC_0561.JPG
DSC_0564.JPG
DSC_0565.JPG
DSC_0566.JPG
DSC_0567.JPG

the steps are simple, consider the mainframe as ground and rest as VCC but analog pin must directly be connected to LDR.

1. complete the LED connections, for safety add 18ohms resistor.

here I gave my digital connections at pin 11, but if you want you can use pin 6 also since I have added that to the code.

2. connect 100 k resistor from any VCC present to pin A0 and then from A0 connect LDR to ground.

Power Supply Connections

DSC_0568.JPG
DSC_0569.JPG
DSC_0570.JPG
DSC_0580.JPG
DSC_0579.JPG

give two connections, one from mainframe and another one from the VCC present near the lower face.

to attach the PCB to the frame, connect one ground pin present at the right side of the PCB to the mainframe with copper wire.

Making: the Base

DSC_0575.JPG
DSC_0577.JPG
DSC_0578.JPG
DSC_0582.JPG

1. Take a 5mm acrylic sheet and a USB cable to make the base.

2. cut a square out of the acrylic sheet with length 1.4 inches.

3. drill two holes with a 1.5mm radius drill bit for outlets of VCC and ground.

4. connect the wire to the outlets and stick it to the sheet.

your base is ready

Making : the Outer Frame (optional)

DSC_0562.JPG
DSC_0563.JPG
DSC_0571.JPG
DSC_0572.JPG
DSC_0573.JPG
DSC_0574.JPG
DSC_0585.JPG

take a translucent acrylic sheet and cut out 1*1 inch squares and stick them with perpendicular connecting burp pins.

Making : LED Refractor (optional)

DSC_0587.JPG
DSC_0588.JPG
DSC_0603.JPG
DSC_0605.JPG
DSC_0606.JPG
DSC_0589.JPG
DSC_0591.JPG
DSC_0592.JPG
DSC_0593.JPG
DSC_0596.JPG
DSC_0597.JPG
DSC_0594.JPG

again if you don't like the outer frame then you also have the option to make a small refractor.

just cut an acrylic atrip which u think will approximately cover the led from both the sides, then bend it by heating it with hot air. you are almost done just cover the strip from both sides with smaller chips.

FINALLY

DSC_0611.JPG
DSC_0612.JPG
DSC_0613.JPG

our final product is ready.

Testing

DSC_0586.JPG
DSC_0583.JPG
DSC_0584.JPG
DSC_0599.JPG
DSC_0602.JPG
DSC_0601.JPG
DSC_0610.JPG
DSC_0600.JPG
DSC_0609.JPG
DSC_0608.JPG

Final Video

MINI night lamp