Question

Create a door lock system via a keypad in LabView

Create a door lock system via a keypad

in LabView

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Password Based Door Lock System using 8051 Microcontroller is a simple project where a secure password will act as a door unlocking system. Traditional lock systems using mechanical lock and key mechanism are being replaced by new advanced techniques of locking system. These techniques are an integration of mechanical and electronic devices and are highly intelligent.

Such an automatic lock system consists of an 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 microcontrollers (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 the door would remain closed, denying access to the person

Principle Behind the Circuit

The main component in the circuit is 8051 controller. In this project, a 4×4 Matrix Keypad is used to enter the password. The password which is entered is compared with the predefined password.

If the entered password is correct, then the system opens the door by rotating door motor and displays the status of door on LCD. If the password is wrong, then the door is remains closed and displays “PWD is wrong” on LCD.

Components Required

Hardware Requirements

  • 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.
    • 11.0592 MHz Quartz Crystal
    • 2 x 33pF Ceramic Capacitors
    • 2 x 10 KΩ Resistor (1/4 Watt)
    • 10 µF Capacitor (Polarized)
    • Push Button
    • 2 x 1 KΩ Resistors (for pull up)

Software Requirements

  • Keil µVision IDE
  • Willar Programmer
  • Proteus (for circuit diagram and simulation)

How to Design Circuit of Password based Door Lock System?

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. Here, an AT89C52 Microcontroller is used and it is an 8-bit controller. This controller requires a supply voltage of +5V DC. In order to provide regulated 5V DC voltage to the controller we need to use 7805 power supply circuit. We can use 9V DC battery or 12V, 1A adaptor as a power source.

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. 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. Hence, we selected a 10KΩ resistor and a 10µF electrolytic capacitor.

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. This crystal oscillator is connected between pin 18 and 19 of the microcontroller. Here, we used two 33pF capacitors.

Interfacing LCD, Keypad and Motor Driver: First, a 10KΩ Potentiometer is connected to the LCD Display’s Contrast Adjust Pin (Pin 3). RS, RW and E of LCD are connected to P3.0, GND and P3.2 pins respectively. The eight data lines of the LCD are connected to PORT1.

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 IN1 and IN2 of (1A and 2A) of the L293D Motor Driver are connected to PORT0 pins P0.0 and P0.1. Motor is connected between OUT1 and OUT2 (1Y and 2Y) pins of L293D.

Compilation 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. Here, we used the Keil µVision software to write the program in C language.

Prior to writing the code, general steps needs to be followed like creating a new project and selecting the target device or the required microcontroller. Once the code is written, we need to save it with .c extension and then add it to the source file group under the target folder. The code is then compiled by pressing F7 key.

Once the code is compiled, a hex file is created. In the next step, we use Proteus software to draw the circuit. The code is dumped into the microcontroller using an external programmer and Willar Software.

Password Based Door Locking System Circuit Operation

Once the circuit is powered ON, microcontroller sends commands to the LCD to display “enter password” on LCD. Now we need to enter the password using the keypad. Once password is entered, it displays 5 stars on LCD to indicate that controller read password successfully.

Now the controller compares the entered password with predefined password. If the password is matched, then the microcontroller makes P0.0 HIGH and P0.1 LOW, so the motor driver gets the input signals for forward motion of the motor.

As a result, the Door Motor rotates in forward direction to open the door. After a delay of 10seconds, the microcontroller makes P0.0 LOW and P0.1 HIGH, so the motor driver gets the input signals for reverse motion. As a result, the Door motor rotates in reverse direction to close the door.

If the password is not matched, then microcontroller maintains both P0.0 and P0.1 LOW. Hence, the door motor is stationary so that door remains closed.

NOTE: While giving the connections, make sure that there is no common connection between AC and DC supplies.

Password Based Door Lock System Algorithm

  1. Initially, declare the PORT1 to LCD data pins and control pins (RS and E) to P3.0 and P3.2. Also, declare PORT2 to the keypad. Also, use P0.0 and P0.1 for the motor driver.
  2. Then, display the message “enter password” on LCD.
  3. Now read the five-digit password from the user.
  4. Compare the entered password with the stored password.
  5. If a password is correct, then make P0.0 pin HIGH and P0.1 pin LOW to open the door. During this time, display “Door opening” on LCD.
  6. After some time, make P0.0 pin LOW and P0.1 pin HIGH to close the door and after this display “Door closing” on LCD.
  7. If the password is wrong, then display “Wrong Password” on LCD.
  8. After some delay again ask to enter a password.

Advantages of Password Based Door Lock System

  • This project provides security
  • Power consumption is less
  • Used commonly available components
  • Project is simple and easy

Applications of Password Based Door Lock System

  • This simple circuit can be used at residential places to ensure better safety.
  • It can be used at organizations to ensure authorized access to highly secured places.
  • With a slight modification this Project can be used to control the switching of loads through password.

Limitations of Password Based Door Lock System

  • It is a low range circuit, i.e. it is not possible to operate the circuit remotely.
  • If you forget the password it is not possible to open the door.
Add a comment
Know the answer?
Add Answer to:
Create a door lock system via a keypad in LabView
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A simple security system for two doors consists of a card reader and a keypad.   A...

    A simple security system for two doors consists of a card reader and a keypad.   A person may open a particular door if he or she has a card containing the corresponding code and enters an authorized keypad code for that card. The outputs from the card reader are as follows: A B No card inserted 1 0 Valid code for door 1 1 1 Valid code for door 2 0 1 Invalid card code 0 0    To unlock...

  • Create a Microwave Timer in LabVIEW with the following interface: Custom Cook Time Entry In Seconds...

    Create a Microwave Timer in LabVIEW with the following interface: Custom Cook Time Entry In Seconds (Numeric Control) Cook time remaining indicator (Numeric Indicator) Start Microwave (Boolean Control) LED Indicating microwave on (LED Indicator) Door open toggle (Boolean Control) Power Level (Numeric Slider) Current Power Level Indicator (Numeric Indicator) Cooking Completed LED Stop Microwave (Boolean Control) Functionality: User opens door to microwave and closes door Cook time is entered Power Level Selected Start Microwave Pressed Cooking LED turns on Power...

  • LABVIEW You are designing the LABView interface for a new medical monitoring system that will be...

    LABVIEW You are designing the LABView interface for a new medical monitoring system that will be used in the operating room. The device has 3 sensors and 2 warning signals. - Respiration Sensor is activated when it detects a decrease in a patient's respiration. - Pulse Sensor is activated when it detects an increase in the patient's pulse. - Blood Pressure Sensor is triggered when the patient's blood pressure falls below a certain level. The device's warning alarm is triggered...

  • Project 1. Dog Door You are asked to create a dog door for a client. You...

    Project 1. Dog Door You are asked to create a dog door for a client. You are programming the remote that will do things such as open and close, etc. You must create both the program and write a white paper explaining your design • It should open (saying "The dog door is open.") and close (saying "The dog door is closed.). • It should take into account a dog going outside and coming back in; it should open when...

  • Chris is figuring out a new code for his garage door. He must create a 4...

    Chris is figuring out a new code for his garage door. He must create a 4 digit code but the keypad only allows for digits 0-5 to be used. How many possible codes could Chris create if he wanted to at least use one even digit (0,2,4). There are no rules about repetitions or the amount of 0's.

  • A lock on a lab door has buttons numbered 0 through 9. The right code for...

    A lock on a lab door has buttons numbered 0 through 9. The right code for opening the lock is 8542. Also, if on three consecutive attempts, a wrong code (a code is a combination of 4 ordered distinct digits) is entered, then a burglar alarm is let off. You forgot the right code, but remember that the code consists of 4 distinct digits. So you keep on trying one code after another without replacement. Compute the probability that you...

  • A sample of 137 burglaries indicated that 58 were not via an open or unlocked door...

    A sample of 137 burglaries indicated that 58 were not via an open or unlocked door window. At the 0.05 level of significance, test the claim that less than 50% of the burglaries are not through an open or unlocked door or window.

  • public class Lock{ // ADD ATTRIBUTES HERE /** Create a lock for the specified box *...

    public class Lock{ // ADD ATTRIBUTES HERE /** Create a lock for the specified box * <p> * The lock must be initially locked (closed) when created. * The lock must be given a UNIQUE ID value when created. * * @param box is a Box that will have this lock to keep is shut. */ public Lock(Box box){} /** Retrieve the key for this lock. * <p> * This method can be called multiple times but is only allowed...

  • Professor X keeps his final exams in his Lab. For security reasons, he would like you...

    Professor X keeps his final exams in his Lab. For security reasons, he would like you to design an alarm system for his Lab that can be activated with a key when Professor X is not in the Lab. The Lab has a window and door that are equipped with sensors that output a one (HIGH) when they are secured (i.e., closed). When the alarm system is activated with a key, an LED should light up if either the window...

  • Use LabView instead of matlab please Expert Q&A Done Create a VI that: Generates random integers...

    Use LabView instead of matlab please Expert Q&A Done Create a VI that: Generates random integers between 0 and 40. Iterate this random process until the random integer equals 13. Display the following non the Front panel (1.) The actual random number (2.) The iteration number Include a time delay so the user can watch the valuse update as the program executes. USE MATLAB

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT