Room Security and Automation System

Jul 14, 2024

Digital Logic Design Simulation-Based Project

Topic: Room Security and Automation System Presenter: Empty Sergeant Borno Instructor: Through the Ground

Scenario

  • Digital Lock: Door with a 5-digit binary PIN.
    • Correct PIN: Door unlocks.
    • Incorrect PIN: Wrong PIN alert.
    • 3 Incorrect PINs: System notifies owner and alarm goes off.
    • Correct PIN before 3rd attempt resets the counter.
  • Inside Room:
    • Motion Detector: Turns on light bulb with any movement.
    • Temperature Check: Turns on air conditioning if high.
  • Security: Alarm activates and notifies the owner if there is unauthorized movement without correct PIN.

Problem Breakdown

  1. Pin Checking System: Verifies the 5-digit input.
  2. Counter: Tracks number of incorrect PIN attempts.
  3. Alarm System: Activates after multiple incorrect attempts or unauthorized movement.
  4. Light Bulb and AC: Turn on based on conditional inputs.
  5. Integration: Combining all the components to create a functional system.

Solution Components

  • Input XNOR Gate: Used to verify if inputs match stored values.
  • Counter Using JK Flip-Flop: Tracks incorrect attempts.
  • Logic Gates for Alarm System, Light, and AC.

Required Components

  • XNOR Gates (5-input): 5 units.
  • 5-input AND Gate: 1 unit.
  • 3-input AND Gates: 2 units.
  • NOT Gates: 4 units.
  • JK Flip-Flops: 2 units.
  • Prop Lights and DCDHX: 5 units.

Simulation Steps

  1. XNOR Gate Functionality: Outputs high only when both inputs are the same, helping to verify the PIN input.
  2. Building Counter: Asynchronous clock setup using JK Flip-Flops and NOT Gates to simulate negative edge flip-flop.
  3. Counter Verification: Ensuring the counter counts correctly with each incorrect attempt.
  4. Complete Project Setup: Integrate all inputs, motion detector, temperature sensor, and alarms.

Demo Highlights

  • Incorrect PIN Attempts: Alarm goes off after 3 incorrect attempts, counter resets with correct PIN.
  • Motion Detection and Temperature Control: Light turns on with motion, AC activates based on temperature.
  • Unexpected Movement: Alarm triggers if there's movement without unlocking the door.

Conclusion

  • Project Completion: Demonstrated a functional room security and automation system using digital logic design.
  • Further Resources: Link to a detailed video tutorial available in the description.

Thank you for watching!