Fingerprint-based security systems are becoming increasingly popular in schools, homes, offices, and laboratories because they provide higher security than traditional keys and passwords. In this project, you will learn how to build a smart door lock that opens only when an authorized fingerprint is detected.
Step 1: Gather the Required Components
Before starting, collect the following materials:
- Arduino Uno
- R307 Fingerprint Sensor
- Servo Motor (SG90)
- Breadboard
- Jumper Wires
- Green LED
- Red LED
- Buzzer
- 220Ω Resistors
- USB Cable
- 5V Power Supply
Components Overview
4
The fingerprint sensor will identify authorized users, while the servo motor acts as the lock mechanism.
Step 2: Understand the System Operation
The system works as follows:
- User places a finger on the sensor.
- Sensor scans and compares the fingerprint.
- Arduino processes the data.
- If a match is found, the door unlocks.
- If no match is found, the alarm sounds.
Fingerprint
│
▼
Fingerprint Sensor
│
▼
Arduino Uno
│
┌───┴────┐
▼ ▼
Match No Match
│ │
▼ ▼
Unlock Alarm
Door Sounds
Step 3: Construct the Door Model
Build a small demonstration door using:
- Plywood
- Acrylic sheet
- Cardboard
- MDF board
Mount the servo motor behind the door so it can move a locking arm.
Door Prototype Example
7
Step 4: Connect the Fingerprint Sensor
Wire the sensor to the Arduino.
| Fingerprint Sensor | Arduino |
|---|---|
| VCC | 5V |
| GND | GND |
| TX | D2 |
| RX | D3 |
The sensor will store and recognize fingerprints.
Step 5: Connect the Servo Motor
| Servo Wire | Arduino |
|---|---|
| Red | 5V |
| Brown | GND |
| Orange | D9 |
The servo rotates when a valid fingerprint is detected.
Step 6: Add Security Indicators
Install:
- Green LED = Access Granted
- Red LED = Access Denied
- Buzzer = Security Alarm
| Component | Arduino Pin |
|---|---|
| Green LED | D5 |
| Red LED | D7 |
| Buzzer | D8 |
Wiring Arrangement
8
Step 7: Program the Arduino
Upload the fingerprint lock program using Arduino IDE.
The program should:
- Read fingerprint data
- Compare stored fingerprints
- Unlock when matched
- Trigger alarm when unmatched
After uploading, test several fingerprints.
Step 8: Enroll Fingerprints
Using the fingerprint library software:
- Open Arduino IDE.
- Upload the enrollment sketch.
- Scan your finger twice.
- Save the fingerprint ID.
- Repeat for additional users.
The sensor can store multiple fingerprints.
Step 9: Test the System
Authorized User
- Green LED turns ON.
- Servo rotates.
- Door unlocks.
Unauthorized User
- Red LED turns ON.
- Buzzer sounds.
- Door remains locked.
Testing the Prototype
6
Step 10: Collect Data
Record your observations.
| Test Number | Fingerprint Status | Access Granted |
|---|---|---|
| 1 | Registered | Yes |
| 2 | Registered | Yes |
| 3 | Unknown | No |
| 4 | Unknown | No |
Step 11: Improve the Project
To make the project stand out from ordinary fingerprint locks, add:
GSM Security Alert
Send SMS notifications whenever unauthorized access is attempted.
Attendance Monitoring
Record who enters and at what time.
Solar Backup
Keep the system operating during power outages.
Mobile App
Monitor access remotely using a smartphone.
Face Recognition
Add a camera for dual authentication.
Cloud Database
Store access logs online.
Advanced Version Concept
4
Expected Results
The completed system should:
✔ Identify authorized users accurately.
✔ Unlock the door automatically.
✔ Prevent unauthorized access.
✔ Provide visual and audio alerts.
✔ Demonstrate practical application of biometrics and automation.





