- Tue Feb 14, 2012 12:14 pm
#139784
Hello all,
I been playing around with this fingerprint unit but i having problems.
I am sending this command cmd[]={0xEF,0x01,0xFF,0xFF,0xFF,0xFF,0x01,0x00,0x03,0x01,0x00,0x05}; through the arduino tx pin to the rx pin of the fingerprint so hopefully i can get correct[]={0xEF,0x01,0xFF,0xFF,0xFF,0xFF,0x07,0x00,0x03,0x00,0x00,0x0A}; as response from the fingerprint. however the fingerprint scanner is not sending anything back.
this is the code i wrote to test the fingerprint.
Fingerprint Arduino
Pin 1 (GND) GND pin
Pin 2 (reset) 5V pin
Pin 3 (TXD) RX<-2 pin (software serial) (sparkfun logic level converter to step up voltage)
Pin 4 (RXD) TX->3 pin (software serial) (sparkfun logic level converter to step down voltage)
Pin 5 (PowerEN) 5V pin
pin 6 (VCC 5v) 5V pin
I attached an oscilloscope to the tx and rx on the arduino and fingerprint scanner to monitor the data transmitted.
the oscilloscope show that the arduino is sending data to the rx of the scanner and the scanner is receiving the data by the series of high and lows shown on the oscilloscope. however the fingerprint scanner is not sending anything back because there is no series of high and lows shown on the oscilloscope and it sits at around 100mV.
the only idea i have now is to hook up this fingerprint scanner to the computer and use the demo app to see if it actually works... however im not sure how to create the connection between the scanner to the computer with either rs232 or usb. what have you guys used to communicate between both devices.
I been playing around with this fingerprint unit but i having problems.
I am sending this command cmd[]={0xEF,0x01,0xFF,0xFF,0xFF,0xFF,0x01,0x00,0x03,0x01,0x00,0x05}; through the arduino tx pin to the rx pin of the fingerprint so hopefully i can get correct[]={0xEF,0x01,0xFF,0xFF,0xFF,0xFF,0x07,0x00,0x03,0x00,0x00,0x0A}; as response from the fingerprint. however the fingerprint scanner is not sending anything back.
this is the code i wrote to test the fingerprint.
Code: Select all
my connection is#include <SoftwareSerial.h>
SoftwareSerial FP(2,3);
byte cmd[]={0xEF,0x01,0xFF,0xFF,0xFF,0xFF,0x01,0x00,0x03,0x01,0x00,0x05}; //ask for match!
byte correct[]={0xEF,0x01,0xFF,0xFF,0xFF,0xFF,0x07,0x00,0x03,0x00,0x00,0x0A}; //ACK
void setup()
{
Serial.begin(9600);
FP.begin(9600); //initializes the serial port for the fingerprint
}
void loop()
{
FP.write(cmd, 12); //sends the command
Serial.print(Serial.read()); //reads what ever it receives and prints it to the computer, if nothing is received it prints a -1
Serial.print("\n");
delay(1000);
}
Fingerprint Arduino
Pin 1 (GND) GND pin
Pin 2 (reset) 5V pin
Pin 3 (TXD) RX<-2 pin (software serial) (sparkfun logic level converter to step up voltage)
Pin 4 (RXD) TX->3 pin (software serial) (sparkfun logic level converter to step down voltage)
Pin 5 (PowerEN) 5V pin
pin 6 (VCC 5v) 5V pin
I attached an oscilloscope to the tx and rx on the arduino and fingerprint scanner to monitor the data transmitted.
the oscilloscope show that the arduino is sending data to the rx of the scanner and the scanner is receiving the data by the series of high and lows shown on the oscilloscope. however the fingerprint scanner is not sending anything back because there is no series of high and lows shown on the oscilloscope and it sits at around 100mV.
the only idea i have now is to hook up this fingerprint scanner to the computer and use the demo app to see if it actually works... however im not sure how to create the connection between the scanner to the computer with either rs232 or usb. what have you guys used to communicate between both devices.