TINKER PiEDESIGN IN INDIA

I2C Mux 8

Connection · SKU TP-A03

Eight separate I2C channels – use many sensors that share the same address.

₹499

Pre-order

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

Specifications

Size72 x 40 mm
Channels8 x JST-PH 4-pin
Voltage3.3 V
InterfaceI2C 0x70-0x77
ChipTI TCA9548A

How to use it with TinkerPie

  1. Connect the brick’s BUS IN to any TinkerPie SENSOR 1-4 port with a 4-pin JST-PH cable.
  2. More bricks? Plug the next one into BUS OUT (or use the I2C Hub).
  3. 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 Adapter (TP-A01)Qwiic AdapterTP-A01Use any Qwiic / STEMMA QT sensor on TinkerPie – safely.₹299Pre-orderI2C Hub (TP-A02)I2C HubTP-A02One SENSOR port becomes six – plug in many bricks and sensors at once.₹299Pre-orderTinkerPie V1 boardTinkerPie V1 boardThe all-in-one coding, robotics and AI board, designed in India.₹7,999Pre-orderIO-4 Smart Brick (TP-B01)IO-4 Smart BrickTP-B01Connect any analog or digital sensor to TinkerPie – 4 ports, each analog, digital or PWM.₹499Pre-order

See all 53 TinkerPie Bricks