/fingerprint

Fingerprint project using an arduino to unlock PC or Mac

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Fingerprint project CLI tool - Unlock your device using Biometrics

Overview

This project involves creating a biometric security system that utilises an Arduino and a fingerprint scanner to unlock a PC or Mac. The system captures and verifies fingerprints, allowing authorised users to access their computers.

video.mp4

Requirements (Hardware)

  • Arduino Board - As we are going to use the Keyboard library, you must have one of the following devices in this list.
    To purchase the exact one I have, click here.

  • Fingerprint Scanner Module - purchase from here.

  • Jumper Wires - purchase from here.

  • LED button - purchase from here.

  • PCB/Breadboard - purchase from here.

  • Solder Iron - purchase from here.

  • Solder - purchase from here.

  • Resistor - purchase from here.


Software Requirements

  • Python - You must have Python installed on your computer. You can download it from here.

  • Arduino CLI - To use the tools in this project, you must have the Arduino CLI installed.

    For Mac users, you can install it by running the following command in your terminal:

    brew install arduino-cli

    Make sure you have Homebrew installed. If not, you can install it by running the following command in your terminal:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"


    For Windows and Linux users, you can install it from here.

  • Keyboard Library - You can install the keyboard library by running the following command in your terminal:

    arduino-cli lib install "Keyboard"
  • Adafruit Fingerprint Sensor Library - You can install the Adafruit Fingerprint Sensor Library by running the following command in your terminal:

    arduino-cli lib install "Adafruit Fingerprint Sensor Library"

Project Setup Software

  1. Download the project files

    git clone https://github.com/MinasFakhori/fingerprint
  2. Navigate to the python project directory

    cd fingerprint/app
  3. Make a virtual environment and activate it

    python -m venv venv
    source venv/bin/activate
  4. Install the required packages

    pip install -r requirements.txt

Usage

Note: You must have the Arduino connected to your computer and the fingerprint scanner connected to the Arduino. You can find the wiring diagram in the diagrams directory.

  1. Go to the app directory

    cd fingerprint/app
  2. Configure project

    python3.9 app.py project-config
  3. Configure pinout (optional) If you don't know the pinout you can run the following command

    python3.9 app.py pinout-config ----show-pins

    If you wish to change the pinout run the following command

    python3.9 app.py pinout-config
  4. Add a fingerprint You can add a fingerprint by running the following command:

    python3.9 app.py add-fingerprint
  5. Activate the fingerprint scanner You can activate the fingerprint scanner by running the following command:

    python3.9 app.py activate-fingerprint

Troubleshooting

If you encounter issues during setup or usage, consider the following:

Double-check hardware connections. Make sure the Arduino supports the Keyboard library. Review the wiring diagram for any errors. Restart the Arduino and the computer. If you are still experiencing issues, please open an issue on the project's GitHub page.