Skip to content

YoussefAdel170/Door-Locker-Security-System

Repository files navigation

🔐 Door Locker Security System - ATmega32

📖 Overview

This project implements a secure door locker system using two ATmega32 microcontrollers.
The system allows password-protected door access, managed through a Human Machine Interface (HMI) and a Control ECU.

  • HMI ECU: Interfaces with the user via 4x4 keypad and 2x16 LCD
  • Control ECU: Handles password validation, door control, and alarm activation

⚙️ Key Features

  • Password Protection: Users can set, enter, and change passwords securely
  • Door Lock/Unlock: DC motor rotates to lock or unlock the door
  • Security Alarm: Buzzer triggers after multiple incorrect password attempts
  • EEPROM Storage: Securely stores the system password
  • UART Communication: Facilitates communication between the two microcontrollers

🏗 Components

  • Microcontrollers: ATmega32 (2 units)
  • LCD: 2x16 LCD for displaying messages
  • Keypad: 4x4 Keypad for user input
  • DC Motor: Controls door locking/unlocking
  • Buzzer: Security alarm
  • EEPROM: Stores passwords
  • Other: UART, GPIO, Timers, PWM

🏛 System Design

Layered Architecture

  • HMI ECU: Handles user input and LCD display
  • Control ECU: Manages password validation, motor, and buzzer

Steps:

  1. Create a Password: User sets a 5-digit password
  2. Open Door: Enter the password to unlock
  3. Change Password: Re-enter current password to set a new one
  4. Security Mechanism: 3 wrong attempts → buzzer sounds for 1 minute & system locks

🖥 Screenshots

  • System Diagram
    System Diagram

  • State Diagram
    State Diagram


🎥 Simulation Video

Watch the simulation on LinkedIn:
Door Locker System Simulation Video


🔧 Drivers & Functionality

  • GPIO Driver: Input/output management for both ECUs
  • LCD Driver: Display messages on 2x16 LCD
  • Keypad Driver: Reads user input from 4x4 keypad
  • Motor Driver: Controls door motor
  • EEPROM Driver: Stores and retrieves passwords
  • UART Driver: Communication between HMI and Control ECU
  • Timer Driver: Motor timing and message display
  • Buzzer Driver: Triggers alarm on security events

🛠 Installation & Usage

Hardware Setup

  • Connect ATmega32 microcontrollers, LCD, keypad, DC motor, EEPROM, and buzzer as per the project schematic

Software Setup

  • Ensure all drivers (UART, GPIO, Timer, LCD, Keypad, Motor, Buzzer, EEPROM) are implemented
  • Upload code to the two ATmega32 microcontrollers

Testing

  • Set a password
  • Test door unlocking, password change, and security alarm

About

This project implements a secure door locker system using two ATmega32 microcontrollers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors