Projects / Ideas / Automatic emergency light

Automatic emergency light

BeginnerLightingIdeaReviewed
In short

How do you build an automatic emergency light?

When mains power fails, an 18650 cell runs a bright LED panel automatically, and it recharges when power returns. You need 18650 cell 2600 mAh (branded), Battery holder 18650 single, TP4056 module with protection (USB-C), High-power LED 1 W white (star), BC547 NPN transistor, AO3401 P-channel MOSFET (SOT-23), Resistor 1 kΩ × 2, Resistor 10 kΩ, Rectifier Diode 1N4007, 5 V 2 A USB adapter and ABS project box (100 × 60 × 25 mm).

Level
Beginner
Time
About 90 min
Parts
11
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Detect power loss and switch to a battery.

How to build it

  1. Charge the cell from the 5 V adapter
  2. Sense adapter voltage with a divider
  3. Turn the P-MOSFET on when it drops
  4. Limit LED current with a resistor
  5. Test run time and add low-battery cut-off

Related projects

Common questions

What parts do I need for the automatic emergency light?

18650 cell 2600 mAh (branded), Battery holder 18650 single, TP4056 module with protection (USB-C), High-power LED 1 W white (star), BC547 NPN transistor, AO3401 P-channel MOSFET (SOT-23), Resistor 1 kΩ × 2, Resistor 10 kΩ, Rectifier Diode 1N4007, 5 V 2 A USB adapter and ABS project box (100 × 60 × 25 mm). AO3401 P-channel MOSFET (SOT-23): Or IRF9540N through-hole.

How long does the automatic emergency light take to build?

About 90 minutes for a beginner maker.