mLink 6 Button Pad (HCMODU0193)

mLink serial I2C modules
Post Reply
Site Admin
Posts: 821
Joined: Sun Aug 05, 2012 4:02 pm

mLink 6 Button Pad (HCMODU0193)

Post by admin » Wed Aug 17, 2022 9:04 am



The mLink button pad is a 6 button keypad with a serial (I2C) interface. The buttons are arranged in a d-pad format (up, down, left, right, plus select and back buttons). They have a tactile feedback when pressed and come with large (11mm) coloured circular keycaps that also make the module ideal for panel mounting. The module can also store up to 16 key presses in its internal buffer meaning that your software does not have to constantly scan the keypad to capture keypresses.

Because it uses a standard I2C interface it is compatible with most microcontrollers including Arduino. It is addressable allowing for multiple modules to be connected together (address can be changed in software), and only requires 2 data pins for communication.

Being an mLink module 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. The library has a very small memory footprint and only one single instance is needed to control multiple types of mLink modules. This makes it great for Arduinos with small amounts of memory and pin counts.

Module specifications:

Module code: 					HCMODU0193
Supply voltage (VDD): 			3.3V to 5.5V
Operating range (recommended):	-5 to 105oC
Keypad type:					6 button tactile keypad in dpad + back arrangement
Current consumption (idle):		4.5mA
Interfaces:					I2C, Keypad
I2C Interface speed: 				400kbits/s (fast mode)
I2C default address (HEX): 		0h59
Maximum number of modules: 		5 with pullups fitted, 112 with pullups removed*
Module dimensions (inc headers):	59mm x 44mm x 16mm

*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:



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.


Arduino example:

  1. #include "mLink.h"                                    // Include the library
  3. mLink mLink;                                          // Create an instance of the library
  5. #define I2C_ADD BPAD_I2C_ADD                          // Default I2C address
  7. void setup()
  8. {
  9.   Serial.begin(9600);
  11.   mLink.init();                                       // Initialise the library
  12. }
  15. void loop()
  16. {  
  17.   byte empty = mLink.bPad_Empty(I2C_ADD);             // Check to see if there is anything in the keypad buffer
  19.   if(!empty)                                          
  20.   {
  21.     byte key =, BPAD_BUFFER);      // If so then read a key from the buffer..
  23.     Serial.print("Key: ");                            // ..and print it                          
  24.     Serial.println(key);
  25.   }
  27.   delay(100);
  28. }


mLink Arduino library

mLink Library Quick Start Guide For Arduino Users

mLink Library Reference Guide For The Character LCD Sensor Modules

mLink Specifications and Register Map For The Character LCD Modules

Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do no provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.

Post Reply

Return to “mLink”