Sir Boateng Online
No Result
View All Result
  • TECH & ELECTRONICS
    • Arduino Projects
    • Proteus
    • Applied Electricity
  • TUTORIALS
    • Blogging
  • EDUCATION
    • GES Resources
    • NTC Resources
    • Scholarships
    • Universities & Colleges
  • REVIEWS
    • Comparisons
  • MORE
    • Contact Us
    • Disclosure Statement
    • Disclaimer
    • Privacy Policy
Sunday, May 11, 2025
  • TECH & ELECTRONICS
    • Arduino Projects
    • Proteus
    • Applied Electricity
  • TUTORIALS
    • Blogging
  • EDUCATION
    • GES Resources
    • NTC Resources
    • Scholarships
    • Universities & Colleges
  • REVIEWS
    • Comparisons
  • MORE
    • Contact Us
    • Disclosure Statement
    • Disclaimer
    • Privacy Policy
No Result
View All Result
Sir Boateng Online
No Result
View All Result
Home Proteus

Proteus Locking System with Keypad and Pincode

Sir Boat by Sir Boat
18th August 2023
Reading Time: 5 mins read
1.5k 114
25
Proteus Locking System with Keypad and Pincode
Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com
ADVERTISEMENT

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 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 the lock state.

Also when a user enters the wrong pin code 3 consecutive times, the system enters a restriction safe mode. This means no further input is allowed until the system administrator manually resets 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 3 consecutive times, the system enters a restriction-safe mode for a predefined period of time and automatically returns to the normal state.

See also, a 4-way traffic system developed in Proteus.

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.

Recommended Posts:

  • How to connect multiple LCDs to Arduino in Proteus
  • Top 8 Arduino Projects in Proteus with Source Code
  • Proteus 8.11 Latest Version Download For Free
  • Proteus 8.12 Latest Version Download for Free
  • Arduino Bluetooth Locking System with MIT App Inventor

Using a password or Pincode system is secure as compared to the traditional physical key locking system. The only drawback of the digital and electronic locking systems is their dependence on a power source.

Table of Contents

    • Related Posts
    • Arduino 4-Way Traffic System with Pedestrian button in Proteus
  • Building the Proteus Pincode Locking System

Related Posts

Arduino 4-Way Traffic System with Pedestrian button in Proteus

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 contains all the code and the Proteus project file. Extract the zip file and upload the hex file to the Arduino board in Proteus.

Automatic Re-lock versionDownload
Manual Re-lock versionDownload
locker_4_digits codeDownload

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 make 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) a digit password / Pin code locker, please download this project: 4 digit Pin code Proteus Locking System

Join Our Tech & Edu Forum
Tags: proteus projectsproteus simulationtop proteus projects
Share745Tweet466Send
Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com
Sir Boat

Sir Boat

Boateng Oduro is passionate about learning new technologies and working on them. He is a teacher and an engineer who loves to read, write, and teach. He's always curious about things and very determined to track the latest technologies and the trends for the future.

Related Posts

4 - way Traffic system using Arduino Uno and Proteus ISIS
Arduino Projects

Arduino 4-Way Traffic System with Pedestrian button in Proteus

18th August 2023
Next Post
How to connect multiple lcd to arduino in proteus

How to connect multiple LCD to Arduino in Proteus

fix proteus crashing

How to Fix Proteus Crashing and Install Proteus Latest Version

Comments 25

  1. Muhammad Talha Saeed says:
    5 years ago

    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

    Reply
    • Boateng Oduro says:
      5 years ago

      What did you change in the code?

      Reply
  2. Khondoker Al Mamun says:
    4 years ago

    sir, i’m working on a project with 4 digit pin code. what changes will i have to do?

    Reply
    • Sir Boat says:
      4 years ago

      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)

      Reply
      • Khondoker Al Mamun says:
        4 years ago

        thanks for the reply. i’m trying. what is the result i’ll let you know

        Reply
  3. Khondoker Al Mamun says:
    4 years ago

    sir, there’s an error. it shows
    Error compiling for board Arduino/Genuino Uno.
    what i’ve to do?

    Reply
  4. Khondoker Al Mamun says:
    4 years ago

    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?

    Reply
    • Sir Boat says:
      4 years ago

      Reach me on Whatsapp +233266302607. I will like to see your set up and assist you where possible

      Reply
  5. Jordan Jesse says:
    4 years ago

    Can you please give me the project report?

    Reply
    • Sir Boat says:
      4 years ago

      Unfortunately, this is a custom project done by myself. there is no report

      Reply
  6. Miki says:
    4 years ago

    Hello, can you help me?
    When I run the code in arduino I get this error:’class LiquidCrystal_I2C’ has no member named ‘init’.
    Thank you!

    Reply
    • Sir Boat says:
      4 years ago

      You have two options to solve this issue:
      1. Download this LCD library: https://github.com/bemtele/LiquidCrystal_I2C/archive/main.zip remove your old LCD library and install this.
      2. Change the library header file from: #include to #include “LiquidCrystal_I2C.h”
      If you still have an issue, kindly let me know

      Reply
  7. Akash Deep says:
    4 years ago

    Sir i want to know why we use PCF8574 and how that IC gives command to LCD instead of arduino??

    Reply
    • Sir Boat says:
      4 years ago

      The PCF8574 is 8bit I2C expander. It is used to save pins of the Arduino because the Keypad module uses many of the Arduino pins. If you like you can connected the LCD directly to the Arduino.

      Reply
  8. Akash Deep says:
    4 years ago

    whe we did not connect LCD directly to Arduino ??

    Reply
    • Sir Boat says:
      4 years ago

      Also if you are building this project with real components, you don’t need the ic because it is already embedded on the LCD i2c backpack

      Reply
      • Akash Deep says:
        4 years ago

        Thank you sir

        Reply
        • Sir Boat says:
          4 years ago

          You are welcome

          Reply
  9. Sahil singh says:
    4 years ago

    sir ca you tell me how to add gsm module in this model or can you provide me complete file if possible ?

    Reply
    • Sir Boat says:
      4 years ago

      GSM module to do what?

      Reply
  10. Navin Raj says:
    4 years ago

    Sir what is the function of the buzzer and the switch in the circuit?

    Reply
    • Sir Boat says:
      4 years ago

      The buzzer is to sound an alarm when someone enters the wrong code 3 times. The switch is just a reset button that reset the Arduino in case of an unsuccessful attempts.

      Reply
  11. Sahil+singh says:
    4 years ago

    sir why we use bcf578 transistor ??

    Reply
    • Sir Boat says:
      4 years ago

      The BCF578 transistor is not critical and can be replaced with any general-purpose NPN transistor. You can even remove the transistor and connect the buzzer directly to the Arduino.

      Reply
  12. Pingback: (Updated) Arduino Sensor Libraries for Proteus - Sir Boateng

Leave a Reply Cancel reply

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

Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com
ADVERTISEMENT

Categories

  • Applied Electricity & Electronics (4)
  • Arduino Projects (8)
  • Blogging (3)
  • Comparisons (3)
  • Education (34)
  • Electronics (21)
  • GES Resources (19)
  • NTC Resources (8)
  • Product and Service Reviews (6)
  • Proteus (2)
  • Scholarships (2)
  • TM1 Laptop (7)
  • Tutorials (18)
  • Universities & Colleges (8)
Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com Buy all your electronics, STEM, Robotics and IoT products and sensors from DIYgh TECH HUB diygh.com
ADVERTISEMENT

About Us

Sir Boateng Online is a platform for technology and electronic projects, tutorials, and educational resources. Aside from creating Tech tutorials, we provide Education, GES, and NTC resources such as teaching syllabi, lesson notes, scheme of work, GES promotion, and NTC trial questions. We help people, especially DIY enthusiasts, to create websites for blogging, businesses, and organizations such as schools, churches, clubs, etc.

Popular Categories

Applied Electricity & Electronics Arduino Projects Blogging Comparisons Education Electronics GES Resources NTC Resources Product and Service Reviews Proteus Scholarships TM1 Laptop Tutorials Universities & Colleges

Search for Articles

No Result
View All Result

Stay Connected

Follow Us

Subscribe to receive updates
  • About Me
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions

© 2023 Sir Boateng Online by Lizbotech Engineering

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • TECH & ELECTRONICS
    • Arduino Projects
    • Proteus
    • Applied Electricity
  • TUTORIALS
    • Blogging
  • EDUCATION
    • GES Resources
    • NTC Resources
    • Scholarships
    • Universities & Colleges
  • REVIEWS
    • Comparisons
  • MORE
    • Contact Us
    • Disclosure Statement
    • Disclaimer
    • Privacy Policy

© 2023 Sir Boateng Online by Lizbotech Engineering