I am using NodeMCU ESP8266 module with R307s Finger Print sensor but i get the error finger print sensor was not found how i can resolve this problem please me
Check wiring first.
The category where you did post this is specific for the Arduino Nano ESP32. Hence your topic has been moved.
Please read How to get the best out of this forum (again?) so you can understand which information might be needed to help you.
i checked wiring but it also not worked the sensor is working with arduino uno but not in nodeMCU ESP8266MOD
the serialCommunication between the NodeMCU and the sensor was not begins
#include <Adafruit_Fingerprint.h>
#include <SoftwareSerial.h>
#define FINGERPRINT_RX 14
#define FINGERPRINT_TX 12
SoftwareSerial mySerial(FINGERPRINT_RX, FINGERPRINT_TX);
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);
uint8_t id;
uint8_t error;
void setup() {
Serial.begin(9600);
while (!Serial);
finger.begin(57600);
if (finger.verifyPassword()) {
Serial.println("Found fingerprint sensor!");
} else {
Serial.println("Did not find fingerprint sensor :(");
while (1);
}
}
void loop() {
Serial.println("Ready to enroll a fingerprint!");
Serial.println("Please type in the ID # (from 1 to 127) you want to save this fingerprint as...");
while (!Serial.available());
id = Serial.parseInt();
if (id != 0) {
Serial.print("Enrolling ID #");
Serial.println(id);
while (! finger.getImage());
error = finger.image2Tz(1);
if (error == FINGERPRINT_OK) {
Serial.println("Remove finger...");
delay(2000);
Serial.println("Place same finger again...");
while ((!finger.getImage()) || (error != FINGERPRINT_OK));
error = finger.image2Tz(2);
if (error == FINGERPRINT_OK) {
error = finger.createModel();
if (error == FINGERPRINT_OK) {
error = finger.storeModel(id);
if (error == FINGERPRINT_OK) {
Serial.println("Fingerprint enrolled successfully!");
} else {
Serial.println("Error storing fingerprint!");
}
} else {
Serial.println("Error creating fingerprint model!");
}
} else {
Serial.println("Failed to capture second fingerprint image!");
}
} else {
Serial.println("Failed to capture first fingerprint image!");
}
} else {
Serial.println("Invalid ID, please try again!");
}
}
Check the logic voltage level used in your hardware setup.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.