-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathID.ino
More file actions
37 lines (33 loc) · 734 Bytes
/
ID.ino
File metadata and controls
37 lines (33 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "FPS_GT511C3.h"
#include "SoftwareSerial.h"
FPS_GT511C3 fps(8, 7); // (Rx,Tx)
void setup()
{
Serial.begin(9600); //set up Arduino's hardware serial UART
delay(100);
fps.Open(); //send serial command to initialize fps
fps.SetLED(true); //turn on LED so fps can see fingerprint
}
void loop()
{
// Identify fingerprint test
if (fps.IsPressFinger())
{
fps.CaptureFinger(false);
int id = fps.Identify1_N();
if (id <200)
{//if the fingerprint matches, provide the matching template ID
//Serial.print("Verified ID:");
Serial.println(id);
}
else
{//if unable to recognize
//Serial.println("Finger not found");
}
}
else
{
//Serial.println("Please press finger");
}
delay(100);
}