Hello im trying to use a GROW R503 to control figerprint start sequences (engine), ive seen plenty of content for arduino/MCU even esp8266, but it just doesnt seem to like the ESP32.
I've tried configuring the serial thru Hardwareserial and software serial..... nothing just doesnt seem to speak to the sensor at all....
The wiring is as follows:
the 2 power wires ive tried 3 and 5v outputs, nothing.
The TX RX tried them reversed also on pins 16 17 (serial2 of esp32 if im not mistaken)
#define RXD2 16
#define TXD2 17
void setup() {
// Note the format for setting a serial port is as follows: Serial2.begin(baud-rate, protocol, RX pin, TX pin);
Serial.begin(115200);
//Serial1.begin(9600, SERIAL_8N1, RXD2, TXD2);
Serial2.begin(9600, SERIAL_8N1, RXD2, TXD2);
Serial.println("Serial Txd is on pin: "+String(TX));
Serial.println("Serial Rxd is on pin: "+String(RX));
}
void loop() { //Choose Serial1 or Serial2 as required
while (Serial2.available()) {
Serial.print(char(Serial2.read()));
}
}
with this code i checked that the serials are listening cause they go crazy when i touch them with my bare finger XD.
but then i try to run this and nothing:
#include <Adafruit_Fingerprint.h>
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&Serial2);
void setup()
{
Serial.begin(9600);
while (!Serial); // For Yun/Leo/Micro/Zero/...
delay(100);
Serial.println("\n\nAdafruit finger detect test");
// set the data rate for the sensor serial port
finger.begin(57600);
delay(5);
if (finger.verifyPassword()) {
Serial.println("Found fingerprint sensor!");
} else {
Serial.println("Did not find fingerprint sensor :(");
while (1) { delay(1); }
}
}
void loop() // run over and over again
{
}
Heres a link to the material the seller provided, i just cant make sense out of it for my purposes: