Home Smart Door Lock System

by zmn_10 in Circuits > Microcontrollers

73 Views, 0 Favorites, 0 Comments

Home Smart Door Lock System

IMG_2046.jpeg
IMG_2047.jpeg

In this Instructable, we will build a comprehensive smart door lock system that combines multiple authentication methods for enhanced security. The system utilizes RFID for user convenience, face recognition for biometric verification, and remote control via a smartphone app or web interface. This project provides a secure and flexible access management solution that can be implemented in both residential and commercial properties.

Supplies

Step 1: Gather Components

For this project, you will need the following components:

- Raspberry Pi 4

- Arduino Nano IoT33

- Servo Motor

- RFID Reader and Tags

- Camera Module for Raspberry Pi

- OLED Display

- Buzzer

- Connecting wires

- Breadboard (optional)

Step 2: Set Up Hardware

Connect the components as follows:

- Connect the RFID reader to the Arduino Nano IoT33.

- Connect the servo motor to the Arduino Nano IoT33.

- Connect the camera module to the Raspberry Pi.

- Connect the OLED display to the Arduino Nano IoT33.

- Connect the buzzer to the Arduino Nano IoT33.

Ensure all connections are secure and correctly aligned. Use a breadboard if necessary for better organization.

Step 3: Software Setup on Arduino

Install the required libraries on the Arduino IDE:

   - MFRC522

   - WiFiNINA

   - PubSubClient

   - Servo

   - U8g2lib


To install these libraries, follow these steps:

   - Open Arduino IDE.

   - Go to 'Sketch' -> 'Include Library' -> 'Manage Libraries...'.

   - In the Library Manager, search for each library and install them one by one.

Step 4: Software Setup on Raspberry Pi

1. Install Raspbian OS on the Raspberry Pi if not already installed.

2. Connect the Raspberry Pi to the internet and update the system packages:

```

sudo apt-get update

sudo apt-get upgrade

```

3. Install the required Python libraries:

```

pip install face_recognition paho-mqtt picamera2 PyQt5

```

4. Set up the MQTT server on the Raspberry Pi:

```

sudo apt-get install mosquitto mosquitto-clients

sudo systemctl enable mosquitto

sudo systemctl start mosquitto

```

5. Run the Python script on the Raspberry Pi. This script will handle face recognition, process RFID data, and manage the overall access control.

Step 5: Running the System

1. Start the MQTT server on the Raspberry Pi.

2. Execute the Python script on the Raspberry Pi.

3. Power up the Arduino Nano IoT33.

4. Present an authorized RFID tag to the RFID reader. The system will capture an image for face recognition.

5. If both RFID and face recognition are successful, the door will unlock. The OLED display will show the status, and the buzzer will provide auditory feedback.

Conclusion

This smart door lock system integrates RFID and face recognition technologies to provide a secure and convenient access management solution. By following this guide, you can build your own smart door lock system that enhances security for your home or office. Feel free to customize and expand the system to meet your specific needs.


https://github.com/zmn17/11.1PCDHD-Project.git