Interface 4x4 Keypad With Raspberry Pi

Interface 4x4 Keypad With Raspberry Pi

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

Wiring connection table.

Raspberry Pi/Maker pHATKeypad 4x4I2C LCD
GND GND
5V VCC
SDA SDA
SCL SCL
GPIO171 (most left) 
GPIO182 
GPIO273 
GPIO224 
GPIO255 
GPIO126 
GPIO137 
GPIO198 (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:

  1. Raspberry Pi gpiozero library
  2. How to Display on I2C LCD Using Raspberry Pi

Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.

Related Products