mLink 4x4 Matrix Keypad

HCMODU0188

The mLink 4x4 matrix keypad is a panel mountable serial (I2C/IIC) 16 key tactile keypad. On the rear of the keypad is mounted a mLink module which continuously scans the keypad (with automatic debouncing) for any key presses. If a key is pressed the module stores the key as an 8 bit ASCII value which can then be read out of its serial interface. It is compatible with other mLink or standard I2C modules allowing you to daisy-chain several different types of modules together using only the two I2C pins of your microcontroller.

£6.66
In-Stock!

The mLink 4x4 matrix keypad is a panel mountable serial (I2C/IIC) 16 key tactile keypad. On the rear of the keypad is mounted a mLink module which continuously scans the keypad (with automatic debouncing) for any key presses. If a key is pressed the module stores the key as an 8 bit ASCII value which can then be read out of its serial interface. It is compatible with other mLink or standard I2C modules allowing you to daisy-chain several different types of modules together using only the two I2C pins of your microcontroller.

For Arduino users you can use the mLink library (see below) to control any type of mLink module. Only one single instance of the library is needed to control multiple types of mLink modules resulting in very little resources overhead and therefore making it great for Arduinos with small amounts of memory and pin counts.



Module specifications:

Module code:  HCMODU0188
Supply voltage (VDD):  3.3V to 5.5V
Operating range (recommended):        -5 to 105oC
Keypad type: 16 key matrix tactile keypad in 4x4 arrangement
Current consumption (idle): 4.5mA
Interfaces: I2C, Keypad
I2C Interface speed:  400kbits/s (fast mode)
I2C default address (HEX):  0h55
Maximum number of modules:  5 with pullups fitted, 112 with pullups removed*
Module dimensions (inc headers):   46mm x 14mm x 11mm
Keypad dimensions (inc module):    68.5mm x 65mm x 17mm

*Note the maximum number of connected modules will depend on cable lengths and power requirements of each module. Do not exceed 5 mLink modules connected in series with all pullups fitted.






Arduino Connection Example:

Image


Image


Because the modules use an I2C interface this also means multiple modules can be controlled from a single Arduino I2C interface simply by daisy-chaining them together. Note to control multiple mLink modules of the same type requires changing the default I2C address of the additional modules. See mLink Library Quick Start Guide for how to do this.


Image




  1. #include "mLink.h"                                    // Include the library
  2.  
  3. mLink mLink;                                          // Create an instance of the library
  4.  
  5. #define I2C_ADD 0x55                                  // Default I2C address
  6.  
  7. void setup()
  8. {
  9.   Serial.begin(9600);
  10.  
  11.   mLink.init();                                       // Initialise the library
  12. }
  13.  
  14.  
  15. void loop()
  16. {  
  17.   char key = mLink.read(I2C_ADD, KEYPAD_4X4_KEY);     // Read the key status
  18.  
  19.   if(key)                                             // Has a key been pressed ?
  20.   {
  21.     Serial.print("Key: ");                            // If so then print out the key
  22.     Serial.println(key);
  23.   }
  24. }

Library, guides, register map, etc available on our support forum here.

HCMODU0188
5 Items

Specific References