diff --git a/docs/assets/img/product_pics/unit/pahub/pahub_p1.jpg b/docs/assets/img/product_pics/unit/pahub/pahub_p1.jpg new file mode 100644 index 00000000..30a2d594 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pahub/pahub_p1.jpg differ diff --git a/docs/assets/img/product_pics/unit/pahub/pahub_p2.jpg b/docs/assets/img/product_pics/unit/pahub/pahub_p2.jpg new file mode 100644 index 00000000..f8d9a3e5 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pahub/pahub_p2.jpg differ diff --git a/docs/assets/img/product_pics/unit/pahub/pahub_p3.jpg b/docs/assets/img/product_pics/unit/pahub/pahub_p3.jpg new file mode 100644 index 00000000..a36052d4 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pahub/pahub_p3.jpg differ diff --git a/docs/assets/img/product_pics/unit/pahub/sch_pahub.png b/docs/assets/img/product_pics/unit/pahub/sch_pahub.png new file mode 100644 index 00000000..1d75e769 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pahub/sch_pahub.png differ diff --git a/docs/assets/img/product_pics/unit/pbhub/pbhub_p1.jpg b/docs/assets/img/product_pics/unit/pbhub/pbhub_p1.jpg new file mode 100644 index 00000000..13f0c3bb Binary files /dev/null and b/docs/assets/img/product_pics/unit/pbhub/pbhub_p1.jpg differ diff --git a/docs/assets/img/product_pics/unit/pbhub/pbhub_p2.png b/docs/assets/img/product_pics/unit/pbhub/pbhub_p2.png new file mode 100644 index 00000000..8b2c835b Binary files /dev/null and b/docs/assets/img/product_pics/unit/pbhub/pbhub_p2.png differ diff --git a/docs/assets/img/product_pics/unit/pbhub/pbhub_p3.jpg b/docs/assets/img/product_pics/unit/pbhub/pbhub_p3.jpg new file mode 100644 index 00000000..6deb7e34 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pbhub/pbhub_p3.jpg differ diff --git a/docs/assets/img/product_pics/unit/pbhub/pbhub_sch.jpg b/docs/assets/img/product_pics/unit/pbhub/pbhub_sch.jpg new file mode 100644 index 00000000..e32958c0 Binary files /dev/null and b/docs/assets/img/product_pics/unit/pbhub/pbhub_sch.jpg differ diff --git a/docs/en/unit/pahub.md b/docs/en/unit/pahub.md new file mode 100644 index 00000000..821608d5 --- /dev/null +++ b/docs/en/unit/pahub.md @@ -0,0 +1,54 @@ +# Unit PaHUB {docsify-ignore-all} + + + + + +:memo:**[Description](#Description)**      :octocat:**[Example](#Example)**      ðŸ›’**[Purchase](https://www.aliexpress.com/store/productM5Stack-Official-NeoPixel-RGB-LEDs-Cable-SK6812-with-GROVE-Port-2m-1m-50cm-20cm-10cm/3226069_32950831315.html?spm=a2g1x.12024536.productList_5885013.pic_0)**      :clapper:**[Related Video](#Related-Video)** + +## Description + +**PaHUB**, is a expander for I2C GROVE PORTA(red port on M5Core). 1-to-6. If you want connect mutiple I2C slave devices and some of them may sharing the same address, this unit can resolve I2C address conflicts. + +At the Unit PaHUB's heart is an **TCA9548A** produced by TI. The TCA9548A device has eight bidirectional translating switches that can be controlled through the I2C bus. The SCL/SDA upstream pair fans out to downstream pairs, or channels. Any individual SCn/SDn channel or combination of channels can beselected, determined by the contents of the +programmable control register. + +Technically this Unit allows mutiple levels of nesting, for example you can wire PaHUBs to the root PaHUB to get more seats for your I2C slave devices, if you have 7 of them you can have up to 36 I2C GROVE ports, which makes it easier to get your project more organized. + +The I2C address of this unit is 0x77 (changable by resistors). + +*Notice: Please pay attention to the channel order while programing* + + + +## Product Features + +- I2C GROVE PORTA Expander +- Two Lego-compatible holes +- Nested allowed +- 1-To-6 + +## Kit includes + +- 1x PaHUB Unit +- 1x Grove Cable + + +## DOCUMENTS + + +- Datasheet - **[TCA9548A](http://www.ti.com/lit/ds/symlink/tca9548a.pdf)** + + + +## Schematic + + + +## Driver Protocol + +- Driver firmware - + +- Test code - +- protovol type - I2C +- address - 0x77 \ No newline at end of file diff --git a/docs/en/unit/pbhub.md b/docs/en/unit/pbhub.md new file mode 100644 index 00000000..1a33caa4 --- /dev/null +++ b/docs/en/unit/pbhub.md @@ -0,0 +1,74 @@ +# Unit PbHUB {docsify-ignore-all} + + + +*** + +:memo:**[Description](#Description)**      :bulb:**[Assembly](#Assembly)**      ðŸ›’**[Purchase](https://www.aliexpress.com/store/product/M5Stack-Official-Rubber-Band-Powered-Butterfly-Launcher-with-SERVO-control-and-GROVE-Cable-Adapter-Children-s/3226069_32956965036.html?spm=2114.12010615.8148356.2.486b2682Z5xogF)**      :clapper:**[Related Video](#Related-Video)** + +## 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. + + +The I2C address of this unit is 0x40(Changable by resistors). + +*Notice: Please pay attention to the channel order while programing* + + + +### Product Features + +- Single-Bus GROVE PORTB Expander +- Two Lego-compatible holes +- 1-To-6 + +### Kit includes + +- 1x PbHUB Unit +- 1x Grove Cable + + +## Schematic + + + +## Driver Protocol + +- Driver firmware - **[PbHUB](https://github.com/m5stack/PbHUB/tree/master/PortB_HUB/Firmware)** + +- Test code - **[PbHUB](https://github.com/m5stack/PbHUB/tree/master/PortB_HUB)** +- 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) +- + + + + + + + + + + + + + + + + + + + + + + + + + + + +
stateIO0 Digital WriteIO1 Digital WriteIO0 Analog WriteIO1 Analog WriteIO0 Digital ReadIO1 Digital ReadIO0 Analog ReadreserveSet Neopixle NumSet oneLED Color*Set moreLED Color*Set Brightness
r/wwwwwrrrrwwww
data length (Byte)1111112/2571
ch0 cmd404142434445464748494A4B
ch1 cmd505152535455565758595A5B
ch2 cmd606162636465466768696A6B
ch3 cmd707172737475767778797A7B
ch4 cmd808182838485868788898A8B
ch5 cmdA0A1A2A3A4A5A6A7A8A9AAAB
\ No newline at end of file