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

LDR Working Project Using BC547 Transistor Circuit

🇺🇸
English
Default
🇪🇸
Español
Spanish
🇫🇷
Français
French
🇩🇪
Deutsch
German
LDR (light-dependent resistor)

LDR (light-dependent resistor)

A resistor whose resistance decreases with increasing incident light intensity; also called a photoresistor

BC547 Transistor

BC547 Transistor

General-purpose NPN bipolar junction transistor (BJT)

3V LED 5mm

3V LED 5mm

3V, 5mm round light-emitting diode

33K Fixed Resistor 1/4W

33K Fixed Resistor 1/4W

A 33,000-ohm resistor rated for 0.25 watts

[33k-fixed-resistor-1/4w]
9V Battery

9V Battery

Compact DC power source providing 9 volts

*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!

LDR Working Project

Automatic light-sensing project using LDR and BC547. Switch LEDs or relays based on ambient light levels for DIY electronics and hobby projects.

LDR BC547 light-sensing project

LDR operating project with BC547 measures the light intensity in the surroundings and automatically switches on LEDs or relays. It is a low-cost, easy learning project of light-sensitive transistor circuits.

LM358 18650 charger DIY

The following circuit LM358 1s2s battery charger, is intended to be a safe charger of either a single-cell (1s) or a dual-cell (2s) 18650 Li-ion battery with the LM358 operational amplifier as the central control component. It offers constant voltage (CV) and constant current (CC) charging phases and has primitive battery protection measures to avoid overcharge, overcurrent and reverse polarity.

This can build a reliable battery charger using the LM358 utility, a component that is well-realised, using this DIY guide to include the parts, the principle of work, the circuit diagram, and instructions. This circuit can be well assembled to provide an efficient and safe way to charge 18650 Li-ion cells in power banks, LED projects, and small portable devices and other electronics requiring batteries.

Components Required for the Circuit

  • LM358 operational amplifier IC
  • 18650 Li-ion battery (1s or 2s configuration)
  • N-channel MOSFET (e.g., IRFZ44N) for load switching
  • Resistors (1kΩ–10kΩ for voltage sensing and current control)
  • Capacitors (10µF–100µF for smoothing and timing)
  • Diodes (Schottky for reverse polarity protection)
  • Potentiometer (for current/voltage adjustment)
  • Power supply (5V–12V DC input)
  • PCB, wires, and connectors

Working Principle of LM358 Battery Charger

Constant Current (CC) Stage

The LM358 monitors battery voltage and regulates charging current through MOSFET control. The battery receives a constant current until it reaches the target voltage.

Constant Voltage (CV) Stage

Once the battery reaches the maximum voltage (4.2V per cell), LM358 maintains voltage and gradually reduces current. Prevents overcharging while topping up the battery.

Battery Protection Features

Reverse polarity protection prevents damage if the battery is inserted incorrectly. Overcurrent and short-circuit protection ensure safety for both the battery and circuit. Optional thermal protection can prevent overheating during charging.

LM358 1s–2s Battery Charger Circuit Diagram

  • Connect the LM358 in comparator mode for voltage monitoring.
  • Connect the MOSFET in series with the battery's positive terminal to control current.
  • Connect resistors for voltage sensing and current limit adjustment.
  • Connect capacitors for voltage stabilization.
  • Connect the power supply input and output to the battery terminals.
  • Optional LEDs can indicate charging status (charging/fully charged).

Step-by-Step DIY Construction Guide

  1. Place LM358, resistors, capacitors, and MOSFET on a PCB or breadboard.
  2. Connect voltage sensing resistors to battery terminals.
  3. Connect MOSFET drain to battery positive, source to load/charging path.
  4. Adjust potentiometer for desired charging current.
  5. Connect the power supply to the circuit input.
  6. Test with a multimeter before connecting the battery.
  7. Verify LED status indicators if included.
  8. Secure battery and insulate all exposed connections.

Applications of LM358 Charger Circuit

  • Charging single or dual 18650 Li-ion batteries
  • DIY power banks
  • LED or small portable electronics
  • Educational electronics projects
  • Battery maintenance and backup systems

Safety Precautions

  • Always check battery polarity before connecting.
  • Avoid charging damaged or swollen cells.
  • Use a fuse for added safety in high-current circuits.
  • Do not touch terminals while charging.
  • Ensure adequate ventilation for heat dissipation.

Troubleshooting Common Issues

Battery Not Charging

  • Verify input voltage and circuit connections.
  • Check LM358, MOSFET, and resistor network.

Overheating Battery

  • Reduce charging current or check heat dissipation.
  • Ensure proper MOSFET rating.

Incorrect Voltage Output

  • Check voltage sensing resistor values.
  • Verify LM358 and potentiometer adjustment.

Frequently Asked Questions - LDR Working Project:

What is LDR?

Light Dependent Resistor whose resistance changes with light intensity.

Why use BC547?

It acts as a switch to control LEDs or relays based on LDR voltage.

What voltage is required?

Typically 5–12V DC supply.

Can it control a relay?

Yes, with a suitable relay compatible with BC547 current.

Is it beginner-friendly?

Yes, simple and inexpensive for hobbyists and students.

Can sensitivity be adjusted?

Yes, by changing the series resistor with the LDR.

Can it be used for night lamps?

Yes, ideal for automatic night lighting and garden lights.

Do I need additional protection?

Optional diode or fuse for load safety.

Can multiple LEDs be controlled?

Yes, connect them according to transistor current rating.

Is it cost-effective?

Yes, uses inexpensive BC547, resistors, and LDR.

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.