How to make Arduino based fingerprint door lock?

Hey,

In today’s blog we are going to make a Arduino based fingerprint door lock.

WHAT YOU NEED :

Arduino nano with USB cable

Fingerprint sensor module

16×2 LCD module

Relay module

Door lock(We are using DC motor)

7 to 12V DC power supply

Jumper cables

CODE :

#include <Adafruit_Fingerprint.h>

# include <LiquidCrystal_I2C.h>

# include<SPI.h>

#include<SoftwareSerial.h> 

SoftwareSerial mySerial(2, 3);

finger.begin(57600);

if(finger.verifyPassword())

 { lcd.setCursor(0, 0); 

 lcd.print(” FingerPrint “);

 lcd.setCursor(0, 1); 

 lcd.print(“Sensor Connected”); } 

  else { lcd.setCursor(0, 0); 

 lcd.print(“Unable to found”);

 lcd.setCursor(0, 1); 

 lcd.print(“Sensor”); 

  delay(3000); 

 lcd.clear(); 

 lcd.setCursor(0, 0); 

 lcd.print(“Check Connections”); 

  while (1) { delay(1); } }

uint8_t p = finger.getImage();

if (p != FINGERPRINT_OK) { lcd.setCursor(0, 0);     

lcd.print(” Waiting For”);

lcd.setCursor(0, 1);

lcd.print(” Valid Finger”);

return -1; } p = finger.image2Tz();

if (p != FINGERPRINT_OK) {

lcd.clear();

lcd.setCursor(0, 0);

lcd.print(” Messy Image”);

lcd.setCursor(0, 1);

lcd.print(” Try Again”);

delay(3000);

lcd.clear();

return -1; } p = finger.fingerFastSearch();

if (p != FINGERPRINT_OK) { lcd.clear();

lcd.setCursor(0, 0);

lcd.print(“Not Valid Finger”);

delay(3000);

lcd.clear();

return -1; }

Making electronics project is too pretty simple with Us.

Join and make with Us.

Leave a Reply

Your email address will not be published. Required fields are marked *