• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Automation Projects / Day/Night Triggered Automatic Door Lock Circuit

Day/Night Triggered Automatic Door Lock Circuit

Last Updated on January 31, 2024 by Swagatam Leave a Comment

In this post I have explained a simple day, night triggered automatic door lock circuit, which can be used for autonomously unlocking a kennel door during day break, and locking it when night sets in.

Table of Contents
  • Design Request and Specifications
  • Circuit Description
  • Parts List

The idea was requested by an avid reader of this blog, Mr. Norman, as given below.

Design Request and Specifications

I am working on a circuit to power a linear actuator.

I have connected a mechanism to translate the linear motion of the actuator into a rotational motion. When the actuator pushes, an 18mm linkage rotates 90 degrees which operates a latch bar to latch a dog door.

The idea is to allow the dogs to exit when daylight occurs and to latch the door during the night. It must have a one shot operation to prevent the linear actuator from burning up.

The circuit is supposed to power one relay in daylight and the other relay at dark which is supposed to latch and unlatch the dog door by powering the a vehicle door solenoid.

Circuit Description

The complete circuit diagram of the day/night triggered automatic door lock circuit is shown in the following figure.

The working of the circuit can be understood with the following points:

warning message: electricity is dangerous, proceed with caution
Day/Night Triggered Automatic Door Lock Circuit diagram

The day light and darkness detector is configured around the two BC547 transistor and the LDR circuit.

During day time the LDR resistance is low which allows the left side BC547 to remain switched ON. Due to this, the right side BC547 base is grounded and it is rendered switched OFF.

The above situation also keeps the upper DPDT relay turned OFF with its contacts resting at the N/C positions.

With the upper DPDT relay contacts at the N/C contacts keeps the lower relay also turned OFF and its contacts also remain at its N/C position.

Since the vehicle solenoid is configured with the N/O contacts of the lower relay, it also remains disabled in the current position.

In this switched OFF condition, the push-pull solenoid is initially set such that it stays in the retracted position, meaning its shaft is pulled inwards.

In this retracted position it allows the attached door lock (latch) to be in the open condition.

Hence, during day time the entire circuit remains disabled allowing the kennel door spindle to remain unlocked.

Now, during evening time when it starts getting darker, the LDR resistance increases. Finally, it reaches a point where no voltage can reach the base of the left side BC547 and it switches OFF.

As soon as the left side BC547 is switched OFF, the right side BC547 switches ON via the 10k biasing resistor, causing the upper DPDT relay to activate.

The contacts of the upper relay now shift to their N/O contacts causing a change of polarity for the voltage at its N/O contacts.

At this point, two things happen simultaneously.

The changed voltage polarity at the N/O contacts of the upper relay sends a momentary supply to the coil of the lower DPDT relay.

Due to this momentary supply, the lower relay activates so that its contacts now shift towards the N/O contacts.

Since the solenoid latch is configured with these N/O contacts of the lower relay, the solenoid now gets the required supply and it triggers ON causing its shaft to shoot and push outwards.

The above operation causes the attached door lock spindle to get locked.

The lower relay remains switched ON only momentarily, maybe for a second or two, until the two 1000uF capacitors are fully charged. When this happens the lower relay quickly turns OFF and reverts to its N/C contacts, disconnecting the supply from the solenoid terminals. This is important, because a continuous supply across the solenoid wires would heat up the device and burn its motor winding.

Thus, during nighttime the kennel door remains locked and secured.

The next day, the cycle repeats but in the opposite way. In day light the upper relay is turned OFF so that its contacts return back to its N/C position.

This yet again causes a polarity changeover for the lower relay and the solenoid such that the solenoid now gets a momentary supply with an opposite polarity.

This changed-over polarity of the supply across the solenoid wires causes its motor to rotate backwards so that its shaft now retracts and is pulled inward.

The above action causes the kennel door to get instantly unlocked.

Parts List

  • Resistors ae 1/4 watt CFR
  • 33k, 1k, 10k = 1 each
  • LDR = 1
  • Transistor BC547 = 2
  • Capacitor 1000uF / 25V = 2
  • Please also add a 1000uF parallel to the upper relay coil.
  • DPDT Relay = 2
  • Vehicle Door Solenoid 12V = 1

This concludes our article on day, night triggered automatic door lock circuit which can be used to keep a kennel door locked during night and unlocked during daytime.

The above explained lock circuit concept is universal and can be used for any similar application.

For any relevant questions and doubts, please feel free to comment below and get quick replies from the author.

You'll also like:

  • 1.  Line Follower Robot Circuit using Arduino
  • 2.  Ultrasonic Pest Repellent Circuit
  • 3.  Automatic Night Activated Wireless Light Circuit for Paintings
  • 4.  Automatic Irrigation Circuit using Arduino
  • 5.  Smart Street Lamp Circuit with Motion Sensor
  • 6.  Solar Insect Killer Circuit for Protecting Crops in Farms

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « Flashlight Activated Burglar Alarm Circuit
Next Post: Simple Motorcycle Security Alarm Circuit »

Reader Interactions

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

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

Primary Sidebar

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (104)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (101)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

People Also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Recent Comments

  • Swagatam on 10 LED Tachometer Circuit Diagram
  • Swagatam on How Shunt Regulator TL431 Works, Datasheet, Application
  • Göran on 10 LED Tachometer Circuit Diagram
  • SA on How Shunt Regulator TL431 Works, Datasheet, Application
  • Swagatam on Adjustable 0-100V 50 Amp SMPS Circuit

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations