Your shopping cart is empty!
Interface 4x4 Keypad With Raspberry Pi
- Idris Zainal Abidin
- 18 Sep 2019
- 1342
Introduction
If you're developing project that require control panel, keypad can be one of the important component. So, in this tutorial, I will share on how to interface keypad with Raspberry Pi.
Video
This video will show you how to interface 4x4 keypad with Raspberry Pi and create a simple password application.
Hardware Preparation
This is the list of items used in the video
- Raspberry Pi 4 Model B
- Maker pHAT
- 2x16 LCD with I2C Module
- Right Angle Pin Header (Male) 1x40 Ways
- 16GB Micro SD Card
- Keypad 4x4
- 40 Ways Female to Female Jumper Wire
Wiring connection table.
Raspberry Pi/Maker pHAT | Keypad 4x4 | I2C LCD |
GND | GND | |
5V | VCC | |
SDA | SDA | |
SCL | SCL | |
GPIO17 | 1 (most left) | |
GPIO18 | 2 | |
GPIO27 | 3 | |
GPIO22 | 4 | |
GPIO25 | 5 | |
GPIO12 | 6 | |
GPIO13 | 7 | |
GPIO19 | 8 (most right) |
Sample Program
This is sample program to interface keypad with Raspberry Pi. It has 2 files, (1) Main file and (2) Library for I2C LCD.
Thank You
References:
Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.