portfolio/STM32 2-Factor Lock

STM32 2-Factor Lock

STM32f407 based smart fingerprint lock system.

CSTM32Security

Demo Videos

Overview

This project is a fingerprint module based smart lock build over STM32F407. I wanted to make a fingerprint lock system that is has two stage autorization and is easy to use.

Fingerprint recognition technology and traditional password entry method are combined to achieve a high degree of security for user authentication. The system consists of a microcontroller, a fingerprint scanner, an electromagnetic lock, a TFT LCD display, a keypad and a buzzer module. These subsystems interact to implement a series of functions, including accurate fingerprint identification and unlocking. C programming is used for modular programming, which is convenient for debugging, maintenance, and updating. After real-world testing, the system has high recognition speed, fast response speed, and can adapt to various usage conditions.

Project Goal: Create a prototype of an embedded security system that demonstrates biometric integration with microcontroller platforms.

Key Features

  • Dual-factor authentication - combining fingerprint and password
  • Fingerprint scanning and template matching - 0.5 seconds at most
  • Advanced security protocols - password verification with timeout protection
  • Multi-level user management - administrator privileges and control panel
  • Intuitive interface - TFT display with clear visual feedback
  • Audio confirmation - PWM-controlled buzzer for system feedback

Technical Specifications

Hardware Platform

  • STM32F407 microcontroller
  • R308 optical fingerprint scanner
  • 4x4 matrix keypad
  • 1.8" TFT LCD display

Communication

  • UART - Fingerprint scanner
  • SPI - TFT display interface (MSP1803)
  • GPIO - Matrix keypad scanning
  • PWM - Audio feedback generation
  • Timer - Precise timing control

Security Features

  • 500 unique fingerprint templates
  • < 0.001% false recognition
  • < 0.5% false rejection

Development Stack

  • STM32CubeIDE platform
  • ARM GCC compiler
  • Customized HAL library integration

System Architecture

Loading graph...