Hex Keyboard Interfacing with evive

interfacinng keypad with evive
About This Tutorial
This tutorial describes how to interface 4X3 Hex keypad with evive
Tutorial Info

Components Required

ImageComponentQuantityAvailable in Kit
USB A-B Cable1


In many projects, we need some numerical input which is not always available by Computer Serial so a 3X4 keypad can be used as an alternative

Primarily, it contains some rows and columns and where they intersect there is a push button which connects row and column

Flowchart for reading data


This hard work can be reduced by installing Keypad.h library which can be downloaded by clicking here.


  • Arduino IDE
  • Keypad Library

Hardware connections:


#include <Keypad.h>  // include keypad
const byte ROWS = 4; //four rows
const byte COLS = 3;//three columns

char keys[ROWS][COLS] = // this shows the keypad elements in rows and columns
 {'1', '2', '3'},
 {'4', '5', '6'},
 {'7', '8', '9'},
 {'*', '0', '#'}

byte rowPins[ROWS] = {2, 3, 4, 5}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {6, 7, 8}; //connect to the column pinouts of the keypad

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); // makes a keypad with character map in with pins atteched to row keys and column keys with number of rows and columns
void setup() {
 // put your setup code here, to run once:
 Serial.begin(9600); // start Serial communication

void loop() {
 char keypressed = keypad.getKey(); // checks if any key is pressed or not?

if (keypressed) //if key is pressed
 Serial.println(keypressed); // print key



Related Projects
Getting Started with evive
Getting Started with evive
This tutorial explains us what is evive, how to install the battery in it, how to charge it and the various input-output modules available in it.
evive – Plug and Play: Part 1
In this tutorial, we are going to give you a hands-on experience of evive’s plug and play interface through activities for controlling a DC motor, a servo motor, understanding the inbuilt touch sensors of evive.
All articles loaded
No more articles to load
Share this Tutorial
Share on facebook
Share on twitter
Share on google
Share on pinterest
Share on reddit
Share on print
Featured Projects
All articles loaded
No more articles to load

Leave a Reply

Close Menu


Extra 10% OFF on ALL products. Coupon – STEMLOVEREXTRA10OFF