Enrolling your fingerprint
The first thing that we have to do is enroll at least one fingerprint so that it can be later recognized by the sensor. We will do that in this section. Here is most of the code for this section:
// Libraries #include <Adafruit_Fingerprint.h> #include <SoftwareSerial.h> // Fingerprint enroll function uint8_t getFingerprintEnroll(uint8_t id); // Software Serial instance SoftwareSerial mySerial(2, 3); // Fingerprint sensor instance Adafruit_Fingerprint finger = Adafruit_Fingerprint(andmySerial); void setup() { // Start serial Serial.begin(9600); Serial.println("fingertest"); // Set the data rate for the sensor serial port finger.begin(57600); // Verify that sensor is present if (finger.verifyPassword()) { Serial.println("Found ...
Get Arduino: Building exciting LED based projects and espionage devices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.