MINI Night Lamp

12,084

169.

10

Introduction: MINI Night Lamp

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.

哦!我们的大脑也是arduino董事会。

here I'm using the Arduino pro mini.

补给品:

1. Arduino Pro Mini

2.黄铜电线

3. LDR(轻依赖电阻)

4. 2 blue LED

5. 2 18欧姆电阻器

6. 1 100K电阻

7.黄铜电线

8. copper wire

第1步:工作

乘坐Arduino Pro Mini并如上所示连接。

here I have uploaded the code for the given project.

Step 2: Coding

在这个代码中,基本逻辑是将灯放在黑暗的地方,它会发光,当光线下降时,它会昏暗

Step 3: Making : the Frame

1.拿黄铜电线并切割8英寸的上部和下面。

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.现在剪掉4 * 1.2英寸的线。

5. solder the wire into a block shape.

the mainframe is ready.

Step 4: Freeform Connections

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.将100k电阻从出口的任何VCC连接到引脚A0,然后从A0连接到地面。

Step 5: Power Supply Connections

给出两个连接,一个来自大型机的连接,另一个来自较低脸部附近的VCC。

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.

Step 6: Making: the Base

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

第7步:制作:外框(可选)

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

第8步:制作:LED折射器(可选)

再次如果您不喜欢外框,那么您还可以选择制作小折射器。

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.

Step 9: FINALLY

our final product is ready.

第10步:测试

第11步:最终视频

照明挑战

Runner Up in the
照明挑战

Be the First to Share

    Recommendations

    • Microcontroller Contest

      Microcontroller Contest
    • Automation Contest

      Automation Contest
    • Make it Glow Contest

      Make it Glow Contest

    10 Discussions

    1
    needfulthing

    6 months ago

    I love these kind of free form circuit designs in any appearance. The Arduino Pro Mini is a bit of an overkill. For these kind of projects I would recommend to try out something like a plain ATtiny13 DIP CPU (if you don't want to go down the whole 555 route), which can be easily programmed using a normal Arduino in ISP mode. The are plenty of resources on this topic and it will bring you one step further in micro-controller programming without becoming too complex. Also note that the absolut maximum of current that can be drawn from an IO pin is 40mA, so the resistor should limit the current to a value below that, normally you would use 220 Ohms for 5V and one LED. With two LEDs parallel a safe limitation would be something greater than 250 Ohms, which limits both LEDs to <20mA. The 18 Ohms won't have any usable effect, in this case you are relying on your LED's resistance limiting the current to a safe value.

    0
    akshar1101

    Reply 6 months ago

    哦!谢谢你 :)

    0
    Joey232

    6 months ago

    非常好的项目,一个d a good job on the instructions. I do have one suggestion, like GreenMoon said the 18 ohm resistors are too small, however, the suggested 220 ohms would be too large, you'd get less than 10ma of current. You need to take the forward voltage drop and max current of the LED's into account. If we pick a typical blue LED, say this one:https://www.sparkfun.com/products/11372sold by SparkFun it has a forward drop of 3.4V with a current rating.of 30ma.

    Using the 18 ohm resistors you chose would give a current of (5-3.4)/18 = 88ma, too much current. The only thing preventing the LEDs from burning out is that fact that the micro can only source about 40ma max from any given pin.

    为了计算正确的电阻,请将电源电压减去前向下降并除以电流。(5-3.4)/ .030 = 53欧姆。挑选60欧姆,给自己一点保证金。此外,由于2 * 30 = 60mA,请使用两个Arduino引脚,每个LED一个LED不能超过最大驱动器电流。

    4
    simaopintocorreia

    Tip6 months ago

    it's a good project but I thinck that you can make it but with a 555 timer dark sensor circuit. it hold be cheper and I thinck that proMini can do other things more complex than light up a led over the darknesshttp://www.555-timer-circuits.com/dark-detector.html

    (remove the 10u capacitor and put a LED and a resistor

    2
    grimnirson

    Reply 6 months ago

    耶,你不需要555甚至。光电电阻,晶体管,电阻和电容器。完毕。

    0
    akshar1101

    Reply 6 months ago

    thanks for the idea man!

    0
    akshar1101

    Reply 6 months ago

    thank tou :)

    0
    anandm54

    6 months ago

    Nice idea and clear instructables!!!

    0
    akshar1101

    Reply 6 months ago

    tahnk you :)