• Shown here with the Hobby Components Uno Plus - Available separately (HCARDU0100).
  • Shown here with the Hobby Components Uno Plus - Available separately (HCARDU0100).

mLink 12Bit I2C Digital Port Expander

£2.99
VAT included

The mLink port expander is a serial (I2C/IIC) digital I/O module. It allows you to add 12 digital input output pins per module to your existing microcontroller/Arduino using only its I2C 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.

Quantity

The mLink port expander is a serial (I2C/IIC) digital I/O module. It allows you to add 12 digital input output pins per module to your existing microcontroller/Arduino using only its I2C 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.

For Raspberry Pi users we have a Python module which can be installed via pip or downloaded and installed directly from our forum. Please see the mLink Python forum thread for requirements and download link here



Module specifications:

 

Module code: 					HCMODU0180
Supply Voltage (VDD): 			3V to 5.5V
Current consumption (no load):		4.5mA
Interfaces:					I2C & 12 x digital I/O pins
I2C Interface speed: 				400kbits/s (fast mode)
I2C default address (HEX): 		0h50
Maximum number of modules: 		5 with pullups fitted, 112 with pullups removed*
Module dimensions (inc headers):	43mm x 19mm x 11.5mm

Digital output max freq:			1.54KHz
Digital Input low level voltage: 		-0.3V to 0.3 x VDD 
Digital Input high level voltage: 	0.7 x VDD to VDD + 0.3V
Digital output pin current source:	 Max 10mA
Digital output pin current sink:		Pins 0 to 2 & 5 to 11 max 10mA 
Pins 3 & 4 max 4mA
Digital output pullup resistor: 		30K to 80K Ohms

*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 fitted to all modules.






Arduino Connection Example:


Image

Image

Arduino Digital Output (Blink) Example:

This sketch uses the mLink to 'blink' digital pin 0 on an mLink 12 pin digital port expander module (SKU: HCMODU0180).

To use this sketch connect an LED with a suitable current limiting resistor in series to pin D0 and GND. The LED should then flash slowly
 

  1. #include "mLink.h"      // Include the library
  2.  
  3. mLink mLink;            //Create an instance of the library
  4.  
  5. #define I2C_ADD 0x50    //Default I2C address
  6.  
  7. void setup()
  8. {
  9.   mLink.init();
  10.  
  11.   // Set pin D0 to an output
  12.   mLink.writeBit(I2C_ADD, DIO12_D0_OUTPUT);
  13. }
  14.  
  15.  
  16. void loop()
  17. {
  18.   mLink.writeBit(I2C_ADD, DIO12_D0, HIGH);    // Set pin D0 HIGH
  19.   delay(1000);                                // Wait for a second
  20.   mLink.writeBit(I2C_ADD, DIO12_D0, LOW);     // Set pin D0 LOW
  21.   delay(1000);                                // Wait for a second
  22. }

 

 

Image

For more information including documentation and the mLink library please visit this products forum page here:

https://forum.hobbycomponents.com/viewtopic.php?f=131&t=2998

 

 

HCMODU0180
19 Items

Specific References

16 other products in the category

DIY EDTracker Bundle

We've partnered up with the fabulous guys over at EDTracker to bring to you the EDTracker...

£26.99
  • Currently Out of Stock