pcbway

Password protection using PIC Microcontroller, password protection, password protection system, keypad password protectionHello friends, hope you all are fine and having fun with your lives. Today, I am going to share a new project which is Password Protection using PIC Microcontroller. In this project I am going to use keypad and LCD and will be designing a system in which I am gonna drive a motor if the correct password is supplied. If you entered the wrong password then the motor will not move and you will get another chane to enter the correct password. I hope you guys are gonna enjoy this one.

I have used Keypad, LCD and PIC Microcontroller in order to design the simulation in Proteus ISIS software. You should also have a look at Electronic Door Lock using PIC Microcontroller, which is quite similar with the only difference of keypad. In that previous project, I have used serial monitor for taking inputs but in today’s tutorial, I have used Keypad for taking inputs. I hope you are gonna enjoy this one.

I have used Proteus software for designing the simulation and I hve used MikroC Pro for PIC compiler for designing the programming code for PIC Microcontroller and I have used PIC16F877 microcontroller for designing this project. The code and simulation is given below for download. If you have any problem then ask in comments and I will try my best to resolve them. So, let’s get started with Password Protection using PIC Microcontroller.

Password Protection using PIC Microcontroller

  • You can download the complete simulatin along with the code by clicking the below button but as I always suggests that you should design it on your own so that you get most out of it:

Download Project Files

  • So, now let’s design this Password Protection using PIC Microcontroller project, so design a circuit as shown in below figure:

Password protection using PIC Microcontroller, password protection, password protection system, keypad password protection

  • You can see in the above figure that I have used LCD 20×4 along with keypad, motor and PIC Microcontroller.
  • I have also used a transistor which is kind of a driver for DC Motor, because DC motor is operated at 12V while PIC Microcontroller signal is of 5V so we need this transistor in order to drive our motor.

Note:

  • If you want to use this new stylish LCD in your Proteus simulation then you need to download and install this New LCD Library for Proteus. All instructions are given in this link for using this LCD.
  • Next thing we need to do is to design a programming codefor this project.
  • I have designed the code in MikroC Pro for PIC compiler so copy the below code and paste it in your project of MikroC Pro for PIC and compile to get the hex file:

  • This code is used for design the code for this Password Protection using PIC Microcontroller project.
  • Now after getting the hex file from this code, upload it in your simulation and if everything goes fine then you will get results as shown in below figure.
  • The first screen will be look like something as shown below:

Password protection using PIC Microcontroller, password protection, password protection system, keypad password protection

  • So, its saying Welcome to Password Lock and the the link of our blog.
  • After that it will ask for 6 digit password, as shown in below figure:

Password protection using PIC Microcontroller, password protection, password protection system, keypad password protection

  • Now the default password for this project is 123123, so if you have given the correct password then the motor will start moving but if you given the wrong password then it wont move and will ask for password again.
  • So, let’s give it a wrong password at first:

Password protection using PIC Microcontroller, password protection, password protection system, keypad password protection

  • Now you can see in the above figure that when I have given the wrong password then it says Incorrect Password and Try again.
  • The motor will also remain stationary.
  • Now I am gonna give it a correct password and we will see the motor will start moving as shown in below figure:

Password protection using PIC Microcontroller, password protection, password protection system, keypad password protection

  • Now when I have given the correct password, the motor started moving and the LCD says, press * to OFF and Lock again.
  • So, now when you press * then the motor will stop and it will again ask you to enter 6 digit password.
  • I have design this below video which will give you a better idea of working of this project:


So, that’s all for today, I hope you have understood all about Password Protection using PIC Microcontroller. Will meet you guys in the next tutorial, till then take care and have fun !!! 🙂

3 Comments

  1. This is a very nice projet. my qustion is 1. how can i change the defualt code of the project. 2. how can two or more motors control using the same project. kindly help. I am new in microcontoller programming.

      • Hello. Thank you for sharing your knowledge. I have a project and I really would like to try this. But I am required to use the PIC16F1829 and use assembly or C language. Do you think it would work? Can you give me some tips on how to do it? I am an electrical engineer junior student.

Leave a Reply

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

Post comment