Keypad
In this project, you'll learn how to connect and use a 4x3 keypad.
Parts needed:
| ||||||||||||||||||||||||||
The 4x3 keypad is simply a group of 12 switches configured as 4 rows and 3 columns.
The internal connections of these 12 switches is shown on the right.
There are seven (7) connections, starting with pin 1 on the left side. | ||||||||||||||||||||||||||
1 | Making the connections
The 4x3 keypad requires seven (7) connections. Make the following 7 connections.
| |||||||||||||||||||||||||
2 | Download the Keypad library. | |||||||||||||||||||||||||
3 | Install the Keypad library by selecting Sketch from the Arduino IDE menu
Click the Open button. (Refer to this document for more information on how to install a library if you run into problems.) | |||||||||||||||||||||||||
4 | Create a new program by selecting File from the menu
| |||||||||||||||||||||||||
5 | Upload and run the program. | |||||||||||||||||||||||||
6 | Open up the Serial Monitor. | |||||||||||||||||||||||||
7 | Press any key on the keypad and you should see the key that you pressed printed on the monitor. | |||||||||||||||||||||||||