This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我想在1块 Arduino 板上使用4个 TCA9548A 来控制32个 IIC 霍尔传感器。
有可能吗?
目前、我们有以下问题:
想要与第一个霍尔传感器通信、但要与未知的霍尔传感器通信
连接 了32个霍尔传感器、但仅其中一些传感器进行了通信
(如果 Arduino 板复位、可通信的 IIC 霍尔传感器数量会增加)
您好!
为了更好地了解您的设置、您有4个 TCA9548A 开关全部连接到相同的总线上并联正确。
[引用 userid="493335" URL"~/support/interface-group/interface/f/interface-forum/1020927/tca9548a-can-be-control-32ea-i2c-of-tca9548a ]1. 希望与第一个霍尔传感器通信、但希望与未知的霍尔传感器进行通信[/quot]您使用地址引脚的方式是正确的。 只需确保在 I2C 总线上发送正确的地址。
此器件的地址为1110 (A2)(A1)(A0)。
使用此器件、您可以同时启用多个通道。 我建议一次只启用一个通道、以确保您与正确的霍尔传感器通信。
[引用 userid="493335" URL"~/support/interface-group/interface/f/interface-forum/1020927/tca9548a-can-be-control-32ea-i2c-of-tca9548a ]2. 连接了32个霍尔传感器、但其中只有部分传感器进行了通信[/QUERP]您要发送哪些字节的数据来启用每个通道? 从您发送的地址和写入命令开始。 当您说 Arduino 板复位时、您是否要重置 TCA 设备或 Arduino MCU 本身?
当特定传感器未通信时、您是否已在示波器上验证是否将正确的数据发送到器件。?
最棒的
Chris