PaHUB

SKU:U040

描述

PaHUB, 是一款 I2C 设备分线器, 能够将单路 I2C HY2.0-4P 接口拓展至六路, 并且允许挂载相同I2C地址的从设备(通过控制轮询不同的通道实现同地址设备共存)。内嵌TCA9548A- I2C多路通道开关IC, 支持6组I2C设备拓展。

该产品已经停产。 新款PaHub2查看这里。。

产品特性

  • I2C HY2.0-4P PORTA 拓展
  • 2x LEGO 兼容孔
  • 允许多个嵌套
  • 1-6 拓展

包含

  • 1x PaHUB Unit
  • 1x HY2.0-4P线缆

应用

  • I2C扩展

规格参数

规格 参数
通讯协议 I2C:0x70(可通过电阻A0,A1,A2修改)
净重 7g
毛重 19g
产品尺寸 48*24*12mm
包装尺寸 67*53*12mm

注意:工作时,分线器通过控制轮询不同的通道实现同地址设备共存,编程时请注意通道顺序

原理图

参考原理图及TCA9548A数据手册可知,该Unit能够通过控制A0~A2引脚的电平组合,修改设备的I2C地址。(默认地址为0x70)

在Unit的PCB板上预留了三个贴片电阻焊接位,分别为A0-A2,如下图所示。

焊接0欧电阻后,相应的引脚将由低电平变为高电平,引脚电平组合与其对应的I2C地址如下表所示。

相关链接

EasyLoader

点击下载EasyLoader

1.EasyLoader是一个简洁快速的程序烧录器,每一个产品页面里的EasyLoader都提供了一个与产品相关的案例程序,通过简单步骤将其烧录至主控,能够进行一系列的功能验证.

2.下载软件后,双击运行应用程序,将M5设备通过数据线连接至电脑,选择端口参数,点击 "Burn" 即可开始烧录.(为M5StickC烧录时,请将波特率设置在750000或115200)

项目案例

Building a smart planting system using M5Stack to monitor the lights, humidity, temperature, watering your plant automatically.
We aim to build a robot that is effective in sanitizing surfaces without putting cleaners in harm's way.
We have devised with an innovation that dispenses hand sanitiser, measures the temperature of user, shows the count of people in vicinity.
Hand Hygienics aims to reduce spread of Covid-19 through contact.
An automatic system to perform the tasks of Safe Entry. It consist an adjustable Thermometer, RFID / QR Code Check in and Counting.

案例程序

Arduino

UIFlow

功能说明

  • set pos state 设置指定端口I2C

  • set pos open 设置端口开启I2C

  • set port value 设置端口I2C

使用示例: