ABSTRACT
This project report describes the design and construction of an electronic door lock which uses a microcontroller as the main control unit. The project’s objective was to interface this microcontroller with an LCD, keypad and a DC motor. However, programming the PIC chip to perform a task like identifying an authorised user is also among the objectives of this project. Codes were developed in assembly language, complied, debugged and downloaded to the PIC microcontroller. These codes actually controls the activities of every other component attached to the microcontroller. The unique feature of this project is the use of LCD to display information to users and ability to change an unlock code as many times as necessary. It has two operational modes; the first modes only deactivates the lock while the other allows a user to change an unlock code. Only authorised users are granted access to the secured place. An authorised user is any person who can provide a correct Personal Identification Number (PIN). The lock mechanism is made of a spring controlled lock attached to a DC motor. When the motor receives an appropriate signal, it pulls away a cross pin which leaves the lock inactive. The spring in the lock pulls the cross pin back to activate the lock when the motor stops receiving signal. From the prototype constructed, a test was performed in real world environment. The test evaluates the system with all of the hardware and software components integrated. The goal was to emulate a real lock system and to monitor the response of the lock under odd situations for a given period of time. The test results obtained confirmed that the lock will serve in places where access control is required. The functionality of the lock can be enhanced by incorporating it with a computer and software that will allow for multiple users. With a computer, records of each user can be stored and retrieved when needed.
CONTENTS
TITLEPAGE
Preliminary Pages
•Declarationii
•Certificationiii
•Dedicationiv
•Acknowledgementv
•Abstractvi
•Table of Contentsvii
Chapter One – General Introduction01
1.0Background of the project01
1.1Motivation and Significance01
1.2Aim and Objectives02
1.3Scope02
1.4Methodology03
1.5Project Outline04
Chapter Two – Literature Review05
2.0Introduction05
2.1A Review of Previous Electronic Door Locks05
2.2Overview of PIC16F87707
2.2.1Specifications of PIC16F87708
2.2.2Pins Description of PIC16F87708
2.2.3Architecture of PIC16F87709
2.2.4Memory Organization of PIC16F87712
2.2.5Functionalities of PIC16F87714
2.3Overview of LM016L14
2.3.1Pin Configuration/Description of the LM016L15
2.3.2Command Set of the LM016L16
TITLEPAGE
2.4Keypad17
2.5Lock Mechanism18
Chapter Three – Design Analysis, Coding and Implementation19
3.0Introduction19
3.1Hardware Design19
3.1.1Power Supply19
3.1.2Pull-Up Resistors20
3.1.3Indicators21
3.1.4Microcontroller Selection22
3.1.5Oscillator Selection22
3.1.6LCD Selection23
3.1.7Keypad Selection23
3.1.8DC Motor Selection23
3.2Software Design23
3.2.1Header Block24
3.2.2Configuration24
3.2.3Label Equates25
3.2.4Ports Initialization25
3.2.5Subroutines25
3.3Coding and Implementation28
TITLEPAGE
Chapter Four – Discussions and Analysis30
4.0Introduction30
4.1Simulation and Debugging30
4.2Construction and Parts Coordination31
4.3Testing Plans and Specifications33
4.3.1Voltage and Power Supply Test Specification33
4.3.2PIC16F877 Test Specification33
4.3.3LM016L (LCD) Test Specification33
4.3.4Control Unit Test Specification33
4.3.5Overall System Test34
4.4Operational Principles of the UPDL34
Chapter Five – Conclusions and Recommendations35
5.0Introduction35
5.1Conclusion35
5.2Recommendations35
•References37
•Appendix A38
•Appendix B43
•Appendix C45
•Appendix D49