CONTENTS CATEGORY OF FIGURE IV CATEGORY OF TABLE V LIST OF ACRONYMS VI CHAPTER 1. OVERVIEW OF TOPIC 1 1.1 INTRODUCTION TO THE TOPIC 1 1.2 RESEARCH SUBJECTS 1 1.3 RESEARCH SCOPE 1 1.4 EXPECTED RESULTS 1 CHAPTER 2. THEORETICAL BASIC 3 2.1 MICROCONTROLLERS 3 2.2 RFID APPLICATION 13 2.3 KEYPAD (3X4) 15 2.4 LIQUIDCRYSTAL DISPLAY (LCD) 16 2.5 ELECTROMAGNETIC DOOR LOCK 18 CHAPTER 3. BLOCK DIAGRAM AND CONTROL ALGORITHMS 20 3.1 BLOCK DIAGRAM 20 3.2 CONTROL ALGORITHMS 21 CHAPTER 4. CIRCUIT DESIGN AND MODEL CONSTRUCTION 22 4.1 CIRCUIT DESIGN 22 4.1.1 Principle diagram 22 4.1.2 PCB layout 23 4.1.3 Actual circuit 24 4.2.2 Complete project 25 CHAPTER 5. EXPERIMENT 26 5.1 EXPERIMENTAL PROGRESS 26 5.2 EXPERIMENTAL RESULTS 26 CHAPTER 6. OUTCOME 34 6.1 ADVANTAGES 34 6.2 DISADVANTAGES 34 6.3 DEVELOPMENT 35 PROGRAM 36 CATEGORY OF FIGURE 1 Pic 16F877a 4 2 PIC16F877A General Structure 5 3 RDM 6300 14 4 Matrix keypad 15 5 LCD 1602A 16 6 ASCII CODE TABLE FOR LCD 17 7 Electromagnetic door lock 18 8 Principle diagram on Proteus 22 9 PCB layout 23 10 Actual circuit 23 11 Actual circuit 24 12 Complete mod 24 13Main screen 25 14 Enter the pass 26 15 Correct pass 26 16 Correct card 27 17 Incorrect pass 27 18 Incorrect card 28 19 Incorrectly more than 3 times 29 20 Menu monitor 29 21 Change password 29 OVERVIEW OF TOPIC 1.1 Introduction to the topic This system provides users with two options to unlock the door: entering a password or scanning a card. If the correct password is entered, the system will give users the option to change the password. However, users are only allowed a maximum of three attempts to enter the password or scan the card. If this limit is exceeded, the system will activate an alarm to alert the possibility of a thief attempting to break in.Research purposes Utilizing the knowledge gained from the study of microcontrollers, I aim to develop an automatic door opening system that incorporates both a password and magnetic card function. The purpose of this system is to enhance safety and security measures for door access. 1.2 Research subjects Microcontroller PIC 16F877A, LCD 1602A, ELECTROMAGNETIC DOOR LOCK, RDM 6300, MATRIX KEYPAD. 1.3 Research scope Smart magnetic door with accurate processing and good security, ensuring safety for households, offices or factories. 1.4 Expected results The door access system mandates that users either input a password or scan a magnetic card. Upon completing these actions, the LCD display will present one of two statuses. If the user enters the correct password and successfully scans the card, the LCD will exhibit a correct status message. However, if incorrect information is entered or scanned, the LCD will show an error message and trigger the buzzer. If the number of allowed access attempts exceeds the maximum limit, an alarm siren will blare. This automatic door opening system also facilitates the password change function, providing users with an option to update their password as desired.
CONTENTS CATEGORY OF FIGURE IV CATEGORY OF TABLE V LIST OF ACRONYMS VI CHAPTER 1 OVERVIEW OF TOPIC 1 1.1 INTRODUCTION TO THE TOPIC 1 1.2 RESEARCH SUBJECTS 1 1.3 RESEARCH SCOPE .1 1.4 EXPECTED RESULTS 1 CHAPTER 2 THEORETICAL BASIC 3 2.1 MICROCONTROLLERS .3 2.2 RFID APPLICATION 13 2.3 KEYPAD (3X4) 15 2.4 LIQUID-CRYSTAL DISPLAY (LCD) 16 2.5 ELECTROMAGNETIC DOOR LOCK 18 CHAPTER 3 BLOCK DIAGRAM AND CONTROL ALGORITHMS 20 3.1 BLOCK DIAGRAM 20 3.2 CONTROL ALGORITHMS .21 CHAPTER 4 CIRCUIT DESIGN AND MODEL CONSTRUCTION 22 4.1 CIRCUIT DESIGN 22 4.1.1 Principle diagram .22 4.1.2 PCB layout 23 4.1.3 Actual circuit .24 4.2.2 Complete project 25 CHAPTER 5 EXPERIMENT 26 5.1 EXPERIMENTAL PROGRESS .26 5.2 EXPERIMENTAL RESULTS 26 CHAPTER 6 OUTCOME 34 6.1 ADVANTAGES .34 6.2 DISADVANTAGES 34 6.3 DEVELOPMENT 35 PROGRAM 36 CATEGORY OF FIGURE 1- Pic 16F877a 4 2- PIC16F877A General Structure -5 3- RDM 6300 14 4- Matrix keypad 15 5- LCD 1602A 16 6- ASCII CODE TABLE FOR LCD 17 7- Electromagnetic door lock -18 8- Principle diagram on Proteus 22 9- PCB layout -23 10- Actual circuit -23 11- Actual circuit -24 12- Complete mod 24 13-Main screen 25 14- Enter the pass -26 15- Correct pass -26 16- Correct card -27 17- Incorrect pass -27 18- Incorrect card -28 19- Incorrectly more than 3 times 29 20- Menu monitor 29 21- Change password 29 Y CATEGORY OF TABLE Table 1- Table pin of pic 16F877a 5 LIST OF ACRONYMS RFID: Radio Frequency Identification PIC: Programmable Intelligent Computer LCD: Liquid crystal display PCB: Printed Circuit Board PROJECT OF EMPLOYED SYSTEMS Page 1/18 CHAPTER 1 OVERVIEW OF TOPIC 1.1 Introduction to the topic This system provides users with two options to unlock the door: entering a password or scanning a card If the correct password is entered, the system will give users the option to change the password However, users are only allowed a maximum of three attempts to enter the password or scan the card If this limit is exceeded, the system will activate an alarm to alert the possibility of a thief attempting to break in.Research purposes Utilizing the knowledge gained from the study of microcontrollers, I aim to develop an automatic door opening system that incorporates both a password and magnetic card function The purpose of this system is to enhance safety and security measures for door access 1.2 Research subjects Microcontroller PIC 16F877A, LCD 1602A, ELECTROMAGNETIC DOOR LOCK, RDM 6300, MATRIX KEYPAD 1.3 Research scope Smart magnetic door with accurate processing and good security, ensuring safety for households, offices or factories 1.4 Expected results The door access system mandates that users either input a password or scan a magnetic card Upon completing these actions, the LCD display will present one of two statuses If the user enters the correct password and successfully scans the card, the LCD will exhibit a correct status message However, if incorrect information is entered or scanned, the LCD will show an error message and trigger the buzzer If the number of allowed access attempts exceeds the maximum limit, an alarm siren PROJECT OF EMPLOYED SYSTEMS Page 2/18 will blare This automatic door opening system also facilitates the password change function, providing users with an option to update their password as desired CHAPTER 2 THEORETICAL BASIC 2.1 Microcontrollers Microcontroller is a computer integrated on a chip, it is often used to control electronic devices A microcontroller, in essence, is a system consisting of a microprocessor with sufficient performance and low cost (different from general- PROJECT OF EMPLOYED SYSTEMS Page 3/18 purpose microprocessors used in computers) combined with peripheral blocks such as a microprocessor memory, input/output modules, digital-to-analog and analog- to-digital conversion modules, etc In computers, modules are usually built by chips and external circuits Microcontrollers are commonly used to build embedded systems It is also used in electrical and electronic equipment such as washing machines, microwave ovens, telephones, DVD players, multimedia equipment or automated production lines, etc The processor in this system is 16F877A PIC16F877A is a 40-pin PIC Microcontroller and is used mostly in embedded projects and applications It has five ports starting from port A to port E It has three timers of which two are 8-bit timers and one is 16-bit timers It supports many communication protocols such as serial protocol, parallel protocol, I2C protocol The PIC16F877A supports both hardware pin interrupts and timer interrupts PROJECT OF EMPLOYED SYSTEMS Page 4/18 Figure 2.1- Pic 16F877a PROJECT OF EMPLOYED SYSTEMS Page 5/18 Figure 2.2- PIC16F877A General Structure Table 1- Table pin of pic 16F877a Pin Name Function - / MCLR: Active low reset 1 /MCLR/VPP - VPP: programmable voltage input – RA0: input/output 2 RA0/AN0 number – AN0 : analog input – RA1: output/import 3 RA1/AN1 numbers – AN1 : analog input 4 RA2/AN2/VREF-/CVREF – RA2: output/import