Skip to content
  • Oasis Technological Solutions LLC
  • Oasis Technological Solutions LLC
Oasis Tech OmanOasis Tech Oman
  • Home
  • Shop
    • 3D Printing
    • Arts
    • Basic Components
    • Books & Educators
    • Cables & Wires
    • Development Boards & Controllers
    • Drones
    • Integrated Circuits (ICs) & Modules
    • Kits
    • Laboratory Tools
    • LCDs & Displays
    • Machines & Equipments
    • Mechanical Accessories
    • Miscellaneous
    • Motors, Drivers & Relays
    • Power
    • Raw Materials
    • Robotics
    • Sensors
    • Tools
    • Wireless
    • Workshops
  • About us
  • E-Books
  • Privacy Policy
  • Contact Us
  • Login / Register
  • 0.000ر.ع. 0
    • No products in the basket.

      Return to shop

  • 0
    Basket

    No products in the basket.

    Return to shop

Add to Wishlist
Home / Basic Components / Buttons & Switches

4×4 Matrix Keypad (Large Buttons)

1.800ر.ع.

Out of stock

Add to Wishlist
SKU: COM-00096 Categories: Basic Components, Buttons & Switches
Product categories
  • 3D Printing
  • Arts
  • Basic Components
    • Audio
    • Battery Holders
    • Breadboard & PCB
    • Buttons & Switches
    • Capacitors & Inductors
    • Connectors & Sockets
    • Crystal Oscillators
    • Light Emitting Diodes (LEDs)
    • Resistors
  • Books & Educators
  • Cables & Wires
  • Development Boards & Controllers
    • Arduino
    • Microbit
    • Microcontrollers
    • Programmers
    • Raspberry Pi
    • Shields
    • STM32
  • Drones
  • Gaming
  • Integrated Circuits (ICs) & Modules
    • ICs
    • Modules
  • Kits
  • Laboratory Tools
  • LCDs & Displays
  • Machines & Equipments
  • Mechanical Accessories
  • Miscellaneous
  • Motors, Drivers & Relays
    • Drivers & Relays
    • Motors & Valves
  • Power
  • Raw Materials
  • Robotics
  • Sensors
  • Tools
  • Wireless
  • Workshops
  • Description
  • Reviews (0)
  • Documents

The sample code of this button module is in the folder “4*4 button experiment”. Firstly, you need to unzip class library file “Keypad.zip” and place it in subfolder “libraries” of folder “Arduino” .

Codes are as below:

#include

const byte ROWS = 4; // define row 4

const byte COLS = 4; // define column 4

char keys[ROWS][COLS] = {

{‘1′,’2′,’3′,’A’},

{‘4′,’5′,’6′,’B’},

{‘7′,’8′,’9′,’C’},

{‘*’,’0′,’#’,’D’}

};

// connect row ports of the button to corresponding IO ports on the board

byte rowPins[ROWS] = {2,3,4,5};

// connect column ports of the button to corresponding IO ports on the board

byte colPins[COLS] = {6,7,8,9};

// call class library performance function of Keypad

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

void setup(){

Serial.begin(9600);

}

void loop(){

char key = keypad.getKey();

if (key != NO_KEY){

Serial.println(key);

}

}

 

Reviews

There are no reviews yet.

Be the first to review “4×4 Matrix Keypad (Large Buttons)” Cancel reply

You must be logged in to post a review.

Related products

Sale!
Giant BreadBoard
Add to Wishlist
Quick View
Out of stock

Basic Components

Giant BreadBoard

10.000ر.ع. Original price was: 10.000ر.ع..8.000ر.ع.Current price is: 8.000ر.ع..
Read more
Single Female/Male Pin Header Case (2.54 - 40 Pins)
Add to Wishlist
Quick View

Basic Components

Single Female/Male Pin Header Case (2.54 – 40 Pins)

0.200ر.ع.
Add to basket
Sale!
3mm/5mm LED light assorted kit
Add to Wishlist
Quick View

Basic Components

3mm/5mm LED light assorted kit

3.500ر.ع. Original price was: 3.500ر.ع..2.500ر.ع.Current price is: 2.500ر.ع..
Add to basket
Square Push Buttons with Colored Cap (1 x piece)
Add to Wishlist
Quick View

Basic Components

Square Push Buttons with Colored Cap (1 x piece)

0.150ر.ع.
Add to basket
Single Female/Male Pin Header (40 Pins- Tin PCB Panel)
Add to Wishlist
Quick View

Basic Components

Single Female/Male Pin Header (40 Pins- Tin PCB Panel)

0.250ر.ع.
Add to basket
Thin Speaker - 0.5W
Add to Wishlist
Quick View
Out of stock

Audio

Thin Speaker – 0.5W

0.600ر.ع.
Read more
Rocker switch (AC 250V 3A)
Add to Wishlist
Quick View

Basic Components

Rocker switch (AC 250V 3A)

0.300ر.ع.
Add to basket
SPDT Slide Switch (2xpc)
Add to Wishlist
Quick View

Basic Components

SPDT Slide Switch (2xpc)

0.150ر.ع.
Add to basket
Copyright 2025 © Oasis Tech Oman
  • Home
  • Shop
    • 3D Printing
    • Arts
    • Basic Components
    • Books & Educators
    • Cables & Wires
    • Development Boards & Controllers
    • Drones
    • Integrated Circuits (ICs) & Modules
    • Kits
    • Laboratory Tools
    • LCDs & Displays
    • Machines & Equipments
    • Mechanical Accessories
    • Miscellaneous
    • Motors, Drivers & Relays
    • Power
    • Raw Materials
    • Robotics
    • Sensors
    • Tools
    • Wireless
    • Workshops
  • About us
  • E-Books
  • Privacy Policy
  • Contact Us
  • Login

Login

Lost your password?

Register

Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.