The smart door lock based on the ART-Pi main control board mainly consists of the ART-Pi main control board , relay, fingerprint module, RFID module, electromagnetic door lock, wireless communication module, LCD touch screen, etc. It can realize functions such as card unlocking, fingerprint unlocking, password unlocking, lock body damage alarm, and remote unlocking.
This system is developed based on the RT-Thread embedded real-time operating system. The system comes with a watchdog that can automatically reset in the event of a downtime to ensure stable operation of the system. In addition, you can connect to the cloud platform to upload unlocking records and achieve remote monitoring and control.
1. Fingerprint unlocking, multiple fingerprints can be entered;
2. Password unlock;
3. RFID unlocking;
4. Remote unlocking;
5. Unlock mobile phone via Bluetooth;
6. The screen displays operating information in real time;
7. Query various unlocking operations on the mobile phone (for example: Zhang San unlocked the mobile phone at 2021.01.15 22:13; Li Si unlocked the phone at 2021.01.15 21:01 with password);
8. Prompt whether the operation is successful or not;
9. Set password on mobile phone;
10. Automatically locks without operation;
11. The screen displays advertising information;
12. Door lock breakage monitoring and alarm;
13. Weather information display
1. AS608 fingerprint module AS608 module uses an 8-pin control interface, the power supply voltage is 3.3V (5V power supply cannot be used), and there are two communication buses, namely serial communication (TX, RX) and USB communication (D+, D-); Using serial communication, programming is relatively simple and is a commonly used one, but the compatibility is not good; using USB communication, programming is relatively difficult, but USB, as the most commonly used bus interface, has good compatibility. The pin definition is as follows:
There are three types of control instructions, instruction packets, data packets, and end packets; generally the instruction packet is sent to the module by the microcontroller. After the module receives the instruction packet, it returns the corresponding data packet;
指令包主要包括:包头、芯片地址、包标识、包长度、控制参数和校验和;
数据包主要包括:包头、芯片地址、包标识、包长度、数据和校验和 ;
数据包与结束包的区别在于包标识,02H: 数据包,且有后续包。 08H: 最后一个数据包,即结束包。
(For specific API, please see the program in the attachment)
2. RC522 module 1. Pin introduction
RC522 supports three communication methods: SPI, I2C and serial port. In this project, the SPI interface is used to communicate with the MCU. 2. Principle block diagram of the communication between RC522 and the microcontroller.
Note: An anti-collision card must be added in actual use. function
Note: Due to the first time I used TouchGFX, I encountered many problems during use. Currently, I can only use RGB-LCD to complete simple operations and the UI is not very beautiful. For the sake of time, I temporarily use the OLED display solution (will continue to improve in the next few days). project, add functions that have not been added one after another).
Main interface
lock screen interface
( The formal presentation will follow )
2. Serial port printing fingerprint storage quantity and fingerprint module related setting information
3. Steps to set the password lock: First, enter the administrator password (used to add and delete magnetic cards, fingerprints, etc.) and then add the user password, user card and fingerprint. After successfully adding the user's magnetic card and fingerprint, you need to set the corresponding number for it.
Note: Up to 300 fingerprints can be added to this project, and 16 can be added to the magnetic card by default. This can also be modified by changing the relevant macro definitions in the program.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet