September 2016
Intermediate to advanced
495 pages
9h 37m
English
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 ...Read now
Unlock full access