Proteus Locking System with Keypad and Pincode

Proteus Locking System with Keypad and Pincode

This project is about building a Proteus Pincode secure door locking using Arduino Uno, I2C LCD and 4X3 Matrix Keypad. The user has to enter an exact pin code before granting access. LEDs were used to represent the magnetic door latches. This means you can physically build the project and replace the LEDs with magnetic lockers/latches. The project was built and coded in two separate versions.

The first version is termed as Manual Relock. With this version, when a user enters a correct pin code and the door is opened, the user has to press the ” * ” button on the keypad to return the latch to lock state. Also when a user enters a wrong pin code for 3 consecutive times, the system enters a restriction safe mode. This means no further input is allowed until the system administrator manually reset the system.

There is also an Automatic Relock version. Unlike the Manual Relock, this version will automatically relock the door after a user has inputted a valid unlock code. Moreover, when a user enters a wrong pin code for 3 consecutive times, the system enters a restriction safe mode for a predefined period of time and automatically return to the normal state.

This proteus Pincode locking system is applicable to places where security and privacy are paramount. Security and privacy are very essential yet challenging in this modern era. An era where privacy is a concern to everyone. What if someone gets hold of the key to your locker, room or office? It means, the person can steal your precious asset, classified documents or anything that you hold dear to.

Using a password or Pincode system is secure as compared to the traditional physical key locking system. The only drawback about the digital and electronic locking system is their dependant on a power source. This means in some situations where the system will be driven by the public utility supplier, the system will not work whenever there is a blackout. This issue can be however rectified by incorporating a backup source such as rechargeable batteries, solar etc.

Building the Proteus Pincode Locking system

Circuit diagram of the Proteus pincode locking system
Proteus Pincode Locking system Diagram

The circuit is very simple, just connect your hardware as shown in the diagram above and then download your preferred version of the zip file below which contain all the code and the Proteus project file. Extract the zip file and upload the hex file to the Arduino board in Proteus.

You also need Keypad and I2C LCD Libraries for Arduino. If you don’t have them already you can download them from these links.

  1. Keypad Library
  2. I2C LCD Library

Moreover, if this is your first time using proteus, you may need to install the Arduino libraries for Proteus.

You can refer to the video below on how to open, upload the hex file and run the simulation.

To change the default access code, edit the area highlighted in yellow from the image below.

changing default pincode of the Proteus locking system
Changing the default Pincode of the proteus locking system

This is a 3 digits Pincode project so makes sure the default Pincode is not more than 3 digits. If you need more than 3 digit Proteus Pincode project, just write it in the comment. Also if you have any project that you want me to help you design and simulate, don’t hesitate to contact me.

NB. If you need four (4) digits password / Pin code locker, please download this project: 4 digit Pin code Proteus Locking System

9 thoughts on “Proteus Locking System with Keypad and Pincode

  1. Hello Sir! I have a Problem. If i am changing in the code then lcd does not show any data. What is the error produced during changing. Kindly Explain with me

    1. Add another value to: String password = “667”; // to make it 4 digits
      Then Change:
      1. String key[3]; to String key[4];
      2. lcd.setCursor(position,2); to lcd.setCursor(position,3);
      3. if(position == 3) to if(position == 4)
      4. else if(position == 3 && wrong == 0) to else if(position == 4 && wrong == 0)

  2. sir, the compilation error of arduino code has been solved.
    but i’m facing problem while adding the directory of hex file into the arduino. it’s showing the file property has not been specified.
    please can you tell me what to do?

Leave a Reply

Your email address will not be published. Required fields are marked *