When you forget your keys or don't want to enter the pin to unlock your place like house or room..
Just scan your finger and unlock it.
You can manage your fingerprints with advanced Admin Interface.
First of all download the codes from here
And then you should install libraries as .zip in Arduino IDE. To do that, go to Arduino IDE Sketch > Include Library > Add .ZIP Library > (then browse your library)
1x Arduino Uno (but you can use Mega or Leonardo, you should change your Adafruit Fingerprint Sensor pins)
1x Breadboard (We will not use it when the project is over)
1x 1x4 Keypad
1x I2C LCD (You can use normal lcd too.. but it would complicated.
And lots of male-male & female-male jumper wires.
Other libraries is already installed with Arduino IDE
//Libraries
#include <EEPROM.h>
#include "Theme.h"
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Adafruit_Fingerprint.h>
#include <SoftwareSerial.h>
-
The wires which came with fingerprint sensor is not compatible with our Arduino. So you should cut the wires in the middle. And attach your jumper wires there..
-
Connect GND from Arduino to Breadboard's "-" side. We'll use there for Ground pins. After that 5V from Arduino to Breadboard's "+" side. We'll use there for VCC pins.
-
Now time to connect power supply with FPM10A.
VCC --> VCC --- && --- GND --> GND
-
And then you should connect FPM10A to directly Arduino pins. RX --> 3 --- && --- TX --> 2
-
Now, you can try your sensor with Arduino. In Arduino IDE go to Examples > Adafruit Fingerprint Sensor > enroll (You can enroll your fingerprints here)
-
Let's add LCD to our project.. Again GND to GND and VCC to VCC. After that SDA --> A4 --- and --- SCL --> A5
-
We should add our Keypad for control menu. Just leftmost wire goes to GND on Breadboard. Other ones goes to 9,10,11,12 in Arduino in order. I edited codes for it.
//1x4 Keypad Definitions
#define key1 10 //num1
#define key2 9 //num2
#define key3 12 //num3
#define key4 11 //num4
- I defined door pin as '6' but if you need that you can change it.
const int door = 6;
- Now you should attach your locksystem to Arduino. Connect pin 6 to + side of locksystem. And GND --> GND
Make sure you are safe. You should add a relay between locksystem and your project If locksystem pull too much electrical current from Arduino. It could damage your Arduino and make it sick.
If you don't know how to connect relay, here is a basic schematic
Note: If you are using Arduino MEGA or Leonardo change these codes. It actually runs UNO too :)
// RXPIN is IN from sensor
// TXPIN is OUT from arduino
#define RXPIN 2// change this to whatever
#define TXPIN 3// change this to whatever
SoftwareSerial mySerial(RXPIN, TXPIN);
- Final step is uploading your code to your Arduino. Don't forget to choose port from tool in Arduino IDE
In the first time of using you will scan your finger for ADMIN. Never mind you are going to see what you are going to in LCD. I explained step by step there!
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
@furkansimsekli @iamvobi
- Aksaray Science High School Student