You Are Here: Home » AVR ATmega Projects » LED Projects » 4X4 Keypad Interfacing with ATmega32 and LED Display

4X4 Keypad Interfacing with ATmega32 and LED Display




Keypads are parts of HMI or Human Machine Interface and play really important role in a small embedded system where human interaction or human input is needed. Matrix keypads are well known for their simple architecture and ease of interfacing.4X4 Keypad Interfacing with ATmega32 and LED Display

In this project, we will learn How to interface a 4X4 keypad with AVR ATmega32 microcontroller. Here, we will display the value of the pressed key in a 1X8 LED array. See the below table to know the value assigned to each key of the 4X4 keypad. For to display the value of the pressed key, the microcontroller should know if any key is pressed or not and if pressed then which key is pressed. To know all this, the microcontroller scans each row or column of the 4X4 keypad one by one continuously (scanning is done by the read_keypad function). When any key of 4X4 keypad is pressed, the read_keypad function returns the value of the pressed key and the microcontroller displays it in the 1X8 LED array. When none of the key is pressed the read_keypad function returns 0XFF and the 1X8 LED array displays the value of the last pressed key. Now, press different keys of the 4×4 keypad and see the output in the 1X8 LED array.

Key PressedKey Value
11
22
33
44
55
66
77
88
99
00
*10
#11
A12
B13
C14
D15

 

Softwares Required

For more detail: 4X4 Keypad Interfacing with ATmega32 and LED Display

Leave a Comment

You must be logged in to post a comment.

Read previous post:
4X4 Keypad based Password with ATmega16 and LED Display
4X4 Keypad based Password with ATmega16 and LED Display

Security is a prime concern in our day-today life. Everyone wants to be as much secured as possible. Keypad based...

Close
Scroll to top