TINKER PiEDESIGN IN INDIA

I2C Hub

Connection · SKU TP-A02

One SENSOR port becomes six – plug in many bricks and sensors at once.

₹299

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 Hub turns one TinkerPie SENSOR port into six, so many bricks and sensors can be plugged in at once in a star layout. It uses the same cables as the TinkerPie SENSOR ports and has a power light and optional pull-ups.

Features

Specifications

Size48 x 32 mm
Connectors6 x JST-PH 4-pin
Voltage3.3 V
InterfaceI2C (pass-through)

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 Hub (TP-A02): 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;



void setup() {
  Serial.begin(115200);
  tinkerpie::begin();            // also starts the SENSOR ports (I2C bus Wire1)

}

void loop() {
  tpb::scan();                       // everything plugged into the hub, with its address
  basic::pause(3000);
}

Project: Weather station on one port

A DHT11 kit brick (0x08), a photoresistor kit brick with its ADDR +1 bridged (0x09) and an OLED Display Brick share one SENSOR port through the I2C Hub.

Weather station on one port (Arduino C++)
// Weather station on one port: I2C Hub (TP-A02)
// A DHT11 kit brick (0x08), a photoresistor kit brick with its ADDR +1 bridged (0x09) and an OLED Display Brick share one SENSOR port through the I2C Hub.
#include <TinkerPie.h>
#include <TinkerPieBricks.h>
using namespace tinkerpie;

tpb::KitSensor dht, ldr;

void setup() {
  Serial.begin(115200);
  tinkerpie::begin();            // also starts the SENSOR ports (I2C bus Wire1)
  if (!dht.begin(tpb::KitSensor::DHT11, 0x08)) Serial.println("DHT11 Brick not found at 0x08: check the cable to SENSOR 1-4");
  if (!ldr.begin(tpb::KitSensor::ANALOG_IN, 0x09)) Serial.println("LDR Brick not found at 0x09: check the cable to SENSOR 1-4");
  oled::clear();
}

void loop() {
  oled::showText(String("Temp  ") + String(dht.celsius(), 1) + " C", 0);
  oled::showText(String("Humid ") + String(dht.humidity(), 0) + " %", 2);
  oled::showText(String("Light ") + ldr.raw(), 4);
  basic::pause(2000);
}

More TinkerPie Bricks

I2C Mux 8 (TP-A03)I2C Mux 8TP-A03Eight separate I2C channels – use many sensors that share the same address.₹499Pre-orderQwiic Adapter (TP-A01)Qwiic AdapterTP-A01Use any Qwiic / STEMMA QT sensor on TinkerPie – safely.₹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