Capacitive Fingerprint Reader (B)

From Waveshare Wiki
Revision as of 08:33, 6 June 2022 by Waveshare-admin (talk | contribs) (Text replacement - "==Support==" to "")
Jump to: navigation, search
Capacitive Fingerprint Reader (B)
Capacitive Fingerprint Reader (B)

High Precision Capacitive Fingerprint Reader (B), UART/USB Dual Ports
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Overview

The Capacitive Fingerprint Reader (B) is a fast and stable capacitive fingerprint module specialized for secondary development, and suits integration applications.
By incorporating a high-performance Cortex core processor, high-security commercial fingerprint algorithm, and advanced semiconductor fingerprint sensor, this module is designed as an intelligent integration module with functions including fingerprint enrolling, image processing, template generating and storing, fingerprint matching and searching, etc.

Features

  • Easy to use by some simple commands, you don't have to know any fingerprint technology or the module inter structure/calculation.
  • Commercial fingerprinting algorithm, stable performance, fast identification.
  • Sensitive detection, just touch the collecting window lightly, without pressing.
  • Allows to freely input/output fingerprint images, fingerprint feature files, and other fingerprinting actions
  • Dual communication, UART, or USB.
  • Comes with complete resources, manual, related tools, and Raspberry/Arduino/STM32 demos.

Specifications

PARAMETER VALUE
Sensor Semiconductor (Capacitive)
Module Dimension 34 x 28.5mm
Sensor Dimension 33.4 x 20.4mm
Image DPI508
Image Resolution 208 x 288
Greyscale 256 (8-bit)
Sensing Area 14.6 x 10.6mm
Fingerprint Capacity 3000
Security Level 1-5 configurable, 3 by default

the higher value, the lower FAR (False Acceptance Rate), yet the higher FRR (False Rejection Rate)

Encryption Key 64-bit encryption
Image Collecting Rate 20fps
Matching Time <0.5s
Dynamic Current <40mA
Sleep Current <4mA
Operating Voltage 3.3 -5V
Communication Port UART/USB
ESD SD IEC 61000-4-2 LEVEL 4 positive/negative 15KV air discharge
Baudrate Configurable: 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600bps

115200bps by default

Working Environment Temperature: -20°C~60°C, Humidity: <90%RH (no frost)
Storage Environment Temperature: -40°C~85°C, Humidity: <90%RH (no frost)

Pinouts

  • VCC: Power input (3.3V/5V)
  • GND: Ground
  • RX: UART data input
  • TX: UART data output
  • RST: Reset pin
    • High: Power on the fingerprint module
    • Low: Power off the fingerprint module

Hardware Connection

  • Connect the Reader to the PCBA as the picture showed:
Capacitive-Fingerprint-Reader-B-5.jpg
  • After getting the module, you can use the test software or test program to test the module first. After having a certain understanding of the module, you can use the instruction sheet for secondary development.
  • The module can be controlled through the UART serial port or through the Type-C interface on the main control board.
  • Connect the Fingerprint Reader to PC.
    • If you want to use the USB interface, connect the type-C interface of the Fingerprint Reader to the PC by Type-C USB cable.
    • If you want to use the UART interface, you need to buy a USB to UART adapter separately first. Connect the Fingerprint Reader to the adapter and then connect the adapter to PC by USB cable.
  • Open the Capacitive-Fingerprint-Reader-(B)-Demo software (download from the Resources).
    • If you connect the Fingerprint Reader by USB cable, choose Con Mode -> USB and then click Connect to connect the device
    • If you use to connect the Fingerprint Reader by UART adapter, choose Con Mode -> Serial, then set the correct COMPort, and Baudrate set to 115200, and then click Connect to connect the device.

About the Software

1. Configuration
  • Param Type: This option can be used to configure some parameters of the fingerprint reader.
    • Device ID: Set the device ID of the fingerprint reader in the range of 1 ~ 255.
    • Security level: Set the security level in the range 1 ~ 5, the higher the level, the smaller the FAR, and the higher the FRR.
    • Duplication Check: Enable/Disable the duplication check function (1 or 0).
    • Baudrate: Set the baud rate of the serial port.
    • Auto Learn: Enable/Disable the Auto learn function (1 or 0).
  • Param Value: Show or Edit the value according to the Param Type.
  • Set Param: Click this button to configure the module.
  • Get Param: Click this button to get the parameter value relates to the Typ.
2. Add fingerprint
  • Input the ID, it is the ID of the fingerprint.
  • Choose the Enroll Count, it is the times that you need to input the fingerprint image, default 3.
  • Click the Enroll button to add a fingerprint.
  • Put your finger on the reader three times (according to the Enroll Count).

Note that the fingerprint can only be added successfully when the success information is printed. If you get the failed information, you need to try it again.

3. Verify fingerprint (with finger)

There are two methods of verifying fingerprints with fingers.

Verify 1:1: Verify the finger with ID, it will verify the finger input with a fingerprint which was saved in the module with the ID.
  • Set the ID.
  • Click the Verify button.
  • Put your finger on the sensor to verify.
Verify 1:N: Verify the finger with all the fingerprints, it will verify the finger input with all the fingerprints which were saved in the module.
  • Click the Identify button.
  • Put your finger on the sensor to verify.
  • It will keep verifying, if you want to exit the verifying mode, just click the Stop button.

For more details about the software, please check the Software Reference Manual from Resources.

Notices

This is a capacitive fingerprint reader, you just need to put your finger on the sensor softly.

Correct
Capacitive Fingerprint Reader (B) 1.png
Wrong
Capacitive Fingerprint Reader (B) 2.png

Sensor Dimensions

Capacitive Fingerprint Reader (B) 3.png

For Development boards like the Raspberry Pi, Arduino, STM32, only the UART interface is supported.

Connection

Fingerprint Reader (B) Raspberry Pi Description
VCC 3.3V Power input
GND GND Ground
TXD RXD UART data output
RXD TXD UART data input
RST GPIO5 Reset pin (low active)

Enable the serial port of Pi

  • Open the terminal of the Raspberry Pi.
  • Type command sudo raspi-config.
  • Choose Interface Options -> Serial -> No -> Yes.
  • Disabled the login shell function and enable the hardware serial port.

Demo Use

The function contents of Raspberry Pi, Arduino, and STM32 may be partially different, but the operation and functions are the same.

How to Connect

STM32 Connection Pin Correspondence
Module STM32 Function
VCC 5/3.3V Power Input
GND GND Ground
TXD PA10 Module UART Transmitting Pin
RXD PA9 Module UART Receiving Pin
RST PB5 Module Reset Pin, Low Active

Arduino Connection Pin Correspondence
Module Arduino Function
VCC 5/3.3V Power Input
GND GND Ground
TXD 10 Module UART Transmitting Pin
RXD 11 Module UART Receiving Pin
RST 9 Module Reset Pin, Low Active

Raspberry Pi Connection Pin Correspondence
Module Raspberry Pi Function
VCC 5/3.3V Power Input
GND GND Ground
TXD RXD Module UART Transmitting Pin
RXD TXD Module UART Receiving Pin
RST GPIO5(wiringpi code) Module Reset Pin, Low Active




Working with STM32/Arduino

Connect the corresponding STM32/Arduino and fingerprint module according to the connection method.
Connect the USB port of the Open103Z/Arduino UNO with the PC, and then choose the corresponding UART port:
Capacitive Fingerprint Reader (B) 28.png
CMD0: Check if the fingerprint is connected normally.
CMD1: Check if a finger is detected.
CMD2: Add a fingerprint.
CMD3: Delete the fingerprint.
CMD4: Verify the fingerprint (1:1).
CMD5: Verify fingerprints.
CMD6: Check the ID which is not being used (minimum number).
CMD7: Check the number of fingerprints added.
CMD8: Upload a fingerprint image to the host from the Fingerprint Reader.
CMD9: Download a fingerprint image to the Fingerprint Reader from the host.

Note: Arduino does not have CMD8 and CMD9 instructions because of the memory, and packet loss will occur when using the 115200 baud rate.
How to modify:
1. Use software to make changes.
2. Use the following command to make changes.
Capacitive Fingerprint Reader (B) 29.png
Set to 115200 baud rate:
55 AA 00 00 02 00 05 00 03 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0e 01
Set to 57600 baud rate:
55 AA 00 00 02 00 05 00 03 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0d 01
The return value after successful setup is:
AA 55 01 00 02 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 01

Working with Raspberry Pi

Open the Serial Port

Enter the commands:

sudo raspi-config

Capacitive Fingerprint Reader90.png
Capacitive Fingerprint Reader91.png
Capacitive Fingerprint Reader92.png
Capacitive Fingerprint Reader93.png
Capacitive Fingerprint Reader94.png
Reboot:

sudo reboot

Install wiringpi

sudo apt install git-core
sudo git clone https://github.com/WiringPi/WiringPi
cd WiringPi/
sudo ./build
#Check the wiringpi version, usually above 2.70
gpio -v

Install python Library

#python3's serial port library
sudo apt-get install python3-serial
#serial library for python2
sudo apt-get install python-serial

Download the Demo

wget https://files.waveshare.com/upload/1/1d/Capacitive-Fingerprint-Reader%28B%29-Code.zip
unzip unzip Capacitive-Fingerprint-Reader\(B\)-Code
cd cd Capacitive-Fingerprint-Reader\(B\)-Code/RaspberryPi/

How to Use

C

cd c
make 
sudo ./test

Python

cd python
sudo python main.py

Python3

cd python3
sudo python3 main.py

FAQ


Support

If you require technical support, please go to the Support page and open a ticket.