MICROPROCESSOR AND ASSEMBLY LANGUAGE Assignment no: 04 Submitted By: Abeera Asim Rimsha Abid Hassan mehmood Zainab akram Submitted To: Sir Umer Aftab (20-cs-114) (20-CS-043) (20-CS-103) (20-CS-115) Abstract: In this project we created a Lock system for doors that will provide the security to the houses,Banks,shop etc.This System is based on emulator 8086,Its functions are created over it.It provides different functions to set password,to change password etc. this project is very usefull to people for security purpose. Table of Contents: i. Introduction ii. Microcontroller. iii. Project objective. iv. Power supply of the circuit. v. Principle used. vi. The Microcontroller system. vii. Circuit Diagram of password based lock system. viii. Components used. ix. x. Password Based Door Locking System Circuit Operation. Advantages of password based door lock system. xi. Limitations of password based door lock system. xii. Conclusion. Password Based Door Lock System using 8051 Microcontroller Introduction: Password based Door lock system using 8051 is a project where a secure password will act as door unlocking system.with advanced techniques of locking system. These techniques are an integration of mechanical and electronic devices and are highly intelligent. One of the prominent features of these innovative lock systems is their simplicity and high efficiency. Such an automatic lock system consists of electronic control assembly, which controls the output load through a password. This output load can be a motor or a lamp or any other mechanical/electrical load. Here, we developed an electronic code lock system using 8051 microcontroller (a Password based Door Lock System using 8051 Microcontroller), which provides control to the actuating the load. It is a simple embedded system with input from the keyboard and the output being actuated accordingly. This system demonstrates a Password based Door Lock System using 8051 Microcontroller, wherein once the correct code or password is entered, the door is opened and the concerned person is allowed access to the secured area. Again, if another person arrives, it will ask to enter the password. If the password is wrong, then door would remain closed, denying access to the person. Microcontroller: The microcontroller can be defined as a small chip that is used in order to build certain systems. It is internally built and is integrated with Embedded C language. PROJECT OBJECTIVE: The objective of this report is to design a PasswordDigital locking system using Micro-controller. This project works on the logic that if wrong password is entered then the microcontroller doesn‟t allow the user to access the system. But, if correct password is entered it grants the user to access the system. Power supply of the circuit: The power supply circuit is the main basis of providing power to the entire circuit by means of using rectifiers, filtering and regulating the AC supply of the circuit. The microcontroller is preprogrammed using embedded language. A keypad and LCD is also required for entering the password and LCD for displaying the information. Principle used: If a user enters correct password, it sends that code to the microcontroller to check and compare with the predefined password. And, if the password is matched then the LED indicates the display of information as ‘MATCHED’ on the LCD, else it shows „MISMATCHED‟. The password can be modified by modifying the predefined password. The Microcontroller system: We can also demonstrate the basic working of a microcontroller by using a block diagram • Here, the Input component indicates digital devices • The control unit represents microcontroller • The output devices are LEDS, segment display etc. Circuit Diagram of password based lock system: COMPONENTS USED: 8051 Microcontroller 8051 Development Board 8051 Programmer 4×4 Matrix Keypad 16×2 LCD L293D Motor Driver Board DC Motor 10KΩ Potentiometer Connecting wires Power Supply If 8051 Development Board is not used, then the following components are needed. o 11.0592 MHz Quartz Crystal o 2 x 33pF Ceramic Capacitors o 2 x 10 KΩ Resistor (1/4 Watt) o 10 µF Capacitor (Polarized) o Push Button o 2 x 1 KΩ Resistors (for pull up) Keil µVision IDE Willar Programmer Proteus (for circuit diagram and simulation) Password Based Door Locking System Circuit Operation • When “ON” microcontroller sends signals to display „enter password‟ on LCD. Once password matches it displays „access granted‟ on LCD to represent that the controller read password successfully • If the password is matched then further, the input signals for motor drive will increase(0.1HIGH) and hence the locked door will be open. • If the password is mismatched then the input signals will remain (0.0 LOW) and the locked door will remain stationed. Advantages of password based door lock system: The advantages of this system are quite reliable. Such as: • This system provides security • The components are cheap and easily available • Power consumption isn‟t as high • The making is simple • This simple circuit can be used at all places to ensure security and safety Limitations of password based door lock system: • The door won‟t open in case of wrong password. • It is a moderately low range circuit Conclusion: This project enabled us to look more into microcontroller. We also learned how to achieve a programmable devices through coding. The entire design is also highly efficient and ensures high level security. This device also gives us an outlook of how we can do so much through programming which can help people in both residential and commercial places.