Creators
Rojony Khatun Author
Rojony Khatun
CalculatorToolsProjectExpert
Reviewers
Małgorzata Koperska, MD Steven Wooding
Last updated: February 15, 2026

DIY Diwali LED Chain Lights Circuit for Home Decoration

🇺🇸
English
Default
🇪🇸
Español
Spanish
🇫🇷
Français
French
🇩🇪
Deutsch
German

*Please note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Diwali LED Chain

Learn how to make a Diwali LED chain at home. Step-by-step DIY guide with circuit, materials, working principle, and safe decoration ideas.

What is a Diwali LED Chain?

A Diwali LED chain is a chain or parallel connection of LED that operates under DC or low voltage AC. These lights are available in strings that can be used to illuminate homes, balconies, windows or temples during Diwali.

Benefits:

  • Bright and colorful decoration
  • Low power consumption
  • Long-lasting LEDs
  • Fun DIY electronics project

3.7v battery charger

The circuit 1S 2S TL431 high precision auto cut-off 3.7V battery charger is a necessary DIY electronics project to safely charge lithium-ion batteries. This circuit, with a TL431 shunt regulator, offers correct voltage regulation, automatic cut-off on full charge of the battery, and avoids excessive charge. It may be set to single-cell (1S) or two-cell (2S) battery, and may apply to small electronics, DIY projects, and portable projects. This guide will describe the main characteristics, the principle of operation, the list of all the components, the step-by-step construction, the test procedure, the usability, and the safety precautions. At the conclusion, you will have a fully operating 3.7 V charger battery with a definite auto cut-off to charge batteries safely and in an effective manner.

Features of TL431-Based Charger Circuit

High Precision Voltage Regulation

  • TL431 provides a 2.5V reference voltage that can be amplified using a resistor network to achieve a precise output voltage for charging.
  • Ensures stable constant voltage during the charging process.

Auto Cut-Off Function

  • Automatically stops charging when battery voltage reaches the pre-set limit.
  • Prevents overcharging and prolongs battery lifespan.

Supports 1S and 2S Li-ion Batteries

  • Can charge single or dual-cell packs.
  • Easily adjustable by resistor selection in the TL431 network.

Components Needed

TL431 Shunt Regulator

  • Acts as a precision voltage reference and comparator for the cut-off function.

MOSFET or Transistor

  • Used as a switching device to control current flow to the battery.
  • Recommended: IRF540N, 2N7000, or similar low-voltage MOSFETs.

Resistors and Capacitors

  • Set charging voltage and current limits.
  • Filter capacitors reduce voltage ripples.

Battery Connectors

  • Connect the battery safely to the circuit using proper polarity connectors.

Optional LED Indicators

  • Red LED for charging
  • Green LED for full battery

Working Principle of the Charger Circuit

Constant Voltage Charging

When the battery is connected, the circuit regulates current initially, then maintains a constant voltage until the The battery is nearly full.

Auto Cut-Off Mechanism

  • TL431 monitors battery voltage.
  • When voltage reaches the pre-set cut-off (e.g., 4.2V per cell), TL431 turns off the MOSFET, stopping the current flow.

Step-by-Step Circuit Assembly

Preparing the Power Source

  • Use a DC adapter that can provide 5–6V for 1S or 8–9V for 2S with current limit according to battery capacity.

Connecting TL431 and MOSFET

  • Connect TL431 reference input via resistor divider to battery terminals.
  • MOSFET drain/source controls the charging path.

Setting the Cut-Off Voltage

  • Adjust resistor values to achieve 4.2V per cell at the TL431 feedback pin.
  • Measure with a multimeter before connecting the battery.

Testing the Charger Circuit

  • Connect a dummy load or test battery.
  • Measure charging voltage and current.
  • Verify auto cut-off functionality at full charge.

Applications of 3.7V Battery Charger Circuits

  • DIY battery packs
  • Portable electronics
  • Power banks
  • Small robotic devices
  • Rechargeable LED lights

Safety Precautions

  • Always verify battery polarity before connecting.
  • Do not exceed the recommended current or voltage.
  • Use fuses or PTC resettable fuses for safety.
  • Avoid charging unattended.
  • Ensure good ventilation to prevent overheating.

Troubleshooting Common Issues

  • Battery not charging: Check power source and MOSFET connections.
  • LED indicator not working: Verify LED orientation and resistor values.
  • Battery overcharges: Recheck TL431 voltage divider values.

Frequently Asked Questions - Diwali LED Chain:

What is a Diwali LED chain?

A string of LEDs arranged in series or parallel for festive decoration.

Can I make it at home?

Yes, using simple LEDs, resistors, and a low-voltage power supply.

Should I use series or parallel connection?

Series for fewer resistors, parallel for uniform voltage to each LED.

How to calculate resistor value?

R = (V_supply – V_LED) / I_LED, typically 10–20mA for LEDs.

Can I use AC mains?

Only with proper transformer or driver circuit; DC is safer.

Why is an LED not glowing?

Check polarity, resistor value, and wiring connections.

How to avoid flickering?

Use stable power supply and secure solder connections.

Can I mix LED colors?

Yes, different color LEDs can be used in the same chain.

Is it safe for children?

Yes, if using low-voltage DC and insulated wires.

How to make LEDs last longer?

Use correct resistors, avoid overheating, and ensure stable voltage.

Comments

Please login to comment.

Rojony Khatun

Rojony Khatun

Calculator Tools Project

Rojony Khatun is the creator of a free online tools website designed to simplify everyday and engineering-related calculations for students, professionals, and hobbyists. The platform offers a wide variety of basic and advanced calculators across key categories, including Electrical Calculators, Electronic Calculators, and Time & Date Calculators, helping users solve problems quickly and accurately.