I was wondering if you could help me with a project I am working on. I am trying to wire together the Arduino Nano 33 BLE with the fingerprint sensor SEN0348 from DFRobot.
I wired all the sensor wires to the corresponding pins in the board:
Sensor -> Board
GND -> GND,
RX -> TX1,
TX -> RX0,
(VIN and 3.3V Power supply) -> 3.3V
IRQ -> D4
I'm not sure why, but the board is not reading the sensor. I thought the output power from the board of 3.3V will be enough to power the sensor, since the operating voltage of the sensor is 3.3V, but is it possible that this is not enough to power the sensor?
To test I am using the code from DFRobot:
#include <Arduino.h>
#include <DFRobot_ID809.h>
#define FPSerial Serial1
DFRobot_ID809 fingerprint;
String desc;
void setup(){
/*Init print serial port */
Serial.begin(9600);
/*Init FPSerial*/
FPSerial.begin(115200);
/*Take FPSerial as communication port of fingerprint module */
fingerprint.begin(FPSerial);
/*Wait for Serial to open*/
while(!Serial);
/*Test whether device can communicate properly with mainboard
Return true or false
*/
while(fingerprint.isConnected() == false){
Serial.println("Communication with device failed, please check connection");
/*Get error code information */
desc = fingerprint.getErrorDescription();
Serial.println(desc);
delay(1000);
}
}
uint8_t enrollCount; //Number of registered users
void loop(){
/*Set module ID, available range: 1-255*/
//fingerprint.setDeviceID(/*Device ID = */1);
Serial.print("Module ID:");
/*Read module ID*/
Serial.println(fingerprint.getDeviceID());
}
The output in the Serial Monitor is the following in repeat:
Communication with device failed, please check connection
Data reading timeout