AUTOMATIC DOOR OPEING AND CLOSING USING SMART CARD

Introduction

Security and access control are important requirements in apartments, offices, parking areas, laboratories, and other restricted locations. Traditional keys and manual access systems can be inconvenient and may not provide sufficient control over authorized users.

The Automatic Door Opening and Closing Using Smart Card project provides a simple electronic access-control solution. The system uses a smart card to identify an authorized user. When a valid card is presented to the smart card reader, the microcontroller verifies the card information and activates a motor mechanism to open the door. After a predefined time, the door automatically closes.

This project combines a smart card reader, microcontroller, LCD display, motor driver, DC gear motor, and buzzer to create an automated and controlled door-access system.

Abstract

A smart card is an integrated circuit card capable of storing and processing information. In this project, a contact-type smart card is inserted into a smart card reader, which transfers the stored card information to the microcontroller.

The microcontroller compares the received card information with the authorized data stored in its database. If the card is valid, the system activates a DC gear motor through an L293D motor driver to open the door. The door automatically closes after a specified delay. The LCD displays the card and access status, while a buzzer provides an alert when an unauthorized card is detected.

The system provides a simple and reliable method of automating door access while reducing the need for conventional keys.

Working Principle

The working process of the system is straightforward.

  1. The user inserts the smart card into the card reader.
  2. The smart card reader reads the information stored on the card.
  3. The card information is transmitted to the AT89S52 microcontroller through the serial interface.
  4. The microcontroller compares the received information with the authorized database.
  5. If the card information matches, access is granted.
  6. The microcontroller activates the L293D motor driver.
  7. The DC gear motor operates the door mechanism and opens the door.
  8. The access status is displayed on the 16×2 LCD.
  9. After the programmed delay, the motor operates in the reverse direction and closes the door.
  10. If the card is unauthorized, the door remains closed and the buzzer produces an alert.

Block Diagram

Smart Card → Smart Card Reader → AT89S52 Microcontroller → L293D Motor Driver → DC Gear Motor → Automatic Door

Additional interfaces include:

AT89S52 → 16×2 LCD

AT89S52 → Buzzer

Hardware Components

1. AT89S52 Microcontroller

The AT89S52 acts as the main controller of the system. It receives card information from the smart card reader, verifies the information, controls the LCD, and operates the motor driver according to the access result.

2. Smart Card Reader

The smart card reader reads the information stored in the smart card and sends the data to the microcontroller through a serial communication interface.

3. 16×2 LCD Display

The LCD provides information about the system status, including card identification and access-related messages.

4. L293D Motor Driver

The L293D is an H-bridge motor driver used to control the direction of the DC gear motor. It allows the microcontroller to control the motor safely.

5. DC Gear Motor

The DC gear motor provides the mechanical movement required to open and close the door.

6. Buzzer

The buzzer provides an audible indication when an unauthorized card is detected.

7. MAX232

MAX232 is used as a serial communication interface between the microcontroller system and compatible serial devices.

8. Power Supply

A regulated power supply provides the required voltage to the electronic components. The system uses a 12V step-down transformer, filter capacitor, and 7805 voltage regulator.

Software Requirements

The project can be developed and simulated using:

The microcontroller program is written and compiled using the development environment, while Proteus can be used to simulate and test the circuit before hardware implementation.

Technical Specifications

ComponentSpecification
MicrocontrollerAT89S52
Crystal11.0592 MHz
LCD16×2 HD44780
Motor DriverL293D
MotorDC Gear Motor
Smart Card ReaderContact Smart Card Reader
Serial DriverMAX232
BuzzerYes
LED5 mm Red LED
Voltage Regulator7805
Transformer12V Step-Down
Filter Capacitor1000 µF / 25V

Advantages

The automatic smart-card door system offers several advantages:

  • Provides controlled access to restricted areas
  • Reduces dependence on conventional keys
  • Automatically opens the door for authorized users
  • Automatically closes the door after a programmed delay
  • Provides an alert for unauthorized access
  • Displays system status on an LCD
  • Simple microcontroller-based implementation
  • Suitable for educational and embedded-system projects

Applications

The system can be used in various environments where controlled access is required, including:

  • Parking areas
  • Apartment buildings
  • Offices
  • Laboratories
  • Educational institutions
  • Restricted rooms
  • Small-scale access-control systems
  • Residential security systems

Future Scope

The project can be enhanced with modern technologies to provide more advanced security features. Possible improvements include RFID or NFC-based authentication, biometric verification, wireless monitoring, IoT connectivity, mobile notifications, cloud-based access logs, and multiple-user authentication.

A camera module can also be integrated to capture images during access attempts. An electronic locking mechanism and additional sensors can further improve the safety and reliability of the system.

Conclusion

The Automatic Door Opening and Closing Using Smart Card project demonstrates how a microcontroller-based system can be used to create an automated access-control mechanism. By combining smart-card authentication with a motorized door mechanism, the system provides controlled access to authorized users and prevents unauthorized users from opening the door.

The project is particularly useful for understanding microcontroller programming, serial communication, smart-card technology, motor control, LCD interfacing, and embedded-system design. With additional security and IoT features, the system can be further developed into a more advanced modern access-control solution.