Hi everyone,
I'm new to the ESP32 world and currently working on a university project where I need to use the AS608 fingerprint sensor with my ESP32 (ESP-32S with CP2102 driver). I have tried various configurations using different UART pins, but no matter what I try, I always get the following message in the serial monitor:
Adafruit Fingerprint sensor enrollment
Did not find fingerprint sensor :(
I am using the example code from the Adafruit Fingerprint Library, as shown below:
#include <Adafruit_Fingerprint.h>
#if (defined(__AVR__) || defined(ESP8266)) && !defined(__AVR_ATmega2560__)
SoftwareSerial mySerial(2, 3);
#else
#define mySerial Serial1
#endif
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);
void setup() {
Serial.begin(9600);
while (!Serial);
delay(100);
Serial.println("\n\nAdafruit Fingerprint sensor enrollment");
finger.begin(57600);
if (finger.verifyPassword()) {
Serial.println("Found fingerprint sensor!");
} else {
Serial.println("Did not find fingerprint sensor :(");
while (1) { delay(1); }
}
}
void loop() {
// Enrollment logic...
}
No matter which GPIO pins I try, it always gives the same result: "Did not find fingerprint sensor :(". I have also double-checked my wiring, and the baud rate seems to be correctly set at 57600.
Has anyone experienced a similar issue, or is there something I might be missing? I would really appreciate any advice, as this is for a university project, and I am running out of time.
Thanks in advance for your help!
PS: I ATTACH PHOTO OF MY ESP32 AND MY AS608
8 posts - 6 participants