AS608 Fingerprint Recognition Module + STM32 for Fingerprint Enrollment
The ATK-AS608 fingerprint recognition module is a high-performance optical fingerprint recognition module launched by ALIENTEK.
⚔️Introduction
The ATK-AS608 module adopts the AS608 fingerprint recognition chip from Hangzhou Shengyuan Chip Technology Co., Ltd. (Synochip), a renowned domestic fingerprint recognition chip company. The chip is equipped with an integrated DSP processing unit and fingerprint recognition algorithm, enabling efficient and rapid data collection. Image and fingerprint feature recognition. The module is equipped with serial port and USB communication interfaces, allowing users to control the module through simple serial port or USB according to the communication protocol without needing to study complex image processing and fingerprint recognition algorithms. This module can be applied to various attendance machines, safes, fingerprint access control systems, fingerprint locks, etc.
⚔️Hardware Interface
The module interface uses an 8-pin connector with a pitch of 1.25 mm in a single row, as shown in Figure 2.1.1 of the PCB. The module internally includes a finger detection circuit, and users can read the status pin (WAK) to determine if a finger has been pressed. I'm sorry, but I can't translate images. Please provide the text you'd like translated instead. Module Pin Description I'm sorry, but I can't translate images. Please provide the text you'd like translated instead. Pin connection text description VI --> 3.3V 2. TX→RX 3.RX -> TX 4. GND -> GND 5. WAK -> IO port (set to pull-down, outputs high level after touch) 6. VT → 3.3V 7. Do not pick up 8. Do not answer
⚔️Code Snippet
Sure, please provide the content you would like translated to English. int main(void) Please provide the content you would like translated to English. u8 guarantee; unsigned char key_num; char *str; unsigned char key = 0; NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); // Set system interrupt priority grouping to 2 delay_init(); // initialize delay function uart_init(115200); // Initialize UART 1 with a baud rate of 115200 for USMART support. usart2_init(usart2_baud); // Initialize USART2 for communication with the fingerprint module PS_StaGPIO_Init(); // Initialize FR read status pin OLED_Init(); // Initialize OLED OLED_Clear(); // Clear screen BEEP_Init(); // Initialize the buzzer KEY_Init(); // Initialize the buttons usmart_dev.init(72); // Initialize USMART my_mem_init(SRAMIN); // Initialize internal memory pool exfuns_init(); // Allocate memory for FATFS-related variables f_mount(fs[1], "1:", 1); // Mount FLASH. oledPowerOn(); // OLED startup screen delay_ms(400); while (PS_HandShake(&AS608Addr)) // Handshake with AS608 module Please provide the content you would like translated to English. delay_ms(400); as06test(); delay_ms(800); as06test2(); } as06test3(); str = mymalloc(SRAMIN, 30); sprintf(str, "Baud rate: %d Address: %x", usart2_baund, AS608Addr); ensure = PS_ValidTempleteNum(&ValidN); // Read the number of fingerprint templates in the database if (ensure != 0x00) ShowErrMsgMessage(ensure); // Display confirmation code error message ensure = PS_ReadSysPara(&AS608Para); // read parameters if (ensure == 0x00) Please provide the content you would like translated to English. mymemset(str, 0, 50); sprintf(str, "Library Capacity: %d Comparison Level: %d", AS608Para.PS_max - ValidN, AS608Para.PS_level); Show_Str(0, 80, 240, 16, (u8*)str, 16, 0); } otherwise ShowErrorMessage(ensure); myfree(SRAMIN, str); while (1) Please provide the content you would like translated to English. key = KEY_Scan(0); // get the key value if (key == 3) Delete_Fingerprint(); // Delete fingerprint if (key == 2) Add_FR(); // Record fingerprint if (PS_Sta) // Detect PS_Sta status, if there is a finger press Please provide the content you would like translated to English. press_FR(); // swipe fingerprint } } } Sure, please provide the content you would like translated.