Automated Lamp Using Op Amp 741 and LDR

by Alvito7710 in Circuits > Microcontrollers

2406 Views, 0 Favorites, 0 Comments

Automated Lamp Using Op Amp 741 and LDR

supply.png

On the occasion of this design task, an automatic lamp based on a light sensor where the system can distinguish dark and light through the LDR or Photoresistor sensor.

Supplies

  • 1 LDR/Photoresistor
  • 2 1kΩ resistors
  • 1 Potentiometer/Variable resistor
  • 2 9V batteries
  • 1 Op Amp 741 IC
  • 1 Diode (1N5819)
  • 1 PNP Transistor (BC557)
  • 1 5V SPDT Relay (hk4100f-dc5v-shg)
  • 1 Bulb/ LED
  • Jumper wires
  • 1 Breadboard

Objectives of the System

1) Help and lighten the workload of humans in the future in managing simple lamps.

2) As a solution to save power during the day because the lights will automatically turn off during the day.

3) Can be applied to street lamps and vehicle lamps.

Base Theory

The base of the circuit is an Op Amp 741 which is used as a voltage comparator here. The R1 and LDR is used as the inverting input and the Potentiometer/Variable Resistor is used as the non-inverting input for the Op Amp. The Op Amp then sends the output to the transistor where it will determine whether the relay will switch or not depending on the inputs entering the Op Amp.

Schematic

schematic.png

Block Diagram

block diagram tr cne.png

Flowchart

fc tr cne.png

Simulation Circuit

simulation.png

Place Breadboard and Connect Both Positive Rails and Negative Rails Together

3755.jpg
3756.jpg

Place Op Amp on the Breadboard. the Orientation of the Op Amp Can Be Seen by the Dot Being on the Left Side

3757.jpg

Place Resistor and LDR and Connect Them to the Positive and Negative Rail on the Breadboard

3758.jpg
3759.jpg

Connect Them to Pin 2 (inverting) of the Op Amp. the Pins of the Op Amp Is As Seen.

3760.jpg
unnamed.gif

Connect Potentiometer and Connect the Output Pin (middle) to Pin 3 (non-inverting) of the Op Amp. Connect the Other Two Pins to Power Rail and Ground Rail

3761.jpg
3762.jpg
3763.jpg

Connect Pin 7 of the Op Amp to the Positive Rail and Connect and Pin 4 to the Negative Rail

3764.jpg

Connect Pin 6 of the Op Amp to a 1k Resistor and Connect the Other End to Pin 2 (base) of the PNP Transistor. Connect the First Pin (collector) to Negative Rail. Transistor Pins Are As Seen in the Diagram.

3766.jpg
bc557 pinout.png

Connect Diode With the Gray Stripe Facing Upwards and Connect the Top Part to Positive Rail and Connect the Bottom Part to Pin 3 (emitter) of the Transistor.

3767.jpg

Place the Relay to the Breadboard and Connect the Top and Bottom Part of the Diode to the Coil Pin on the Relay. Relay Pins Are As Seen in the Diagram

3768.jpg
HK4100F-DC5V-SHG.png

Connect N/O (Normally Open) Pin of the Relay to the Positive Wire of the Bulb.

3769.jpg

Connect 9V Battery With the Red Wire Connected to the COMMON Pin of the Relay and the Black Wire Connected to the Black Wire of the Bulb.

3770.jpg
3771.jpg

Connect a 9V Battery to the Breadboard. and Now Set the Amount of Darkness Needed to Activate the Circuit With the Potentiometer.

3772.jpg
20211227_180428.jpg

Youtube Video Link : Https://youtu.be/22GbMnEBXis

References