• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Automatic Night Lamp Circuit with Photocell

Automatic Night Lamp Circuit with Photocell

Last updated on 23 February 2025 by Admin-Lavi Leave a Comment

This Automatic Night Lamp Circuit uses a photocell to measure how bright or dark it is around it.

A night light that works with a photocell is an automatic lighting system that turns on a lamp when it gets dark and turns it off when it gets light again.

This kind of setup is really useful for things like street lights, garden lights and security lights.

The circuit includes a light-dependent resistor LDR-ORP12, an operational amplifier uA741, and a relay, which all work together to control the AC lamp.

When the light level drops to a certain point the circuit activates the relay turning on the lamp.

It is best to use a 9V DC power source to power the circuit properly.

Circuit Working:

Automatic Night Lamp Circuit Diagram with Photocell

Parts List:

ComponentValue/Part No.Quantity
Resistors (1/4W)10k3
270k1
4.7k1
1k1
Variable Resistor1M Preset1
Photocell LDRORP121
SemiconductorsIC uA7411
Transistor BC5471
Diode 1N40071
Relay9V SPDT1
Lamp–1

The Automatic Night Lamp Circuit with Photocell is cleverly built around a uA741 operational amplifier which acts as a voltage comparator.

At the center of this setup is a light-dependent resistor LDR specifically the ORP12 model paired with a resistor called R1.

Together, they form a potential divider that sends an input voltage to the non-inverting terminal at pin 3 of the op-amp.

During the day, the LDR has a low resistance causing a higher voltage at pin 3.

Since this voltage is greater than the reference voltage at pin 2 the output of the op-amp stays low keeping the transistor off.

As a result the relay does not activate and the lamp stays off.

On the other hand when night comes and it gets dark the resistance of the LDR goes up which lowers the voltage at pin 3.

If this voltage drops below the reference voltage at pin 2 the op-amps output switches to high.

This change turns on the transistor, which powers the relay making the lamp light up.

Formulas with Calculations:

Below are the formulas with calculations for Automatic Night Lamp Circuit with Photocell:

Voltage Divider Formula for LDR (ORP12) and R1:

The voltage at the LDR (Pin 3 of the op-amp) is given by:

V_LDR = (V_CC * R1) / (R1 + R_LDR)

where,

  • V_CC is 9V power supply of the circuit
  • R1 is 10k
  • R_LDR varies based on light intensity

Example Calculation:

In bright light R_LDR = 1kΩ

V_LDR = (9V * 10kΩ) / (10kΩ + 1kΩ)

V_LDR = (90,000) / (11,000)

V_LDR = 8.18V

In darkness R_LDR = 500kΩ

V_LDR = (9V * 10kΩ) / (10kΩ + 500kΩ)

V_LDR = (90,000) / (510,000)

V_LDR = 1.76V

Reference Voltage Calculation (Pin 2 of Op-Amp):

Reference voltage is set by R2 and R3 voltage divider:

V_REF = (V_CC * R3) / (R2 + R3)

where:

  • R2 = 10kΩ
  • R3 = 10kΩ

V_REF = (9V * 10kΩ) / (10kΩ + 10kΩ)

V_REF = (90,000) / (20,000)

V_REF = 4.5V

Relay Activation Condition:

The relay will activate when:

V_LDR < V_REF

From calculations:

  • In bright light: V_LDR = 8.18V > V_REF (4.5V) → Relay OFF
  • In darkness: V_LDR = 1.76V < V_REF (4.5V) → Relay ON

This confirms that the circuit will turn ON the lamp in darkness and OFF in bright conditions.

How to Build:

To build a Automatic Night Lamp Circuit with Photocell following steps are needed to follow:

  • Assemble all the required components mentioned in the above circuit diagram
  • Connect pin 2 of IC1 between LDR- ORP12 and resistor R1.
  • Connect pin 2 of IC1 to pin 6 of IC1 through resistor R4
  • Connect pin 3 of IC1 as a voltage divider between resistor R2 and resistor R3
  • Connect pin 4 of IC1 to GND of the circuit.
  • Connect resistor R5 and R6 from pin 6 of IC1 and GND.
  • Connect pin 7 of IC1 to positive supply of the circuit.
  • Connect base of transistor Q1 between resistor R5 and R6.
  • Connect collector of transistor Q1 to relay coils terminals through diode D1.
  • Connect the emitter of transistor Q1 to GND of the circuit.
  • The load and the 230V AC supply are wired in series with the common and the NO contacts of the relay.

Conclusion:

This Automatic Night Lamp Circuit with Photocell automatically turn on and off based on how much light is around.

It is easy to set up, does not cost a lot and can be used for things like outdoor lights or security lights.

You can also change how sensitive it is by adjusting the resistor values in the circuit.

References:

µA741 General-Purpose Operational Amplifiers datasheet (Rev. G)

Filed Under: LDR Circuits, LED and Lamps

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Different Types of LEDs: A Comprehensive Guide
Next Post: PWM LED Ramping Circuit (Slow Bright, Slow Fade) »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • Alarm Circuits (30)
  • Amplifier Circuits (67)
  • Arduino Projects (29)
  • Audio Circuits (93)
  • Automobile Circuits (19)
  • Battery Charger Circuits (48)
  • Free Energy (13)
  • Heater and Temperature Controllers (9)
  • Indicator Circuits (38)
  • Inverter Circuits (13)
  • LDR Circuits (13)
  • LED and Lamps (111)
  • Meters and Testers (27)
  • Motor Controllers (18)
  • Oscillator Circuits (32)
  • Power Supply Circuits (91)
  • Remote Control Circuits (6)
  • Security and Protection (23)
  • Sensors and Detectors (71)
  • Solar Circuits (16)
  • Timer Circuits (27)
  • Transistor Circuits (56)
  • Transmitter Circuit (12)
  • Tutorials (4)
  • Water Level Controller (4)

Copyright © 2025 | New Circuit Ideas