Overview

This PCB module is designed to provide a complete, plug-and-play remote User Interface (UI) for any hardware project (Arduino, ESP32, RP2040, STM32, etc.) featuring an I2C bus. Instead of cluttering your build with jumper wires and using up valuable GPIOs on your main controller, this board centralizes a display, tactile inputs, environmental sensors, and onboard memory over a single 4-wire I2C connection—while still leaving extra expansion headers for your custom components.

Beyond Microcontrollers: Single-Board Computers (SBC)

This module is not limited to microcontrollers like Arduino, ESP32, or RP2040. Any Single-Board Computer featuring a hardware I2C bus—such as a Raspberry Pi—can use it as a compact, local interface. It is especially useful for headless projects (like robotics, servers, or portable field equipment), allowing you to display system status, IP addresses, or navigate basic menus without needing an external monitor or SSH connection.

Key Hardware Features

  • Visual Interface: Dedicated footprint for a standard I2C SSD1306 OLED display.
  • User Inputs: 3 tactile push-buttons (BTN1, BTN2, BTN3) managed via a PCF8574AT I/O expander (P4–P6) to save pins on your host microcontroller.
  • Additional Expansion Header: An 8-pin header (SCK, SDA, P0, P1, P2, P3, GND, 3.3V) at the bottom of the board breaks out 4 unused digital GPIOs from the PCF8574AT along with power and I2C lines, making it easy to wire up extra external components (LEDs, relays, buzzers, custom sensors, etc.).
  • Environmental Sensors: Dedicated slot for a combined AHT20 + BMP280 temperature, humidity, and pressure sensor module.
  • Onboard Storage: Dedicated CAT24Cxxx EEPROM chip for storing local configurations, calibration values, or logs directly on the UI module.
  • Hardware Write-Protect (WRITE Jumper): Connects the EEPROM's WP pin to ground (GND) to enable writing. Left un-bridged, an onboard pull-up resistor keeps the EEPROM locked in read-only mode.
  • Daisy-Chaining & Protection: Features a 100 mA fused I2C-INPUT port and two output ports (I2C-OUT1, I2C-OUT2) to easily chain additional I2C modules in series.

Module I2C Address Table

DeviceFunctionI2C Address
PCF8574ATI/O Expander (Buttons & P0–P3 GPIOs)0x20 or 0x21
AHT20Temperature & Humidity0x38
SSD1306OLED Display0x3C
CAT24CxxxEEPROM Memory0x51
BMP280Atmospheric Pressure0x77

Connectivity & Wiring

Connecting the module to your host microcontroller is straightforward and requires only a single 4-wire I2C link:

  • Connector Standard: The board uses JST-XH 2.54mm 4-pin connectors for both its input (I2C-INPUT) and daisy-chain output (I2C-OUT) ports. If your microcontroller uses a different format (such as Qwiic/STEMMA QT or standard DuPont headers), you can easily build a simple adapter cable.
  • Clear Silkscreen Labeling: Every pin's function is clearly marked directly on the PCB silkscreen to prevent wiring mistakes.
  • Pin-to-Pin Mapping: Simply connect the lines straight across from your host controller to the module:
    • 3V3 to 3V3
    • GND to GND
    • SCK to SCK (SCL)
    • SDA to SDA
  • Built-in Circuit Protection: The I2C-INPUT power line is protected by an onboard 100–200 mA resettable PPTC fuse, safeguarding both your host board and the module against accidental shorts or overcurrent conditions.

Demo Game Library (MicroPython)


To immediately test the hardware capabilities of the module, the repository includes a suite of retro mini-games written in MicroPython. They utilize the SSD1306 OLED screen for real-time graphics and the PCF8574 I/O expander to read responsive button inputs:

  • Space Invader: The all-time arcade classic—survive waves of alien invaders!
  • Space Combat: A space combat game focused on maneuvering and dodging enemy fire.
  • Moon Lander: Features balanced physics where you control your thrusters to land your module safely.
  • Breakout: A dynamic brick-breaking game using the physical buttons to move the paddle.
  • Pong: The timeless virtual tennis match.
  • Artillery: Calculate your firing...
Read more »