M5Stack I/O Hub 1 to 6 Expansion Board Grove I/O Interface for Arduino Blockly Development IoT MEGA328 Module

M5Stack I/O Hub 1 to 6 Expansion Board Grove I/O Interface for Arduino Blockly Development IoT MEGA328 Module
M5Stack I/O Hub 1 to 6 Expansion Board Grove I/O Interface for Arduino Blockly Development IoT MEGA328 Module M5Stack I/O Hub 1 to 6 Expansion Board Grove I/O Interface for Arduino Blockly Development IoT MEGA328 Module M5Stack I/O Hub 1 to 6 Expansion Board Grove I/O Interface for Arduino Blockly Development IoT MEGA328 Module



Description:
 
PbHUB, is a expander for singel-bus GROVE PORTB(Black port on M5GO Base). 1-to-6. PortB can be used as GPIO and analog in two data lines connected to GPIO36 and GPIO26 on ESP32. Same as PaHUB, it provides a solution for mutiple device control by PORTB. With PbHUB each of the IO can be configurated to input, output and analog in as you like. Unfortunatly this Unit is unnested. It is build with a MEGA328, with a simple driver firmware inside.
 
Notice:
 
1: Please pay attention to the channel order while programing 
2: Not all M5Units with PortB(Black) is able to extended by PbHUB. PbHUB can only apply to basic single-bus communication like digital read and write, analog read and write, which is implemented by I2C protocol(MEGA328 inside).
The mechanism of PbHUB as an extension of PortB which inplement the single-bus data transfer, is using the resource on Mega328 include GPIO, AD, DA ports, to inplement the functionality of digital read and write , analog read and write. So there must be exceptions in which case a PbHUB is not a option. For example, PortB M5Unit like WEIGH (HX711 inside), whose communication protocol is applied more than just anglog read, instead with a timing sequence. In that case PbHUB can’t be helpful dirving those device or sensor. 
 
Product Features:

  • Single-Bus GROVE PORTB Expander
  • Two Le go-compatible holes
  • 1-To-6

Package Included:

  • 1x PbHUB Unit
  • 1x Grove Cable

 
Code:
 
Driver firmware - PbHUB
Test code - PbHUB
protovol type - I2C
address - 0x61
Set oneLED Color* : LED address(2bytes) + RGB value(3bytes)
Set moreLED Color* : LED start address(2bytes) + LED end address(2bytes) + RGB value(3bytes)
tate IO0 Digital Write IO1 Digital Write IO0 Analog Write IO1 Analog Write IO0 Digital Read IO1 Digital Read IO0 Analog Read reserve Set Neopixle Num Set oneLED Color* Set moreLED Color* Set Brightness
r/w w w w w r r r r w w w w
data length (Byte) 1 1 1 1 1 1 2 / 2 5 7 1
ch0 cmd 40 41 42 43 44 45 46 47 48 49 4A 4B
ch1 cmd 50 51 52 53 54 55 56 57 58 59 5A 5B
ch2 cmd 60 61 62 63 64 65 46 67 68 69 6A 6B
ch3 cmd 70 71 72 73 74 75 76 77 78 79 7A 7B
ch4 cmd 80 81 82 83 84 85 86 87 88 89 8A 8B
ch5 cmd A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB













M5Stack I/O Hub 1 to 6 Expansion Board Grove I/O Interface for Arduino Blockly Development IoT MEGA328 Module See detail