I2C Mux 8


Connection · SKU TP-A03
Eight separate I2C channels – use many sensors that share the same address.
₹499
Works with TinkerPie V1 · same JST-PH cables as the board · Delivery across India: ₹100, 3–7 days · 7-day replacement for damaged or defective kits
About this kit
The I2C Mux 8 gives TinkerPie eight separate I2C channels, so several sensors that share the same address, for example four colour sensors or two Ultrasonic Bricks, can work on one robot. Each channel has its own pull-ups, and up to eight muxes can be used together.
Features
- TCA9548A 8-channel I2C switch
- 8 TP-BUS channel sockets, each with its own pull-ups
- Example: 4 colour sensors or 2 ultrasonic bricks on one robot
- Address 0x70-0x77 - up to 8 muxes
- Green power light
- BUS IN + BUS OUT
Specifications
| Size | 72 x 40 mm |
|---|---|
| Channels | 8 x JST-PH 4-pin |
| Voltage | 3.3 V |
| Interface | I2C 0x70-0x77 |
| Chip | TI TCA9548A |
How to use it with TinkerPie
- Connect the brick’s BUS IN to any TinkerPie SENSOR 1-4 port with a 4-pin JST-PH cable.
- More bricks? Plug the next one into BUS OUT (or use the I2C Hub).
- Install the TinkerPie and TinkerPieBricks Arduino libraries, open the sketch below, choose the board ESP32S3 Dev Module and upload.
Libraries: TinkerPie and TinkerPieBricks (Arduino IDE: Sketch → Include Library → Add .ZIP Library). Full guide: getting started with TinkerPie Bricks.
Quick start
Upload this, open the Serial Monitor at 115200 baud and watch the TinkerPie matrix.
Quick-start sketch (Arduino C++)
// I2C Mux 8 (TP-A03): quick start
// Reads the brick and shows the value on the TinkerPie matrix and in the Serial Monitor (115200 baud).
#include <TinkerPie.h>
#include <TinkerPieBricks.h>
using namespace tinkerpie;
tpb::Mux8 mux;
void setup() {
Serial.begin(115200);
tinkerpie::begin(); // also starts the SENSOR ports (I2C bus Wire1)
if (!mux.begin()) Serial.println("I2C Mux 8 not found at 0x70: check the cable to SENSOR 1-4");
}
void loop() {
for (int ch = 0; ch < 8; ch++) {
mux.select(ch);
Serial.printf("--- channel %d\n", ch);
tpb::scan();
}
mux.select(-1);
basic::pause(5000);
}
Project: Two ultrasonic eyes
Two Ultrasonic Bricks have the same address, so each goes on its own channel of the I2C Mux 8 (left on CH0, right on CH1). The robot turns away from the closer obstacle.
Two ultrasonic eyes (Arduino C++)
// Two ultrasonic eyes: I2C Mux 8 (TP-A03)
// Two Ultrasonic Bricks have the same address, so each goes on its own channel of the I2C Mux 8 (left on CH0, right on CH1). The robot turns away from the closer obstacle.
#include <TinkerPie.h>
#include <TinkerPieBricks.h>
using namespace tinkerpie;
tpb::Mux8 mux;
tpb::Ultrasonic eye;
float look(int ch) { mux.select(ch); return eye.cm(); }
void setup() {
Serial.begin(115200);
tinkerpie::begin(); // also starts the SENSOR ports (I2C bus Wire1)
if (!mux.begin()) Serial.println("I2C Mux 8 not found at 0x70: check the cable to SENSOR 1-4");
mux.select(0); eye.begin();
mux.select(1); eye.begin();
}
void loop() {
float left = look(0), right = look(1);
if (left > 0 && left < 20) motors::tank(40, -40); // obstacle on the left: turn right
else if (right > 0 && right < 20) motors::tank(-40, 40); // obstacle on the right: turn left
else motors::tank(45, 45);
basic::pause(50);
}
More TinkerPie Bricks
Qwiic AdapterTP-A01Use any Qwiic / STEMMA QT sensor on TinkerPie – safely.₹299Pre-order
I2C HubTP-A02One SENSOR port becomes six – plug in many bricks and sensors at once.₹299Pre-order
TinkerPie V1 boardThe all-in-one coding, robotics and AI board, designed in India.₹7,999Pre-order
IO-4 Smart BrickTP-B01Connect any analog or digital sensor to TinkerPie – 4 ports, each analog, digital or PWM.₹499Pre-order