Waveshare UART Fingerprint Sensor Скачать руководство пользователя страница 18

UART Fingerprint Sensor (C) 

   

 

V1.0 

www.waveshare.com

 

 

18

  / 

18

 

CONNECT TO XNUCLEO-F103RB 

We provide a demo codes for XNCULEO-F103RB, you can download from wiki 

UART Fingerprint Sensor (C) 

XNUCLEO-F103RB 

Vcc 

3.3V 

GND 

GND 

RX 

PA9 

TX 

PA10 

RST 

PB5 

WAKE 

PB3 

Note: About the pins, please refer to 

Interface

 above 

1.

 

Connect UART Fingerprint Sensor (C) to XNUCLEO_F103RB, and connect programmer 

2.

 

Open project (demo code) by keil5 software 

3.

 

Check if programmer and device are recognized normally 

4.

 

Compile and download 

5.

 

Connect XNUCELO-F103RB to PC by USB cable, open Serial assistance software, set COM port: 

115200, 8N1 

Type commands to test module according to information returned. 

CONNECT TO RASPBERRY PI 

We provide python example for Raspberry Pi, you can download it from wiki 

Before you use the example, you should enable serial port of Raspberry Pi first: 

Input command on Terminal: sudo raspi-config 

Choose: Interfacing Options -> Serial -> No -> Yes 

Then reboot. 

UART Fingerprint Sensor (C) 

Raspberry Pi 

Vcc 

3.3V 

GND 

GND 

RX 

14 (BCM) 

 PIN 8 (Board) 

TX 

15 (BCM) 

 PIN 10 (Board) 

RST 

24 (BCM) 

 PIN 18 (Board) 

WAKE 

23 (BCM) 

 PIN 16 (Board) 

1.

 

Connect fingerprint module to Raspberry Pi 

2.

 

Download demo code to Raspberry Pi: 

wget https://www.waveshare.com/w/upload/9/9d/UART-Fignerprint-RaspberryPi.tar.gz 

3.

 

unzip it 

tar zxvf UART-Fignerprint-RaspberryPi.tar.gz 

4.

 

Run the example 

cd UART-Fignerprint-RaspberryPi/ 

sudo python main.py 

5.

 

Following guides to test the module. 

Содержание UART Fingerprint Sensor

Страница 1: ...cation 2 Hardware 4 Dimension 4 Interface 4 Commands 5 Commands format 5 Commands Types 6 Communication process 13 Add fingerprint 13 Delete user 14 Delete all users 14 Acquire image and upload eigenv...

Страница 2: ...u don t have to know any fingerprint technology or the module inter structure Commercial fingerprinting algorithm stable performance fast verification supports fingerprint enrolling fingerprint matchi...

Страница 3: ...C V1 0 www waveshare com 3 18 Baudrate 19200 bps Operating environment Temperature 20 C 70 C Humidity 40 RH 85 RH no condensation Storage environment Temperature 40 C 85 C Humidity 85 RH no condensati...

Страница 4: ...different with the image According to the PIN when connecting but not the color VIN 3 3V GND Ground RX Serial data input TTL TX Serial data output TTL RST Power enable disable Pin HIGH Power enable L...

Страница 5: ...eration it should be define ACK_SUCCESS 0x00 define ACK_FAIL 0x01 define ACK_FULL 0x04 define ACK_NOUSER 0x05 define ACK_USER_OCCUPIED 0x06 define ACK_FINGER_OCCUPIED 0x07 define ACK_TIMEOUT 0x08 CHK...

Страница 6: ...CK 0xF5 0x2C 0 0 0 0 CHK 0xF5 4 Set Read fingerprint adding mode CMD ACK both 8 Byte There are two mode enable duplication mode and disable duplication mode When module is in disable duplication mod s...

Страница 7: ...Permission 1 2 3 0 CHK 0xF5 ACK 0xF5 0x03 0 0 ACK_SUCCESS ACK_FAIL ACK_TIMEOUT 0 CHK 0xF5 Notes User ID and Permission in three commands 6 Add users and upload eigenvalues CMD 8Byte ACK 8 Byte This co...

Страница 8: ...K 0xF5 0x05 0 0 ACK_SUCCESS ACK_FAIL 0 CHK 0xF5 9 Query count of users CMD ACK both 8 Byte Byte 1 2 3 4 5 6 7 8 CMD 0xF5 0x09 0 0 0 Query Count 0xFF Query Amount 0 CHK 0xF5 ACK 0xF5 0x09 Count Amount...

Страница 9: ...7 8 ACK 0xF5 0x24 Hi Len Low Len ACK_SUCCUSS ACK_FAIL ACK_TIMEOUT 0 CHK 0xF5 2 Data packet Byte 1 2 Len 1 Len 2 Len 3 ACK 0xF5 Image data CHK 0xF5 Notes In DSP module the pixels of fingerprint image a...

Страница 10: ...Eigenvalues CHK 0xF5 Notes Length of Eigenvalues Len 3 is 193 bytes ACK Format Byte 1 2 3 4 5 6 7 8 ACK 0xF5 0x44 0 0 ACK_SUCCUSS ACK_FAIL ACK_TIMEOUT 0 CHK 0xF5 17 Download eigenvalues and compariso...

Страница 11: ...CK_FAIL ACK_NOUSER 0 CHK 0xF5 2 Data packet Byte 1 2 3 4 5 Len 1 Len 2 Len 3 ACK 0xF5 User ID High 8 Bit User ID Low 8 Bit Permission 1 2 3 Eigenvalues CHK 0xF5 Notes Length of Eigenvalues Len 3 is 19...

Страница 12: ...D1 Low 8 Bit User 1 Permission 1 2 3 User ID2 High 8 Bit User ID2 Low 8 Bit User 2 Permission 1 2 3 22 Set Query fingerprint capture timeout CMD ACK both 8 Byte Byte 1 2 3 4 5 6 7 8 CMD 0xF5 0x2E 0 By...

Страница 13: ...ss Only do in disable duplication mode Add fingerprint to database Response Q3 ACK_SUCCESS End Fingerprint has existed response Q3 ACK_USER_EXIST eigenvalue is less response Q3 ACK_FAIL timeout respon...

Страница 14: ...14 18 DELETE USER DELETE ALL USERS Begin Send CMD 0x04 Delete user whose ID is P1 P2 Response Q3 ACK_SUCCESS Delete failed response Q3 ACL_FAIL End Begin Send CMD 0x05 Delete all users Response Q3 AC...

Страница 15: ...veshare com 15 18 ACQUIRE IMAGE AND UPLOAD EIGENVALUE Begin End Send CMD 0x23 Acquire fingerprint Process image Return eigenvalue data packet response Q3 ACK_SUCCESS Eigenvalue is less response Q3 ACK...

Страница 16: ...le to development board like Raspberry Pi if the working level of your board is 3 3V you can directly connect it to UART and GPIO pins of your board If it is 5V please add level convert module circuit...

Страница 17: ...returned and display in Information Response interface 2 Add User Choose Add User check Acquire Twice and Auto ID 1 type the ID P1 and P2 and permission P3 then click Send Finally touch sensor to acq...

Страница 18: ...ands to test module according to information returned CONNECT TO RASPBERRY PI We provide python example for Raspberry Pi you can download it from wiki Before you use the example you should enable seri...

Отзывы: