Skip to main content
RK
Rojony Khatun
Last updated: Jun 12, 2026

LDR Project

Build an LDR-based light sensor circuit using BC547. Detect ambient light levels to control LEDs or relays automatically for DIY electronics projects.

Advertisement
Advertisement
BC547 Transistor

BC547 Transistor

General-purpose NPN bipolar junction transistor (BJT)

LDR (light-dependent resistor)

LDR (light-dependent resistor)

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

3V LED 5mm

3V LED 5mm

3V, 5mm round light-emitting diode

4.7k Fixed Resistor 1/4W

4.7k Fixed Resistor 1/4W

A 4700-ohm resistor rated for 1/4 watts

100R Fixed Resistor 1/4W

100R Fixed Resistor 1/4W

A 100-ohm resistor rated for 0.25 watts

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

Advertisement

LDR Project

Build an LDR-based light sensor circuit using BC547. Detect ambient light levels to control LEDs or relays automatically for DIY electronics projects.

Advertisement

LDR BC547 light sensor circuit

One of the applications of the LDR project is flipping lights, such as LEDs or relay,s based on the amount of light present in the environment with the help of a BC547. It is perfect to study the idea of transistor switching and to creathomemadede light-sensitive circuits.

simple light detection project

LDR Project Using BC547 is a simple electronic circuit to measure the amount of light present in the environment and use it to power a load automatically, in this case, an LED or a small relay. The LDR is a type of resistor that varies its resistive value with the intensity of light. BC547 is an NPN transistor that is used as a switch to switch the load ON or OFF depending on the voltage on the LDR. At a certain point of light level, the voltage on the LDR activates the BC547 transistor, and the device connected to it is operated. In bright light, on the contrary, the transistor becomes non-conducting, putting the load OFF. The students, hobbyists, and beginners who learn about the light sensors, transistor switching, and automatic control circuits would find this project to be ideal. Components are cheap and can be fitted on a PCB or breadboard. The series resistor is adjusted with the LDR, so that you can adjust the light sensitivity to what you want. They can be used as automatic night lamps, garden lights, or simple lights to trigger an alarm.

Sponsored

Work / Installation (Inputs → Outputs)

  • Power Input → DC supply (5–12V).
  • LDR Sensor → Senses ambient light levels.
  • Voltage Divider → LDR and resistor set threshold voltage.
  • BC547 Transistor → Switches load ON/OFF based on sensor voltage.
  • Load Output → LED, relay, or small device controlled automatically.
  • Installation → Assemble circuit on PCB/breadboard; connect LDR, load, and DC power; adjust resistor for desired light sensitivity.

Testing & Final Adjustments

Once assembled, supply DC and monitor the LED or load behavior under different light conditions. Darkness (cover the LDR): the BC547 is expected to conduct and to put the load ON. Let it be exposed to bright light, and the transistor must cease to conductt and the load should be turned off. The variable series resistor to adjust sensitivity. Check all connections to ensure that they are stable and well-oriented transistors. Several test cycles provide a good deal of switching reliability and consistency. Correct testing will guarantee that the LDR circuit has been successful in achieving automatic night lamps, garden lights, or alarm-activated lights.

Advertisement

Frequently Asked Questions - LDR Project:

Light Dependent Resistor whose resistance varies with light intensity.
It acts as a switch to control LEDs or other devices based on LDR voltage.
Yes, with proper relay rating compatible with BC547 current.
Typically 5–12V DC supply.
Yes, simple components and easy to assemble on breadboard or PCB.
Yes, by changing the series resistor value with LDR.
Yes, ideal for automatic night lamps and garden lights.
Optional fuse or diode for load protection.
Standard low-current LEDs or small 12V LEDs with resistor.
Yes, uses inexpensive components like BC547, resistors, and LDR.
Advertisement
Advertisement
Advertisement