Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

4X4 Keypad based Password with ATmega16 and LED Display

1853
Mark as Favourite

Security is a prime concern in our day-today life. Everyone wants to be as much secured as possible. Keypad based password is one of the many method and the most common and easy one to provide security to any system.

In this project, we will learn How to design a password protected system using a 4X4 keypad with AVR ATmega16 microcontroller. Here, the user will enter a 4 digit numeric password to gain access of the system and after gaining access of the system, the user presses different keys of the 4X4 keypad and the system displays the value of the pressed key in a 1X8 LED array. The user enters the 4 digit numeric password by pressing different keys of the 4X4 keypad one by one. For each key pressed all the 8 LEDs of the 1X8 LED array will be ON for 500ms to indicate that a digit of the password has been entered. After entering 4 digits of the password, the microcontroller compares the entered password with the set password (1234 in our case) and displays the result of the comparison in the 1X8 LED array as upper 4 LEDs of the 1X8 LED array are ON for correct password or lower 4 LEDs of the 1X8 LED array are ON for wrong password. Once the correct password is entered, the user can press different keys of the 4X4 keypad and the 1X8 LED array displays the value of the pressed keys. Try entering different combinations of passwords and see the output.

Key Pressed

Key Value

1

1

2

2

3

3

4

4

5

5

6

6

7

7

8

8

9

9

0

0

*

10

#

11

A

12

B

13

C

14

D

15

Softwares Required

Hardwares Required

Name / Unit Price Quantity Total Price
AVR Trainer Board-100 with ATmega16
Rs. 700.00
1pc
Rs.700.00
AVR USB Programmer
Rs. 350.00
1pc
Rs.350.00
12V, 1A DC SMPS Adaptor
Rs. 130.00
1pc
Rs.130.00
4X4 Keypad
Rs. 120.00
1pc
Rs.120.00
10 to 10 FRC Female to Female Connector
Rs. 15.00
1pc
Rs.15.00
TOTAL Rs.1315.00

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for 4X4 Keypad based Password with ATmega16 and LED Display is as follows:

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 14 )

  • Connect PortB header with LED header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 14 )

  • Connect the 4X4 Keypad header of 4X4 Keypad with PortC header of AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 3 ( 0f 14 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 4 ( 0f 14 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 5 ( 0f 14 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 6 ( 0f 14 )

  • Download the 4X4 Keypad based Password with ATmega16 and LED Display Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 7 ( 0f 14 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 8 ( 0f 14 )

  • Connect PortB header with LED header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 9 ( 0f 14 )

  • Connect the 4X4 Keypad header of 4X4 Keypad with PortC header of AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 10 ( 0f 14 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 11 ( 0f 14 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 12 ( 0f 14 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 13 ( 0f 14 )

  • Download the 4X4 Keypad based Password with ATmega32 and LED Display Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 14 ( 0f 14 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 14 )

  • Connect PortB header with LED header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 14 )

  • Connect the 4X4 Keypad header of 4X4 Keypad with PortC header of AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 3 ( 0f 14 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 4 ( 0f 14 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 5 ( 0f 14 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 6 ( 0f 14 )

  • Download the 4X4 Keypad based Password with ATmega16 and LED Display Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 7 ( 0f 14 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 8 ( 0f 14 )

  • Connect PortB header with LED header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 9 ( 0f 14 )

  • Connect the 4X4 Keypad header of 4X4 Keypad with PortC header of AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 10 ( 0f 14 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 11 ( 0f 14 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 12 ( 0f 14 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 13 ( 0f 14 )

  • Download the 4X4 Keypad based Password with ATmega32 and LED Display Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 14 ( 0f 14 )

Post a Comment