mLink 6 Button Pad (HCMODU0193)

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

mLink 6 Button Pad (HCMODU0193)

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

Image

*COMMIN SOON*



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:

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



Arduino example:

  1. #include "mLink.h"                                    // Include the library
  2.  
  3. mLink mLink;                                          // Create an instance of the library
  4.  
  5. #define I2C_ADD BPAD_I2C_ADD                          // 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.   byte empty = mLink.bPad_Empty(I2C_ADD);             // Check to see if there is anything in the keypad buffer
  18.  
  19.   if(!empty)                                          
  20.   {
  21.     byte key = mLink.read(I2C_ADD, BPAD_BUFFER);      // If so then read a key from the buffer..
  22.  
  23.     Serial.print("Key: ");                            // ..and print it                          
  24.     Serial.println(key);
  25.   }
  26.  
  27.   delay(100);
  28. }


Image

mLink Arduino library
viewtopic.php?f=58&t=3001


mLink Library Quick Start Guide For Arduino Users
https://hobbycomponents.com/downloads/mLink/


mLink Library Reference Guide For The Character LCD Sensor Modules
https://hobbycomponents.com/downloads/mLink/


mLink Specifications and Register Map For The Character LCD Modules
https://hobbycomponents.com/downloads/mLink/


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”