SM630 Fingerprint Helper Library
This is a helper library for SM630 Fingerprint Module.
It provides a higher abstraction layer for adafruit/Adafruit-Fingerprint-Sensor-Library [https://github.com/adafruit/Adafruit-Fingerprint-Sensor-Library]
NB: This library supports Arduino/ESP8266, while the base library does not support because it does not work with SoftwareSerial. Thanks to @gilangwinduasmara for the PR [adafruit/Adafruit-Fingerprint-Sensor-Library#24]
-
Download and place in your Arduino project library
-
Include the header in your main program #include <Fingerprint_Helper.h>
-
Create an instance
Fingerprint_Helper fingerH(&fpSerial, &FpDebug);Hints:
fpSerial - can be either HardwareSerial or SoftwareSerial
FpDebug - a simple callback for debugging
// Debug Callback
void FpDebug(const char* s){
Serial.print(s);
} -
Initialize fingerH.begin(57600); // SM630 default baudrate 57600
-
Verify the presence of the module
if(fingerH.verifyPassword()){
// Module found
}
-
Enroll a fingerprint
int fpId = 20;
fingerH.enrollPrint(fpId); -
Identify a fingerprint
int fpId;
fpId = fingerH.identifyPrint(); -
Delete a fingerprint
fpId = 20;
if(fingerH.deletePrint(fpId)){
// Fingerprint 20 deleted
}
- Provide examples
- Document more use cases