Hello, We are currently working on a fingerprint project using arduino
Before we start coding the full program we need to test the Fingerprint Reader if it is Receiving and making a response to the arduino.
Heres is the structure for the command and a command to test the connection..
Here is my code for the arduino
]#include <SoftwareSerial.h>
SoftwareSerial Fingerprint(2,3); //Define my Rx,Tx Pins
byte Test[24] = {0x55,0xAA,0x50,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x50,0x01}; //Test Connection //Command For Test
byte data[24];
void setup()
{
Fingerprint.begin(115200); //start serial connection default baud
Serial.begin(9600);
}
void loop()
{
Fingerprint.write(Test, 24 ); //Send the command
while(Serial.available() >0); //Wait for bytes
for(int x=0; x<24; x++)
{
data[x] = Fingerprint.read(); //store bytes 0-23
Serial.print(data[x], HEX); //display byte
Serial.print(" ");
}
Serial.println(); //new line
delay(2000);
}]
Here's what i receive fro serial monitor;
I received random HEX numbers..its different from what I supposed to receive based on the response table above..
What could be wrong from my codes?...
Pls help me..thanks
for the manual heres the link thaieasyelec.net