This is an old revision of the document!


Smart Locker

Author: Mihai-Ionuț Păunescu 332CD

Introduction

The project consists of developing a smart locker system controlled by an ATmega328P-XMINI microcontroller.

The locker can be unlocked using:

  • an RFID card
  • a PIN code entered through a keypad

The system controls an electromagnetic locking mechanism and provides user feedback using LEDs, a buzzer and a display.

The idea for this project started from observing the locker systems commonly used in gyms, where access is usually protected only by a PIN code.

In many situations, it is relatively easy for a malicious person to observe the PIN entered by another user. Because of this, the project introduces an additional layer of security by combining PIN authentication with RFID card verification.

The goal is to create a smarter and more secure locker system using multiple authentication methods.

The project aims to improve the security and reliability of traditional locker systems by using two different authentication methods instead of relying only on a PIN code.

General Description

The system is built around the ATmega328P-XMINI microcontroller which coordinates all hardware modules.

Main modules:

  • RFID reader module
  • keypad for PIN input
  • electronic solenoid lock
  • display module
  • LEDs and buzzer for feedback

System flow:

  • the display continuously shows a welcome message while the system waits for user interaction
  • the user first scans the RFID card
  • if the RFID authentication is successful:
    • the display asks the user to enter the PIN code
    • the green and red LEDs start blinking alternately
  • if the RFID authentication fails:
    • an error message is displayed
    • the user is asked to scan the card again
  • after entering the PIN:
    • if the PIN is correct:
      • the green LED remains turned on for a few seconds
      • the buzzer emits a success confirmation sound
      • the electromagnetic lock opens
      • the display shows a confirmation message indicating that the locker has been unlocked
    • if the PIN is incorrect:
      • the display shows an error message
      • the red LED turns on
      • the buzzer emits a failure sound
      • the locker remains locked
  • if the user enters the wrong PIN three consecutive times:
    • the buzzer emits a louder warning sound to alert nearby people that unauthorized access may be attempted

Hardware Design

Components List

Component Purpose
ATmega328P-XMINI Main microcontroller
RFID RC522 Module RFID card reading
Keypad PIN input
Electromagnetic Lock Locking mechanism
MOSFET E-Switch Module Controls the electromagnetic lock using an external power supply
Breadboard Circuit prototyping
Jumper wires Electrical connections
OLED Display User interface
Green and Red LEDs Status indication
Buzzer Audio feedback
External Power Supply Power supply for the electromagnetic lock

Software Design

Results

References

pm/prj2026/jan.vaduva/mihai.paunescu1801.1778067215.txt.gz · Last modified: 2026/05/06 14:33 by mihai.paunescu1801
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0