Project tutorial
Interfacing FPM10A (50-DY) Optical Fingerprint Sensor

Interfacing FPM10A (50-DY) Optical Fingerprint Sensor © CC BY-NC-SA

A short and easy tutorial on how to interface the module with UNO board using simple examples.

  • 1,202 views
  • 1 comment
  • 12 respects

Components and supplies

About this project

Hi, this is a simple tutorial on how to interface the FPM10A optical fingerprint sensor with UNO board, I used some examples and a little code that permits you to associate fingerprints templates with names, then it displays them using LCD i2c screen...Hope you like it.

Don't forget to visit SurtrTech.com

Code

fingerprint_lcd.inoArduino
Code for identifying fingerprints and show their IDs and the names related to them. (Although, you should use the enroll code before to add fingerprints and associate them with IDs).
/* This code is to use with Adafruit FPM10A or DY50 Fingerprint optical Sensor and lcd i2c, it's a modification from the Adafruit example
 * Wiring Sensor/Uno  GND/GND 3.3v/3.3v RX/D3 TX/D2 || LCD i2c/UNO GND/GND Vcc/5v SDA/A4 SCL/A5
 * The code scans the finger when you place it on the sensor and shows you the name and Id if found a match
 * Refer To SurtrTech for more information || Lebouiha A.Y
 */

#include <Adafruit_Fingerprint.h>    //Libraries needed
#include <SoftwareSerial.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>

#define I2C_ADDR 0x27          //LCD i2c stuff
#define BACKLIGHT_PIN 3
#define En_pin 2
#define Rw_pin 1
#define Rs_pin 0
#define D4_pin 4
#define D5_pin 5
#define D6_pin 6
#define D7_pin 7

String Names[] = { "Yassine", "Surtr", "Tech", "WannaDuino" }; //This is the array of names we declare you can add if you want
                                                               //Don't forget the order so Yassine has ID 1 but his place is Names[0]

SoftwareSerial mySerial(2, 3);                                 //Connects with TX with D2 and RX with D3
LiquidCrystal_I2C lcd(I2C_ADDR,En_pin,Rw_pin,Rs_pin,D4_pin,D5_pin,D6_pin,D7_pin); //LCD declaring

Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);                    //Fingerprin sensor declaring

void setup()  
{
  Serial.begin(9600);
  finger.begin(57600);              //Sensor baude rate
  lcd.begin (16,2);
  lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE);
  lcd.setBacklight(HIGH);
  lcd.home ();
  finger.getTemplateCount();        //Counts the number of templates stored in the sensor flash memory
  lcd.setCursor(0,0);
  lcd.print("Scan ready");
}

void loop()                     
{
  getFingerprintIDez(); //The only function we are running :D
  delay(50);            //don't need to run this at full speed.
}


// returns -1 if failed, otherwise returns ID #
int getFingerprintIDez() {
  uint8_t p = finger.getImage();        //Image scanning
  if (p != FINGERPRINT_OK)  return -1;  

  p = finger.image2Tz();               //Converting
  if (p != FINGERPRINT_OK)  return -1;

  p = finger.fingerFastSearch();     //Looking for matches in the internal memory
  if (p != FINGERPRINT_OK)  return -1;
  
  // found a match!
  lcd.clear();
  lcd.print("Found match !");
  lcd.setCursor(0,1);
  lcd.print(finger.fingerID);           //If a match is found it shows the ID of the finger
  lcd.setCursor(2,1);
  lcd.print(Names[finger.fingerID-1]); //Then the name we gave it to it and the -1 is to remove the shift
  delay(3000);
  lcd.clear();
  lcd.print("Scan ready");
  return finger.fingerID; 
  
}

Schematics

FPM10A Wiring
Basic wiring, using the module + LCD i2c Screen
Sans titre ilqzpwdjhp

Comments

Similar projects you might like

DHT11 Humidity + Temperature Sensor with 16x2 LCD display

Project showcase by onatto22

  • 9,054 views
  • 1 comment
  • 17 respects

Soil Moisture Sensor With LCD Display

Project tutorial by Patel Darshil

  • 19,347 views
  • 4 comments
  • 37 respects

Temperature sensor

Project tutorial by Grant

  • 12,268 views
  • 6 comments
  • 30 respects

Ultrasonic Sensor with Alarm, LCD and Temperature

Project tutorial by MichDragstar

  • 4,645 views
  • 7 comments
  • 19 respects

Touch Sensor and Sound Sensor Controlling AC/DC Lights

Project showcase by Anbumachi

  • 1,160 views
  • 2 comments
  • 5 respects

Arduino Modules - Flame Sensor

Project tutorial by SURYATEJA

  • 1,875 views
  • 0 comments
  • 4 respects
Add projectSign up / Login