The board can work as a standalone USB HID, using the Fingerprint PC application, or as an SPI slave communicating with a host MCU. USB HID is a USB human interface device.
Features and usage notes
CMOS image sensor
A CMOS image sensor is the main component in most digital cameras today. Compared to a CCD sensor it has low power consumption and low dissipation.
To distinguish between 2D images and a real fingerprint the CMOS image sensor has a special lens and covering. Considering how dark it is when you press your finger to the lens, an LED illuminates it from one side, while the other side does the job of sending the image through the lens to the processor.
Fingerprint click carries an STM32 MCU for processing the images and forwarding them to an external MCU or PC. We created a Windows application that provides an interface so you can easily use the Fingerprint click. The following steps describe how the application works:
- 1.Place your finger on the sensor on the click.
- 2.Press the button in the bottom, left corner of the screen.
- 3.After you see the image of your fingerprint, press the button at the bottom, right corner of the screen to save the image. If you want to add more fingerprint images just repeat the process.
This table shows how the pinout on Fingerprint click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
This code initializes SPI communication and the TFT display. After waiting for the Fingerprint click to go out of bootloader mode, the MCU sends a series of SPI commands for the Fingerprint to capture and send the fingerprint image. Every image byte received from the click is being sent onto the TFT display
1 void main()
3 SPI3_Init_Advanced( _SPI_FPCLK_DIV2, _SPI_MASTER | _SPI_8_BIT |
4 _SPI_CLK_IDLE_LOW | _SPI_FIRST_CLK_EDGE_TRANSITION |
5 _SPI_MSB_FIRST | _SPI_SS_DISABLE | _SPI_SSM_ENABLE |
6 _SPI_SSI_1, &_GPIO_MODULE_SPI3_PC10_11_12 );
8 GPIO_Digital_Output( &GPIOD_BASE, _GPIO_PINMASK_13 );
12 TFT_Init_ILI9341_8bit(320, 240);
13 TFT_Set_Pen(CL_BLACK, 1);
14 TFT_Set_Font(TFT_defaultFont, CL_BLACK, FO_HORIZONTAL);
17 TFT_Write_Text("TFT Initialized, waiting for fingerprint click",10,10);
20 delay_ms(10000); // wait for the click to go out of bootloader mode
23 TFT_Write_Text("Fingerprint ready test...", 10, 50);
25 TFT_Write_Text("passed", 200, 50);
27 TFT_Write_Text("Fingerprint capture image...", 10, 70);
29 TFT_Write_Text("passed", 200, 70);
31 TFT_Write_Text("Displaying image", 10, 90);