This system mainly uses fingerprint module, MicroSD card reading and writing module, PCF8563 module, buzzer module, matrix button module, lcd1602, and STC90C516RD+
System Block Diagram
1) Fingerprint moduleThe FPM10A optical fingerprint module is used. FPM10A optical fingerprint module is a classic optical fingerprint module with stable performance and wide application range. It can be used with TTL serial port or USB interface. It can use 51 single chip microcomputer.
2) Storage moduleSolution 1: Using EEPROM module
The EEPROM module is simple and uses iic communication, but the storage capacity is small, the life is limited, and there is no exercise value, so it is discarded.
Option 2: Using MicroSD card reading and writing module
MicroSD card reader module uses SPI protocol communication. This communication protocol has not been touched yet, and it is larger than EEPROM storage and is widely used. Therefore, this system uses MicroSD card reader module.
3) Real time clockUse the PCF8563 module. The chip is more stable than the DS1302, with more accurate travel time and lowest power consumption.
Programming and design ideasProgram flow chart
The project implements check-in, add fingerprints, delete individual fingerprints, search for fingerprints, and clear fingerprints.
After signing in to search for the fingerprint ID, the timestamp is stored in the sector corresponding to the MicroSD, and the buzzer will sound as a sign-in success. The function selection uses 4 buttons, which are selected by loop down. To add a fingerprint, first obtain the fingerprint image 1, store it in buffer1, and then obtain the fingerprint image 2, store it in buffer2, and then write a command to make buffer1 and buffer2 form a feature template, and then store it in a specific ID, and finally initialize the ID. MicroSD sector. To delete a single fingerprint and search fingerprint, I use two methods to find the ID of the fingerprint, one is the key input, or four key cycles, the other is to find the ID of the fingerprint by searching for the fingerprint, which needs to be judged in the fingerprint of the key. Whether the ID exists or not, and determining whether the ID is in use by a method of setting a flag bit corresponding to the MicroSD card, the flag bit is synchronized with the fingerprint module. After the search fingerprint finds the ID, it displays the check-in time of the corresponding ID. Clearing the fingerprint is to empty the fingerprint module and the corresponding MicroSD card sector.
Gas relay is a classification of Signal Relay, which is commonly used in automatic control system. It is generally used to connect and disconnect circuits, and is an important component of automatic control and remote control circuits.
Gas Relay,Gas Mini Relay,Signal Gas Relay,Dc Gas Relay
Ningbo Xingchuangzhi Electric Appliance Co.,Ltd. , https://www.xingchuangzhi.com