Light-dependent Resistor (LDR) Circuit
by Hamin in Circuits > Sensors
1222 Views, 12 Favorites, 0 Comments
Light-dependent Resistor (LDR) Circuit
This is a light-dependent resistor (LDR) circuit, a simple electronic system designed to sense light levels in its surroundings and respond accordingly. The core idea of the circuit is to allow devices to “interact” with their environment, almost as if the circuit itself can see. By detecting how much light is present, it can make automatic decisions—like switching a lamp on when the room becomes dark, activating streetlights at night, or even triggering an alarm when someone passes through a shadowed area. Essentially, the LDR circuit acts as the eyes of an electronic system, giving it the ability to monitor changes in light and respond without any human intervention.
Supplies
Components:
- LDR – detects light levels.
- Resistor – 50k OHM resistor
- LED – to indicate the circuit’s response to light.
- Transistor – to amplify the signal (BC547)
- Potentiometer - controls voltage and current in a circuit.
Power:
- Battery – 9V
- Battery holder
Connections:
- Breadboard – for easy prototyping,
- Jumper wires – to connect components on the breadboard.
Tools:
- Multimeter – to check voltages or resistance.
- Soldering kit – making a permanent circuit.
Breadboard Circuit
The LDR circuit uses a light-dependent resistor (LDR) and a potentiometer to form a voltage divider that senses light levels. As the light on the LDR changes, its resistance changes, altering the voltage sent to the base of a transistor. When this voltage crosses a certain threshold, the transistor switches on, allowing current to flow to an LED or other output device, which then turns on. Essentially, the circuit detects changes in light and responds.
1. The LDR is connected in a voltage divider with a fixed resistor or a potentiometer. This means the voltage at the junction between the two changes depending on the LDR’s resistance.
2.This voltage is sent to the base of a transistor. The transistor acts like a switch.
3.When the light level changes, the LDR’s resistance changes, which changes the voltage at the transistor’s base.
4.Once the voltage reaches a certain threshold, the transistor turns on, allowing current to flow through the output device (like an LED or buzzer).
5.The LED or output device lights up or activates in response to the light detected.
HOW THE BREADBOARD WORKS:
A breadboard lets you build circuits without soldering.
- The side rails (+ and –) are for power—they connect all the holes in a row.
- The main area has columns of connected holes where you plug in components.
- Components in the same column are electrically connected.
- Wires (jumpers) connect different parts of the circuit.
How It Functions
1. LDR senses light
- LDR’s resistance decreases in bright light and increases in darkness.
- This makes it perfect for detecting light levels.
2. Voltage divider
- LDR is usually connected in series with a fixed resistor.
- The voltage at the junction of the two changes depending on the light hitting the LDR.
- This changing voltage is the signal that tells the circuit what to do.
3. Response
- The signal can go to an LED, buzzer, or transistor:
- Bright light: LED might turn off (because voltage is low)
- Darkness: LED turns on (because voltage is high)
4. Optional adjustment
- A potentiometer can replace the fixed resistor to set how sensitive the circuit is to light.
Step-by-step Instructions
Instructions:
Breadboard Setup
- Connect + rail to red wire of battery holder.
- Connect – rail to black wire of battery holder.
LDR and Resistor
- Place LDR and 50 kΩ resistor in series.
- One end → + rail, other end → – rail.
- Junction between them → Base of transistor.
Potentiometer
- Connect outer pins to + rail and – rail.
- Middle pin → adjustable sensitivity.
Transistor (BC547)
- Emitter → – rail
- Collector → short leg of LED
- Base → junction of LDR and resistor
LED
- Long leg → + rail (through resistor if needed)
- Short leg → Collector of transistor
Power
- Insert 9V battery in holder.
Test
- Shine light on LDR → LED off
- Cover LDR → LED on
- Adjust potentiometer as needed
Tinkercad LDR Schematic and Circuit Overview
Explanation of the schematic:
- Power Supply:
- The circuit is powered by a 9V battery (BAT1).
- LDR and R1:
- The left side is the LDR (which changes resistance with light intensity) and R1. These two form a voltage divider. When the light level changes, the resistance of the LDR changes, causing the voltage at the junction between R1 and the LDR to change.
- Potentiometer (RPOT1):
- RPOT1 is used to adjust the sensitivity of the circuit by varying the voltage going to the base of the transistor.
- Transistor (T1 - NPN):
- The NPN transistor acts as a switch or amplifier. When the voltage at the base exceeds a certain threshold, the transistor allows current to flow from the collector to the emitter.
- LED (D1):
- The LED will light up when the transistor is conducting, indicating that the circuit has detected a specific light level.
- Resistor R2:
- R2 limits the current through the transistor and LED to prevent damage.