loading

Many people keep a supply of candles and flashlights on hand for when the power goes out. But you still have to find your way around in the dark to get them. In situations like this, it might be helpful to have some kind of emergency lighting system that would automatically turn on when the power goes out.

So in this project, I am going to show you how to build a DIY emergency lighting system that will do just that.

Step 1: Watch the Video

Here is a video walkthrough for this project.

any idea how a rechargeable battery version would be?
<p>You would make a simple trickle charger to charge some NiCd batteries from a DC power supply and a resistor. Then put a diode between the batteries and the power supply to avoid discharging through the power supply when it is on.</p>
Is it normal that the circuit drains my batteries even when it is connected to the wall? How can I fix it? Please help!!! Thx in advance.
<p>That shouldn't be happening. Take a couple of pictures of your circuit and post it here so that I can see what you are working with.</p>
<p>I followed your circuit diagram exactly and got the same parts with the correct values. I doubled check my connections. Apparently I am not the only one with this problem. I checked the youtube comment section of the video and some people seem to have a solution. What do you suggest doing/adding to the circuit that will completely isolate the batteries from the circuit when it is connected to the power supply or wall outlet? Please post the modified circuit diagram with the values !!! Thank you.</p>
<p>Try replacing the 10k resistor with a 1k resistor.</p>
This is a very clever design, but I have one that is much more simple. wanna hear it?
Sure. I always love to hear new ways to make things.
Use a P-channel MOSFET. The inverter will keep the FET turned off as long as it outputs voltage. More or less like the image here. Ignore the switch on the far left; it's there for simulation purposes only.
<p>It cannot work, the FET's gate isn't polarized !</p>
<p>Thanks. That is a really good idea. </p>
<p>Hi I stumble upon this circuit and really like it. One question please. Can I use 12v DC power supply. I have quite a few and be shame to buy 6v DC that you mentioned in your <u>Materials list.</u> If I can use it, do I have to change any parts and values? Thanks in advance.</p>
<p>Yes, you can use a 12 volt power supply. In the circuit that I show above, the power supply only serves to indicate when the power is on. Just don't try to charge the batteries with a 12 volt power supply (at least not without a voltage regulator).</p>
I just finished building it !!!!! <br>It works perfectly. I really enjoyed making it. Very useful !!! Thank you.
you should see about getting aCompany to manufacture that I bet you could make a lot of money !!
<p>That is a great tutorial. Surely, emergency lighting is an important thing at home.</p><p>And that would be interesting to build such thing. The only problem is that you need a neighbour who can give you a screwdriver and a drill:-)</p><p>Otherwise, people will just go to some e-store and purchase something like this</p><p>http://hardware.nl/van-lien/14062021.html because it is easier.</p><p>It seems that the whole concept is not really intricate, so it will not break unexpectedly. </p>
So the 1k and 10k resistor is in series right forgive me if im wrong im new to electronics
<p>I may have misunderstood your question. If you were asking if the MOSFET could be replaced with a 2n2222, then you would need to add the resistor to this new transistor. So there would be a 1k resistor between the base pin of the right transistor and the collector of the left transistor.</p>
I asked you if i can replace the pn2222a with 2n2222 thanks
<p>I am sorry. I misunderstood. Yes a 2n2222 will work fine.</p>
Thanks i like make magazine projects very much Good instructable
Good project. You can modify the circuit in such a way that when there is a power supply available, the circuit uses the current from the power supply instead of the battery for its inner workings. This would make the battery last forever until there is no power cut.
Can i use 2n2222 instead
<p>Yes you can. But with a 2n2222 you will need to add a 1 kohm resistor to the base pin. You also want to make sure that the current of the LEDs that you are using does not exceed the max current rating of the transistor.</p>
<p>Can i use a IRF540 power mosfet instead of IRF510</p>
That should work
<p>Thanks but can i also use IRF630 and IRFS830 because i wants to make three of these Emergency Lighting System and i am having all these three mosfets. </p>
<p>Any N-Channel MOSFET can work with this design.</p>
<p>I made it and used it with a 5v power supply. But i found that when the power supply was turned on then the circuit was providing 2.4V to the leds. So can you suggest me a way to use this circuit with 5V power source. I am using a 3.7V mobile battery for the leds.</p>
<p>Now it worked with 5V but i found that leds were getting only 2.6V from the 3.7V battery. Any reason???</p><p>please help</p>
<p>I am not really sure what is going on there. Measure the voltage at all the junctions in the circuit and send them to me and I might be able to work it out. </p>
<p>Here is a short video of virtual test (i made it because i had used the 3.7 v battery in other project and now i am not having any 3.7 v battery so i made this virtual test video.) . In this the voltage across D1 is wrong It is actually 2.6 v.</p>
<p>Okay. It looks like the transistor that you are using doesn't really work with a Gate voltage less than 4 volts. The gate pin isn't getting enough voltage. So it is not letting the LED get enough power. You either need to use a different battery or a different transistor. If you need to you can use an NPN transistor instead. But use 100 kohm for both resistors. </p>
<p>Can u please help me with a circuit diagram..... It will be very helpful...</p><p>THANK YOU FOR YOUR CONTINUOUS HELP!!!!!!! <br></p><p>I am really happy. You are a great person also can you tell me your occupassion .............. :)</p>
<p>What is your circuit diagram problem?</p><p>In general you can say that I am an Engineer. But my actual job is making how-to projects for Make Magazine.</p>
<p>Can you tell me which transistor should i use instead of that mosfet.....</p>
<p>Use any NPN transistor that that is rated for at least 0.2 Amps. For example, this will work:</p><p>http://www.radioshack.com/tip31-npn-transistor/2762017.html#prefn1=brand&amp;q=npn&amp;prefv1=RadioShack&amp;start=6</p>
<p>Thanks alot now i will be able to make one....</p><p> Thank you for such a neat, clean and great instructable.....</p>
<p>This may seem like a smart idea, but the electronic design is beyond poor. I know, you want to go as simple as possible, but I don't think that an excuse.</p><p>WARNING: Criticism incoming. If you can't handle it or just don't care simply don't respond. This is intended for those who'd like to improve this idea:</p><p>1. In depended of the output power (even if it's zero) the power supply will consume a significant amount of power. Even a little 0.08W supply can consume 1W by itself!(<a href="http://www.zabex.de/frames/mediasteckdosen.html" rel="nofollow">source</a>) Just touch a cheap power supply a while after it's been pluged in and you'll notice it's getting warm. Some phone charges perform quite good in that respect, in <a href="http://www.righto.com/2012/10/a-dozen-usb-chargers-in-lab-apple-is.html" rel="nofollow">this</a> comparison in the range from 18mW to 375mW, which is acceptable IMHO. If you want to get lower it's getting more complicated and dangerous for hobbiests.</p><p>2. The circuit itself always drains power from the batteries. It's just 0.45mA but still enough to drain a typical 3000mAh battery in 9 month and thus not suitable for anything &quot;emergency&quot;. The solution is quite simple, replace the nmos with a pmos as shown in my diagram. You don't both transistors, but they'll keep the gate voltage to a minimum, no matter what voltage you connect (or reverse). And yes, they are drawn in correctly, I'm using the BE diodes as crude 8V zener diodes (cheap, but it works well). If you want you can connect a simple push button between the gate of the pmos and the plus pole of the battery to switch the light temporally off.</p><p>This reduces the battery discharge current to a ridiculous low &lt;1uA/ 0.2% (leakage of the PMOS). Plus, the current draw from the power supply is only ~31uA/ 5.</p><p>3. You may have noticed that I've not drawn the LED symbol, but a generic &quot;load&quot;. I did this because you should never connect LEDs in parallel with just one resistor, the current won't be shared equally (This can even be seen on the very last picture). While it might work &quot;ok&quot; for some decoration type of use it's not acceptable for something like this.</p><p>4. The battery life should now be the shelf-life of the batteries, which might be a few years. If you want to go further you might want to choose lithium batteries such as CR2032, they have a shelf life of about 20 years, or go for a solution with a super cap, which results in almost infinite backup time. If there's interest in the circuit I'll upload it, just ask.</p><p>To match at least my definition of &quot;emergency gear&quot; point 2, 3 and 4 must be fulfilled. How much is safety worth, if you can't trust it? Yeah, this is not a super-critical application, you can survive a blackout easily without, but what's then the point in having it the first place?</p>
Same question as RedFishRyan, because if used as a permanent backup solution in my house, the batteries will drain at a certain point ofcourse
Yes. You can. Just connect a charger to the battery pack with a diode. But it isn't really necessary. This system will not quickly drain the battery. An alkaline battery in this circuit could last about 6 months. You could make this even longer by replacing the 10K resistor on the NPN with a 100k resistor. Buy the idea is that it is a temporary lighting that will allow you see during brief power outage or to get something long term set up for a prolonged power outage.
Great project again! Could you have put in a rechargeable battery and also have it be charging when the power is on?
Yes. You can. Just connect a charger to the battery pack with a diode. But it isn't really necessary. This system will not quickly drain the battery. An alkaline battery in this circuit could last about 6 months. You could make this even longer by replacing the 10K resistor on the NPN with a 100k resistor. Buy the idea is that it is a temporary lighting that will allow you see during brief power outage or to get something long term set up for a prolonged power outage.
Awesome discreet logic circuit it's nice to see something not using an arduino<br>
Great instructable/project though!

About This Instructable

21,162views

387favorites

License:

Bio: My name is Jason Poel Smith I am a Community Manager here at Instructables. In my free time, I am an Inventor, Maker, Hacker, Tinker ... More »
More by DIY Hacks and How Tos:How to Make a Festivus Pole Add Wings to an Infant's Halloween Costume Bubble Bath That Never Runs Out Of Bubbles 
Add instructable to: