Capacitive Fingerprint Reader (B)

From Waveshare Wiki
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}}}

Primary Attribute
Category: Modules, Sensors, Fingerprint/Sound
{{{userDefinedInfo}}}: {{{userdefinedvalue}}}
Brand: Waveshare
Website
International: Website
Chinese: 网站
Onboard Interfaces
UART
Related Products

Overview

The Capacitive Fingerprint Reader (B) is a fast and stable capacitive fingerprint module specialized for secondary development, 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, the 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 file and other fingerprinting actions
  • Dual communication, UART or USB

Specifications

PARAMETER VALUE
Sensor Semiconductor(capacitive)
Module dimension 34 x 28.5mm
Sensor dimension 33.4 x 20.4mm
Image DPI508
Image resolution 208x288
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
Operating voltage 3.3 - 5V
Communication port UART or 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

Pinouts

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

Hardware connection

  • Connect the Reader to the PCBA as picture"
Capacitive-Fingerprint-Reader-B-5.jpg
  • Connect the Fingerprint Reader to PC
    • If you want to use the USB interface, connect the type-C interface of Fingerprint Reader to 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 apdater 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, 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 fingerprint reader in the range 1 ~ 255
    • Security level: Set the security level in the range 1 ~ 5, higher the level, smaller the FAR, and 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 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

Dimension of the sensor

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.

Download the demo codes

Open the terminal of the Raspberry Pi and run the following commands.

cd
wget https://www.waveshare.com/w/upload/e/e3/Capacitive-Fingerprint-Reader-B-Code.zip
unzip Capacitive-Fingerprint-Reader-B-Code.zip
cd Capacitive-Fingerprint-Reader-B-Code/

Install Libraries

  • Install wiringpi
sudo apt-get install wiringpi
# An upgrade may be required for raspberry PI 4B:
cd /tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
gpio -v
# Running gpio-v to check if the version is 2.52, If it is not, you need to check the installation again.
  • BCM2835 library:
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz
sudo tar zxvf bcm2835-1.60.tar.gz
cd bcm2835-1.xx
sudo ./configure
make
sudo make check
sudo make install
Note: You can also go to http://www.airspayce.com/mikem/bcm2835/index.html for newest libraries.
  • Install the python2 library
sudo apt-get update
sudo apt-get install python-pip
sudo pip install RPi.GPIO
sudo apt-get install python-serial
  • Install the python3 library
sudo apt-get update
sudo apt-get install python3-pip
sudo pip3 install RPi.GPIO
sudo apt-get install python3-serial

Testing the example

Open the terminal of the Raspberry Pi and run the following commands.

C example
cd ~/Capacitive-Fingerprint-Reader-B-Code/RaspberryPi/c
sudo make
sudo ./test
python example
cd ~/Capacitive-Fingerprint-Reader-B-Code/RaspberryPi/Python
sudo python main.py
python3 example
cd ~/Capacitive-Fingerprint-Reader-B-Code/RaspberryPi/Python3
sudo python3 main.py

After running the example, the prompt printed in the terminal, you need to type the defined commands to enable the testing function:

  • CMD0:
Check if the fingerprint is connected normally
  • CMD1:
Check if a finger is detected
  • CMD2:
Add a fingerprint
  • CMD3:
Detect fingerprints
  • CMD4:
Verify fingerprint (1:1)
  • CMD5:
Verify fingerprints
  • CMD6:
Check the ID which is not be used (minimum number)
  • CMD7:
Check the number of fingerprinted 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

Connection

Fingerprint Reader (B) Arduino UNO Description
VCC 3.3V/5V Power input
GND GND Ground
TXD 10 UART data output
RXD 11 UART data input
RST 9 Reset pin (low active)

The examples provided are based on the Arduino UNO board.

Testing

  • Install Arduino IDE to your PC
  • Download the Demo code and find th Arduino code (.../Capacitive-Fingerprint-Reader-B-Code\Capacitive-Fingerprint-Reader(B)-Code\Arduino\Finger_Test)
  • Open the Finger_Test.ino with IDE
  • Build and upload the codes to your Arduino UNO board
  • Open the serial monitor of the IDE
  • Input the corresponding commands to test the function
    • CMD0:Check if the fingerprint is connected normally
    • CMD1: Check if a finger is detected
    • CMD2:Add a fingerprint
    • CMD3:Detect fingerprints
    • CMD4:Verify fingerprint (1:1)
    • CMD5: Verify fingerprints
    • CMD6:Check the ID which is not be used (minimum number)
    • CMD7:Check the number of fingerprinted added

Connection

Fingerprint Reader (B) STM32 Description
VCC 3.3V Power input
GND GND Ground
TXD PA10 UART data output
RXD PA9 UART data input
RST PB5 Reset pin (low active)

The STM32 examples provide are based on the STM32F103RBT6.

Testing

  • Install Keil software to your PC
  • Download the demo codes and find the STM32 project.(.../Capacitive-Fingerprint-Reader-B-Code\Capacitive-Fingerprint-Reader(B)-Code\STM32\MDK-ARM)
  • Open the project by the Keil software
  • Build the project and program it to your STM32 board by a programmer
  • Connect the UART1 interface of your STM32 board to PC
  • Open a SSCOM port and check the serial information
  • You can input the commands to test the Fingerprint Reader.
    • CMD0:Check if the fingerprint is connected normally
    • CMD1: Check if a finger is detected
    • CMD2:Add a fingerprint
    • CMD3:Detect fingerprints
    • CMD4:Verify fingerprint (1:1)
    • CMD5: Verify fingerprints
    • CMD6:Check the ID which is not be used (minimum number)
    • CMD7:Check the number of fingerprinted 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
Capacitive Fingerprint Reader (B) 28.png

FAQ

Support

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