Built to order

Biometric Door Lock using R307 Fingerprint Sensor and Arduino

This project builds a fingerprint door lock using an R307 optical fingerprint sensor and an Arduino Uno that unlocks a servo latch only for enrolled fingerprints. A finger is imaged at 500 DPI and matched 1:N against up to 1000 stored templates; on a match the SG90 servo retracts the bolt and the LCD shows ACCESS GRANTED, while unknown fingers sound the buzzer and trigger a lockout. Authentication runs entirely on the Arduino — no Wi-Fi, keypad or RFID. Suitable for B.E./B.Tech final-year projects in Electronics & Telecommunication, Electrical and Computer Engineering.

Chat on WhatsApp — get a quotation

Electronics / E&TC Arduino UnoArduino IDESG90 servo motor16x2 LCD · I2CR307 fingerprint sensorAdafruit Fingerprint Sensor libraryEmbedded C Arduino sketchesUART TTL serialHardware
Biometric Door Lock using R307 Fingerprint Sensor and Arduino — project thumbnail preview
More project photos (2)

The problem

This project builds a biometric door lock that opens for enrolled fingerprints, using an R307 optical fingerprint sensor, an Arduino Uno and an SG90 servo driving a latch bolt. A finger on the sensor is imaged at 500 DPI, converted into a minutiae template and searched 1:N against the stored templates; a match retracts the bolt and shows ACCESS GRANTED on the LCD, while an unknown finger sounds the buzzer and shows ACCESS DENIED. Keys are copied or lost and codes are shared or forgotten, while a fingerprint cannot be lent or guessed; each enrolled finger is an identity the owner can add or delete. Authentication runs entirely on the Arduino, with no Wi-Fi, keypad or RFID, so the lock keeps working when the network is down. Builder note from the build: enrolment needs the same finger placed twice, and the sensor must sit flat at finger height — a tilted sensor returns a partial image that fails to match.

SYSTEM FLOW

6 components 5 connections

Live flow
Drag to explore
100%
userFingertip

Placed on the R307 sensor window.

Follow the working sequence

How it works

From finger to open door, the whole sequence runs locally. The R307 lights the fingertip with its green LED and photographs the ridge pattern at 500 DPI; its on-board processor extracts the minutiae — the ridge endings and bifurcations that make a fingerprint unique — and builds a 512-byte template. That template is searched 1:N against the templates stored in the sensor's flash memory, and the sensor reports either a matching ID or no match. On a match the Arduino rotates the SG90 servo, the bolt retracts, the LCD shows ACCESS GRANTED and the door stays open for approximately 5 seconds before relocking. On a failed attempt the buzzer sounds, the LCD shows ACCESS DENIED and a counter increments; after 3 failures the lock enters an approximately 30-second lockout. Enrolment is a separate admin flow in which the same finger is captured twice so the two images can be checked against each other before a template is stored.

  1. The admin presses the enrol button and the LCD prompts for a finger; the same finger is placed twice so the sensor can build one template from two matching captures, and the template is stored in the sensor's flash memory under a numbered ID.
  2. In normal use the LCD shows PLACE FINGER; when a finger touches the sensor window, the green LED lights the fingertip and the optical sensor captures a 500 DPI image of the ridge pattern.
  3. The R307's on-board processor extracts minutiae from the image, builds a 512-byte template and searches it 1:N against the stored templates, returning the matching ID or a no-match result over UART to the Arduino.
  4. On a match the Arduino drives the SG90 servo to rotate the bolt out of the strike plate, shows ACCESS GRANTED with the matched ID on the LCD, sounds a short confirmation beep and holds the door open for approximately 5 seconds.
  5. After the hold time the servo returns the bolt to the locked position and the LCD goes back to PLACE FINGER, ready for the next user.
  6. On a failed attempt the LCD shows ACCESS DENIED, the buzzer sounds a longer tone and a counter increments; after 3 consecutive failures the lock enters an approximately 30-second lockout and ignores further attempts until it clears.

Tech stack:

  • Arduino Uno · ATmega328P · 16 MHz
  • R307 optical fingerprint sensor module
  • Adafruit Fingerprint Sensor library
  • SG90 micro servo motor
  • 16x2 LCD with I2C backpack
  • Arduino IDE
  • Breadboard · jumper wires · 5 V DC supply
  • Buzzer · push button · wooden latch mockup
Parameter Value
Controller Arduino Uno · ATmega328P · 16 MHz clock
Fingerprint sensor R307 optical module · 500 DPI resolution (datasheet value)
Template capacity 1000 fingerprints (datasheet value)
Template size 512 bytes per template (datasheet value)
Sensor interface UART TTL · 57600 baud default (datasheet value)
Sensor supply 3.6–6.0 V DC (datasheet value)
Sensor current Typically 50 mA · peak 80 mA (datasheet value)
Sensor matching time Under 0.5 seconds (datasheet value)
False acceptance rate Under 0.001% at security level 3 (datasheet value)
Servo SG90 · 1.8 kg·cm stall torque at 4.8 V (datasheet value)
Servo travel Approximately 180° rotation
Servo supply 4.8–6.0 V DC (datasheet value)
Display 16x2 LCD · I2C interface
Unlock hold time Approximately 5 seconds (configurable in firmware)
Failed-attempt lockout 3 attempts then approximately 30-second lockout (configurable in firmware)
Power supply 5 V DC · 1 A adapter recommended
Connectivity Local only · no Wi-Fi · no cloud

Project features

The lock is built around four capabilities that work together as one local system. First, fingerprint enrolment and 1:N matching: the R307 sensor stores up to 1000 templates in its own flash memory, so the Arduino never holds fingerprint images and matching runs inside the module. Second, a servo-driven latch: on a match the SG90 servo rotates the bolt out of the strike plate and holds the door open for a few seconds before locking again. Third, clear feedback at the door: the 16x2 LCD names the state at every step, from PLACE FINGER to ACCESS GRANTED or ACCESS DENIED, and the buzzer marks both success and failure. Fourth, admin control and abuse protection: an admin mode enrols and deletes fingerprints, and repeated failed attempts trigger a timed lockout. Everything below is implemented in the base build; Wi-Fi logging, a keypad backup and a solenoid lock are optional additions, not part of it.

  • [Fingerprint enrolment in admin mode] An admin button puts the lock into enrolment mode, and a new finger is captured twice to build one template that is stored in the sensor's own flash memory under a numbered ID.
  • [1:N fingerprint matching] A placed finger is searched against every stored template inside the R307 module, so the user never selects an ID first — the sensor returns the matching ID or reports no match.
  • [Servo-driven latch unlock] On a match the Arduino drives the SG90 servo to rotate the latch bolt out of the strike plate, holds the door open for approximately 5 seconds, then returns the bolt to the locked position automatically.
  • [LCD status display] The 16x2 LCD shows PLACE FINGER while idle, ACCESS GRANTED with the matched ID on success, and ACCESS DENIED on failure, so the state of the lock is visible without opening a serial monitor.
  • [Buzzer alerts and failed-attempt lockout] A short beep confirms a successful unlock, a longer tone marks a failed attempt, and 3 consecutive failures trigger an approximately 30-second lockout during which the sensor ignores new attempts.
  • [Admin delete and user management] Admin mode can delete a single fingerprint by ID or clear the whole template library, so a lost right of access is removed without re-enrolling everyone else.
  • [Fully offline local authentication] All matching, decisions and actuation run on the Arduino and the sensor with no Wi-Fi, no cloud account and no phone app, so the lock works during a network outage.

What is included

  • Working biometric door-lock prototype with Arduino Uno, R307 sensor, SG90 servo latch, LCD and buzzer
  • Complete Arduino firmware source code with enrolment, matching, lockout and admin modes
  • Circuit and wiring documentation with pin connections for every module
  • Component list with the exact modules used
  • Enrolment and admin-mode guide for adding and deleting fingerprints
  • Project abstract PDF
  • Project report covering background, methodology, working and limitations
  • PPT presentation for final review
  • Viva Q&A preparation document (optical sensing, minutiae matching, UART, servo control, lockout logic)

Limitations & prerequisites

  • The SG90 is a 9 g plastic-gear hobby servo, so it drives a light model latch only — it is not a replacement for a real door lock and the build carries no security certification.
  • Wet, dirty, cut or heavily worn fingertips may fail to match, because the optical sensor needs a clear ridge image; the sensor window must be kept clean.
  • Templates live in the sensor's own flash memory, so replacing the R307 module loses every enrolment and all fingers must be re-enrolled.
  • There is no remote unlock, no access log and no backup entry method in the base build; if power fails the latch stays in its last position, so a manual override is an optional addition.
  • The Arduino USB port alone can brown out when the servo moves under load — the servo must be powered from a separate 5 V DC supply with a shared ground.
  • The datasheet false acceptance rate of under 0.001% is a module specification at security level 3, not a measured result for this build; no accuracy figure is claimed from testing.

Frequently Asked Questions

How is this different from the other door-lock projects on this site?

This is a dedicated R307 fingerprint biometric door lock: fingerprint-only local authentication, with no keypad, no Wi-Fi and no RFID. The Wi-Fi door lock unlocks remotely over the web and has no biometrics at all; the IoT smart door lock combines fingerprint with RFID and OTP; the digital safe lock is a keypad safe box, not a door; and the PIR automatic door opener opens on motion with no authentication. If the requirement is "only an enrolled finger opens this door", this is the build that does exactly that and nothing else.

Is this project suitable for a final-year project?

Yes — for Electronics & Telecommunication, Electrical and Computer Engineering programs. It demonstrates optical biometric sensing, minutiae-based template matching, UART communication, servo actuation and embedded state-machine design in one working prototype, and the enrolment, matching and lockout flows give a guide clear viva questions with concrete answers.

How does the R307 sensor actually recognise a fingerprint?

The sensor shines its green LED onto the fingertip and photographs the ridge pattern at 500 DPI, then its on-board processor extracts minutiae — ridge endings and bifurcations — and stores them as a 512-byte template. Matching compares a fresh template against the stored templates and returns the matching ID. The Arduino never sees a fingerprint image; it only receives an ID or a no-match result over UART, which keeps the design simple and the biometric data inside the sensor.

What happens after three wrong fingerprints?

After 3 consecutive failed attempts the lock enters an approximately 30-second lockout, sounds the buzzer, shows the lockout on the LCD and ignores further attempts until the timer clears completely. The counter resets on a successful match, so one correct fingerprint immediately restores normal use. The 3-attempt limit and the 30-second duration are both configurable in the firmware, so a guide's requirement for a stricter or gentler lockout is a one-line change rather than a redesign.

Does this lock need Wi-Fi or internet?

No — every step, from imaging and template matching to the unlock decision and the LCD and buzzer feedback, runs locally on the Arduino and the R307 sensor, with no Wi-Fi module, no cloud account and no phone app needed at all. That is a deliberate design choice: the lock keeps working during a network outage, and there is no account or server that could leak fingerprint data. Wi-Fi event logging can be added later as an optional module, but it is not part of the base build.

Can this project be customised?

Yes, within realistic limits. Common additions are a keypad as a backup entry method, a solenoid lock in place of the servo latch for a heavier door model, Wi-Fi logging of unlock events, and more enrolled users up to the sensor's 1000-template capacity. Each addition is quoted separately, because the base build is deliberately fingerprint-only; adding a keypad or Wi-Fi changes the wiring, the firmware and the power budget.

Components & software requirements
  • Arduino Uno · ATmega328P · 16 MHz
  • R307 optical fingerprint sensor module
  • Adafruit Fingerprint Sensor library
  • SG90 micro servo motor
  • 16x2 LCD with I2C backpack
  • Arduino IDE
  • Breadboard · jumper wires · 5 V DC supply
  • Buzzer · push button · wooden latch mockup
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation