Objective
This experiment demonstrates how to use a fingerprint sensor to recognize and authenticate users based on their fingerprints.
Components Required
- Fingerprint Sensor (e.g., R307)
- Arduino Board (e.g., Arduino Uno)
- Jumper wires
- Breadboard
Working Principle
The fingerprint sensor captures a user's fingerprint and matches it with pre-stored fingerprints in memory to authenticate the user.
Circuit Diagram
Code
/* * Fingerprint Recognition Experiment * This code authenticates users based on fingerprint recognition using the fingerprint sensor. */ #include#include SoftwareSerial mySerial(2, 3); Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial); void setup() { Serial.begin(9600); mySerial.begin(9600); if (finger.begin()) { Serial.println("Fingerprint sensor initialized."); } else { Serial.println("Fingerprint sensor not detected."); } } void loop() { int fingerID = finger.getFingerprintID(); if (fingerID >= 0) { Serial.print("Fingerprint ID: "); Serial.println(fingerID); } else { Serial.println("No fingerprint detected."); } delay(1000); }
Results
The serial monitor will display the fingerprint ID if the fingerprint is recognized, or a message indicating no fingerprint was detected.
Applications
- Security and access control systems
- Personal identification systems
- Authentication devices