Here, we used the Keil µVision software to write the program in C language. Motor is connected between OUT1 and OUT2 (1Y and 2Y) pins of L293D.Ĭompilation of Microcontroller Code:Once the circuit is designed and drawn on a piece of paper, the next step is to write and compile the code.
WILLAR PROGRAMMER DRIVER
The IN1 and IN2 of (1A and 2A) of the L293D Motor Driver are connected to PORT0 pins P0.0 and P0.1. The four ROW pins of the Keypad are connected to P2.0 to P2.3 and the four COLUMN pins of the Keypad are connected to P2.4 to P2.7 pins respectively. The eight data lines of the LCD are connected to PORT1. RS, RW and E of LCD are connected to P3.0, GND and P3.2 pins respectively. Interfacing LCD, Keypad and Motor Driver: First, a 10KΩ Potentiometer is connected to the LCD Display’s Contrast Adjust Pin (Pin 3). This crystal oscillator is connected between pin 18 and 19 of the microcontroller. Oscillator Circuit Design: An 11.0592MHz crystal oscillator is used to provide external clock signal to the microcontroller. To ensure smooth operation, we need to connect two ceramic capacitors in the range of 30pF to 40pF. Hence, we selected a 10KΩ resistor and a 10♟ electrolytic capacitor. In other words to ensure the supply voltage does not falls below the threshold level of 1.2V and the reset pulse width is greater than 100ms (recommended for 89C52), we need to select the values of resistor and capacitor such that RC >=100ms. Reset Circuit Design:The reset pin of the microcontroller is kept active till the power supply is in the specified range and a minimum oscillation level is maintained. We can use 9V DC battery or 12V, 1A adaptor as a power source. In order to provide regulated 5V DC voltage to the controller we need to use 7805 power supply circuit. This controller requires a supply voltage of +5V DC. Here, an AT89C52 Microcontroller is used and it is an 8-bit controller. Password based door lock system using 8051 microcontroller circuit design uses five major components – a Microcontroller, an L293D Motor Driver, a DC Motor, a 4×4 Matrix Keypad and a 16×2 LCD.
WILLAR PROGRAMMER HOW TO
How to Design Circuit of Password based Door Lock System?
If the entered password is correct, then the system opens the door by rotating door motor and displays the status of door on LCD. The password which is entered is compared with the predefined password. In this project, a 4×4 Matrix Keypad is used to enter the password. The main component in the circuit is 8051 controller.
WILLAR PROGRAMMER CODE
Recommended Reading: Electronic Code Lock System using Single Transistor Principle Behind the Circuit If the password is wrong, then door would remain closed, denying access to the person. Again, if another person arrives, it will ask to enter the password. 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. It is a simple embedded system with input from the keyboard and the output being actuated accordingly. 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. This output load can be a motor or a lamp or any other mechanical/electrical load. Such an automatic lock system consists of electronic control assembly, which controls the output load through a password. One of the prominent features of these innovative lock systems is their simplicity and high efficiency. These techniques are an integration of mechanical and electronic devices and are highly intelligent. Traditional lock systems using mechanical lock and key mechanism are being replaced by new advanced techniques of locking system. Password Based Door Lock System using 8051 Microcontroller is a simple project where a secure password will act as a door unlocking system.