On the same I2C port, DFRobot Gravity: I2C Multiplexer solves the address conflict and enables the normal communication with multiple same-address I2C devices.
You just found the sensor you needed, and you want to wire up two or more to the I2C port of your mainboard, but later you realized that they have the fixed I2C address! That is, you can not use them on the same I2C port! Are you out of luck? Now don’t worry! DFRobot Gravity: I2C Multiplexer can easily solve the address conflict on the same I2C port.
This I2C multiplexer is easy to use, plug and plug and no need to weld. 1 multiplexer has 8 I2C ports, this means you can hook up 8 same-address devices at the same I2C port by 1 multiplexer. The default I2C address of the multiplexer is 0x70, and you can adjust from 0x70 to 0x77. In theory, you could hook up 8 multiplexers on address 0x70~0x77, to control 64 same-address devices. So powerful!
Specification
- Operating Voltage: 3.3~5.0V
- Connector Type: PH2.0-4P
- Interface Level: high 3.3V, low 0V
- Interface Protocol: I2C(IIC)
- I2C Clock Rate: 100K, 400K
- I2C Port Quantity: 8
- Default I2C Address: 0x70 (dial switches all to 0)
- I2C Address Range: 0x70~0x77
- Dimension: 32*32mm / 1.26*1.26in
Board Overview
Dial Switch Description:
As shown in the picture above, the dial switchs are all turned to the right(marked with '0') by default, at this time, A2,A1,A0 are all low level, so the default address of the multiplexer is 0x70. If the dial switchs are all turned to the left(marked with ‘1’), then A2,A1,A0 are all high level, and the address is 0x77. You can adjust the dial switchs as needed to set the address. You can set it from 0x70 to 0x77.
Tutorial
This tutorial uses two OLED displays as an example to demonstrate how to use this I2C multiplexer.
The OLED display used in this example has the fixed I2C address, so these two OLED displays cannot be directly hooked up to the same I2C port. However, through this I2C multiplexer's transfer, these two OLED displays can be normally used on the same I2C port at the same time.
Requirements
- Hardware
- DFRduino UNO R3 (or similar) x 1
- Gravity: I2C Multiplexer x 1
- Gravity I2C OLED-2864 Display (or similar) x2
- Gravity 4pin UART/I2c Cable (or several DuPont Cables) x3
- Software
- Arduino IDE (Version requirements: V1.0.x or V1.8.x), Click to Download Arduino IDE from Arduino®
- Library:DFRobot_I2C_Multiplexer Library
Gravity: Digital 1-to-8 I2C Multiplexer |
|