Design of access control security management system based on single chip microcomputer

Publisher:幸福的家园Latest update time:2022-04-21 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

This system organically combines ID card technology, computer control technology and electronic door locks, uses ID cards to replace keys, and cooperates with computers to achieve intelligent access control and management, effectively solving the shortcomings of traditional door locks such as cumbersome use and inability to record information. The use of data collected by the data controller to achieve digital management can bring unexpected results for the effective management of internal human resources.

Electronic key: The authorized ID card can be used as an electronic key. When the electronic key is waved in front of the sensor, the controller will authenticate the card. Once the card is verified to be legitimate, the electronic door lock will be automatically opened.


Door opening authority: The effective door opening area (controller number) can be set according to the cardholder's identity authority. The system can have a highest authority card, which can open all electronic door locks within the system's jurisdiction.


Automatic alarm: In abnormal situations such as illegal use of cards or forced opening of door locks, the system will automatically send out an alarm signal. The system will automatically record detailed information such as the time, door number, status, etc. of the abnormal situation to ensure the safety of the door lock and subsequent verification.

This system is composed of 51 series single chip microcomputer AT89S52, buttons, buzzer, T7122M-I card reader and other modules. It realizes the function of storing one management card and multiple user cards; at the same time, the management personnel can also change the management card, add user cards, delete user cards, clear all user cards, etc. by pressing buttons.


Because the access control card swiping distance changes with the change of compensation capacitor (compensation capacitor is about 300PF), the maximum card swiping distance is about 5-12CM; for non-management cards or user cards, this access control controller does not respond; each button controller has a corresponding prompt sound to prompt the operation.


During normal use, the user holds the card close to the card reader antenna, the access controller reads the card number and compares it with the card number stored internally. If the card numbers are the same, it means the card is legal and the access controller sounds a long tone to indicate success. If the card reading fails, there will be no response.

01 Main control circuit design

02 Keyboard circuit design

7SLS164 is a serial-to-parallel conversion chip, which converts the serial data on SDA (P27) into 8-bit parallel data. S1/S2/S3/S4/S5/S6/S7/S8 are used as keyboard scan lines, and P26 is the keyboard data return line.


When the keyboard is scanned, S1~S7 outputs a low level at a time, and then detects P26 (loopback line). If P26 (loopback line) is high, it means that no key is closed. If P26 (loopback line) is equal to 0, the data on S1~S7 is simply processed to obtain the corresponding key value.


 

KEY1: Add user card; KEY2: Delete user card


KEY3: Delete management card; KEY4: Clear all user cards


03 Buzzer circuit design

The microcontroller controls the operation and shutdown of the buzzer through P37. When P3.7=1, the PNP transistor is turned off and the buzzer stops working; when P3.7=0, the PNP transistor is turned on and the buzzer starts working; thus, the microcontroller only needs P3.7 to output 0 or 1 to control the buzzer.

(1) The buzzer sounds once, indicating that the user card has been read.


(2) The buzzer sounds twice, indicating that the management card has been read.


(3) A corresponding prompt sound is given when the corresponding key is pressed.


(4) If the buzzer does not respond, it means that the card is not read.


04 Card reader circuit design

Data output format: 


A total of 48 bits are output, i.e. 6 bytes. The first byte is the ID card identification code, the second to fifth bytes are the card number, and the last byte is the checksum of the first five bytes. The checksum operation variable type is BYTE type, and the carry is discarded during the operation.


When synchronous serial output mode is selected, the high bit of each byte is output first; when asynchronous serial output mode is selected, the low bit of each byte is output first. The output baud rate is 9600 Bits/S.


Data output waveform:

(1) The ID card number is read through the card reader antenna when the card is swiped.


(2) The card number is transmitted to the microcontroller pin through SO.


(3) A low level is transmitted through CP, indicating that a card has been swiped.


05 Software Programming

The main work in the program loop is to determine whether a card is swiped. If so, it determines what card it is and then performs corresponding processing. The overall process of the access control system is shown below.


The management card function subroutine flow chart is shown below.

The access control security management system is a new modern security management system, which integrates microcomputer automatic identification technology and modern security management measures. It involves many new technologies such as electronics, machinery, optics, computer technology, communication technology, biotechnology, etc. It is an effective measure to solve the security management of the entrances and exits of important departments. It is suitable for various confidential departments, such as banks, hotels, parking lot management, computer rooms, armories, confidential rooms, offices, intelligent communities, factories, etc.


Keywords:MCU Reference address:Design of access control security management system based on single chip microcomputer

Previous article:Design of automobile drunk driving monitoring system based on single chip microcomputer
Next article:Design of Indoor Environmental Parameters Automatic Control System Based on Single Chip Microcomputer

Recommended ReadingLatest update time:2024-11-15 07:23

51 MCU-Breathing Light
1. Dual timer breathing light realization The implementation principle of the breathing light is to let the IO port of the small light output PWM with a duty cycle that changes from large to small over a period of time, and then output from a small to large duty cycle. The display effect of the small light is that i
[Microcontroller]
51 MCU-Breathing Light
Summary of the 51 MCU learning MCU
I have been studying microcontrollers for a semester, and now I have switched from 51 to STM32. I have always wanted to make a summary of my study of 51. I also hope to be able to inspire others and provide some suggestions for future learners. Of course, this article is a summary of my own learning process. If there
[Microcontroller]
4x4 keyboard program written using 51 single chip interrupt
    The application query scan is used to write the keyboard program. Because the keys need to be debounced, the program becomes more complicated and lengthy (see the blog post "MSP430 and AT89C51 MCU 4x4 Keyboard C Program" on September 29, 2013 for details). If it is written with interrupts, the interrupt response i
[Microcontroller]
4x4 keyboard program written using 51 single chip interrupt
Design of low power consumption electronic thermometer based on MSP430F microcontroller
  The thermometer has an electronic clock, a detection range of 10℃~30℃, a detection resolution of 1℃, an LCD display, and a static power consumption of 0.5μA. Its system design concept also has a certain reference value for the research and development of other types of ultra-low power consumption micro-portable inte
[Microcontroller]
Design of low power consumption electronic thermometer based on MSP430F microcontroller
AVR microcontroller loading and simulation interface circuit
ISP download interface does not require any peripheral parts. Use double-row 2*5 sockets. Since there are no peripheral parts, PB5 (MOSI), PB6 (MISO), PB7 (SCK), and reset pins can still be used normally without interference from ISP. Important note: In actual application, if you want to simplify the parts, you can not
[Microcontroller]
AVR microcontroller loading and simulation interface circuit
51 MCU Introduction VI: 1602 LCD Display
This section mainly introduces the 1602 LCD display, which displays "Hello, Welcome to my site, my friends.". The schematic diagram is as follows: The procedure is as follows: #include reg52.h #define uchar unsigned char #define uint unsigned int sbit RS=P3^0; //Data/command selection terminal (H/L) sbit EN=P3^2; /
[Microcontroller]
51 MCU Introduction VI: 1602 LCD Display
Energy-saving control instrument and control technology of oil pumping unit based on MCU
  In order to realize the goal that the oil pump can automatically perform Δ/Y bidirectional switching and intermittent timing control in real time according to load requirements, the control circuit shown in Figure 1 is designed using embedded control technology. ?   The hardware system of the intelligent power
[Microcontroller]
Energy-saving control instrument and control technology of oil pumping unit based on MCU
Detailed explanation of the working principle of 51 single-chip microcomputer P0 port
1. Structure and working principle of P0 port The structure of one of the 8 bits of port P0 is shown in the figure below:   As can be seen from the figure above, the P0 port is composed of a latch, an input buffer, a switch, a NAND gate, an AND gate and a field effect transistor drive circuit. Looking at the
[Microcontroller]
Detailed explanation of the working principle of 51 single-chip microcomputer P0 port
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号