Cardputer ADV GPIO Pinout: Grove Port, EXT Header and What You Can Plug In

Every pin you can reach on a Cardputer ADV, drawn and color coded: the Grove port, the 14-pin EXT header, which GPIOs are free or shared, the voltage and current limits, both I2C buses and what plugs in where.

Oct 2, 2026 11 min read By Atomic Creations

A glowing Grove connector with black, red, yellow and white wires next to a color-coded 14-pin EXT header, under the headline 4 wires. 14 pins.

The Cardputer looks sealed, but it has two ways out to the physical world: a 4-pin Grove port on every model, and on the Cardputer ADV a 14-pin EXT header. Here is the full pinout of both, which pins are actually free, the voltage and current limits that keep the ESP32-S3 alive, and what you can plug in without a soldering iron.

The short answer

The Grove port is black GND, red 5V, yellow G2 (I2C SDA) and white G1 (I2C SCL). The ADV adds a 14-pin EXT header: G4, G5, G6, G13 and G15 are free when nothing is attached, G3 is a strapping pin, and the rest are shared with the SD card, the internal I2C bus or power. Signals are 3.3V logic and not 5V tolerant. On the original Cardputer, G1 and G2 are the only free pins.

  1. Cardputer Grove port pinout
  2. Cardputer ADV GPIO pinout: the EXT header
  3. Which Cardputer GPIO pins are free?
  4. Cardputer ADV GPIO voltage and current
  5. Original Cardputer vs ADV
  6. Cardputer I2C: two buses, no clashes
  7. What you can plug in
  8. How to program the GPIO
  9. FAQ

Cardputer Grove port pinout

The Grove port is the 4-pin socket that M5Stack's docs call PORT.CUSTOM; the connector type is HY2.0-4P, the same plug every M5Stack Unit uses.

HY2.0-4PblackGNDgroundred5Vpower outyellowG2I2C SDAwhiteG1I2C SCLG1, G2 signals:3.3 V logicRed wire:5 V power only10 kΩ pull-ups to 3.3 V on G1 and G2 (ADV)
The Cardputer Grove connector. Red is power, not a signal: never wire it to a GPIO.

Grove connector wire colors

Wire Signal Also works as
Black GND
Red 5V power Power only
Yellow GPIO2 I2C SDA, analog in (ADC1_CH1), touch
White GPIO1 I2C SCL, analog in (ADC1_CH0), touch

On the ADV, G1 and G2 each have a 10 kΩ pull-up to 3.3V and ESD protection on the board. The practical result: an unconnected input reads HIGH, so wire buttons to switch the pin to GND (active-low). Outputs like an LED are unaffected.

The M5Stack Grove pinout on a Cardputer

M5Stack Units all share the same order: GND, 5V, then two signal wires. On the Cardputer, yellow is always G2 and white is always G1. LED Units such as Unit RGB put their data on yellow; single-signal inputs like Unit Button use white. That one fact tells you which pin number to put in your code.

Cardputer ADV GPIO pinout: the EXT header

The ADV adds an EXT 2.54-14P header, a 14-pin female socket at standard 2.54mm pitch. It is where M5Stack's Cap modules, like the LoRa-1262, attach, and it takes plain jumper wires too.

RESET G35V ININT G4GND BUSY G65V OUTSCK G40G8 SDAMOSI G14G9 SCLMISO G39G13 UARTCS G5G15 UARTFree to useStrapping pinShared with SDInternal I2C5 V powerGround
The EXT header drawn by signal name, in the seven pairs M5Stack lists. Check your Cap or the board before wiring by position.

Why no pin numbers? M5Stack's docs number the header odd on one side and even on the other. The schematic counts 1 to 7 down one side and 8 to 14 back up the other. Both agree on which signal is which, so wire by name (G4, G13) and never by "pin 3".

The labels (RESET, INT, BUSY, SCK, MOSI, MISO, CS) are the roles those pins play for a Cap radio module. With no Cap attached they are ordinary GPIOs, with three exceptions covered next. G13 and G15 are labelled as the UART pair; the docs and the schematic name TX and RX from opposite ends, so treat them as "G13 and G15 (UART)" and swap them if a serial device stays silent.

Which Cardputer GPIO pins are free?

Nearly every pin on the ESP32-S3 is already busy inside the Cardputer: screen, keyboard, audio, SD card, IR. Here is what is left for you on the ADV.

Pins Where Use them?
G1, G2 Grove Yes. The beginner pins.
G4, G5, G6 EXT Yes, if no Cap is attached.
G13, G15 EXT Yes, if no Cap is attached. Labelled UART.
G3 EXT Yes, carefully. Strapping pin.
G40, G14, G39 EXT SPI only. Shared with the microSD card. Use them as an SPI bus with your own chip select (G5), never as plain on/off pins.
G8, G9 EXT I2C only. The internal bus for keyboard, IMU and audio codec.
Everything else Inside No.

Strapping pins

The ESP32-S3 reads four strapping pins (G0, G3, G45, G46) at the moment it resets to decide how to boot, then frees them as normal pins. On the Cardputer, G0 is the boot button (hold it while plugging in for download mode), G46 belongs to the audio codec and G45 is not broken out. That leaves G3 on the EXT header: fine to use after boot, but don't hang anything on it that pulls it hard HIGH or LOW at power-on.

The built-in RGB LED

The ADV's own RGB LED is a WS2812 on G21, with its power switched by G38. Set G38 HIGH before driving it. On the ADV that same G38 also turns on the display backlight, so the two share a switch.

Cardputer ADV GPIO voltage and current

Two numbers matter more than any pinout: the voltage a pin can take, and the current it can give.

reads LOW0 to 0.83 Vno man's land0.83 to 2.48 Vreads HIGH2.48 to 3.6 Vdamage zoneabove 3.6 V0 V3.35 Vlogic5 V signal
ESP32-S3 input thresholds at 3.3V, from Espressif's datasheet. A 5V signal sits well inside the damage zone.
  1. 3.3V logic, not 5V tolerant. The highest voltage a pin may see is about 3.6V. A sensor that outputs 5V on its signal wire needs a level shifter or a voltage divider before G1 or G2.
  2. Keep each pin to about 10mA. That covers one LED with a resistor. Anything hungrier (LED filament, strips, motors, relays) gets a transistor and the 5V rail.
  3. Keep Grove 5V loads to a few hundred mA. M5Stack publishes no current rating for it. Our working limit is about 300mA; bigger loads get their own 5V supply with GND shared with the Cardputer.
Our rule for LEDs10 mADefault drive20 mASink rating (IOL)28 mASource, max drive40 mA
Per-pin current. Espressif lists 20mA as the default drive and higher ratings at the strongest setting, but publishes no "safe continuous" figure, so 10mA is our conservative rule, not a vendor number.

On the ADV, the 5V pins come from a boost converter fed by the 1750mAh battery, separate from the ESP32's 3.3V regulator. A heavy 5V load drains the battery faster but does not share the processor's supply.

Original Cardputer vs Cardputer ADV GPIO

The ADV freed up pins by swapping the original's keyboard decoder (which used seven GPIOs) for an I2C keyboard chip. That is where the EXT header's free pins came from.

Original Cardputer Cardputer ADV
Expansion Grove only Grove + EXT 14-pin
Grove pins G2 yellow, G1 white Same
Keyboard Decoder on G3 to G7, G13, G15 I2C chip on G8 and G9
Free GPIOs G1 and G2 only G1, G2 + G4, G5, G6, G13, G15 (G3 with care)
IMU None BMI270
RGB LED G21, powered directly G21, power enabled by G38

If you have the original, everything in this guide about the Grove port applies. The EXT header sections do not. For the full model comparison see our Cardputer ADV vs CardputerZero guide.

Cardputer I2C: two buses, no clashes

I2C lets many devices share two wires, each answering to its own address. The ADV has two separate I2C buses, and knowing that saves a lot of confusion.

Internal busG8 SDA · G9 SCLKeyboard TCA84180x34IMU BMI2700x69Audio codec ES8311on the busGrove busG2 SDA · G1 SCLUnit OLED0x3CUnit LCD0x3EUnit ToF4M0x29Unit PaHub v2.00x70
The internal bus is the Cardputer's own. The Grove bus is yours. A Unit on Grove can never collide with the keyboard or IMU.
  • Grove bus (G2 SDA, G1 SCL). Where your sensors and screens go. In the M5Cardputer library it is M5Cardputer.Ex_I2C.
  • Internal bus (G8 SDA, G9 SCL). Keyboard at 0x34, IMU at 0x69, plus the audio codec. It also appears on the EXT header, so you can add a device there, but only one whose address does not clash. Never use G8 or G9 as plain GPIO.
  • Generic OLEDs usually answer at 0x3C; Adafruit's 128x64 board defaults to 0x3D. If a screen stays blank, run the scanner below and believe what it prints.

What you can plug in

Grove yellow · G2 · outLED + resistorWS2812 stripUnit RGBUnit BuzzerGrove white · G1 · inUnit ButtonUnit PIRUnit AngleGrove I2C · G2 + G1Unit OLEDUnit LCDUnit ToF4MSSD1306 OLEDEXT · G13 + G15 UARTGPS moduleEXT · SPI bus + G5 CSCap LoRa-1262Own 5 V supply, shared GNDServosLong LED strips
Where common add-ons connect. Outputs on yellow, inputs on white, I2C on both, radios and GPS on the EXT header.

The red wire is also a plain 5V power output. Parts rated for 5V, such as a 5V COB LED filament, can run straight off Grove red and black with no code. The 5V converter has no software switch, so the part is on whenever the Cardputer is on. Check the part really is rated 5V, and keep the total draw to a few hundred mA. Short addressable strips work the same way with one data wire on G2; our ESP32 LED projects guide has the builds and the current math.

A few details worth knowing:

  • Unit Angle outputs 0 to 2.5V, safe for the ESP32's analog input on G1.
  • Unit Buzzer has its own transistor driver, so a GPIO can drive it directly.
  • Servos can stall at 750mA, more than we would ask of the Grove 5V. Give them their own supply.

Which Units, Caps and cables are worth buying is a separate question, answered in our Cardputer ADV accessories guide.

M5Stack Grove to Dupont

For breadboards and loose modules, M5Stack's Grove2Dupont cable turns the Grove plug into four 2.54mm jumper ends (20cm, sold in packs of male and female). Match colors to the table above: yellow to your signal, black to GND, red only to a module's power pin.

M5Stack Grove hub vs PaHub

Unit Hub if

  • You want 3 ports from 1
  • Every device has a different I2C address
  • All three ports are wired straight through

PaHub v2.0 if

  • Two devices share an address
  • You need 6 channels
  • Its PCA9548 mux sits at 0x70

Measuring what a Unit really draws? Unit Grove2Grove sits inline, switches the port on and off and reports current up to 1A.

How to program the Cardputer GPIO

  • UIFlow2 (blocks and MicroPython in the browser). Flash it with M5Burner, then connect at uiflow2.m5stack.com over WiFi or USB. In practice this is the MicroPython route on the Cardputer, and many Units have ready-made blocks.
  • Arduino IDE. Install M5Stack's board package, pick M5Cardputer as the board and add the M5Cardputer library (it pulls in M5Unified and M5GFX). The same steps cover the original and the ADV.
  • PlatformIO. M5Stack's docs give board = esp32-s3-devkitc-1 with the M5Cardputer library.

Uploading not working? Use download mode: power switch OFF, hold G0, plug in USB, release.

Blink an LED on the Grove port

Wire G2 (yellow) through a 150 ohm resistor to the LED's long leg, and the short leg to GND (black). This sketch targets the Arduino-ESP32 core, compiles for the Cardputer ADV and needs no M5 library:

#include <Arduino.h>
// Grove: yellow = G2, white = G1,
// red = 5V, black = GND
const int LED_PIN = 2;

void setup() {
  pinMode(LED_PIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_PIN, HIGH);
  delay(500);
  digitalWrite(LED_PIN, LOW);
  delay(500);
}

I2C scanner: find what is plugged in

The first thing to run when an I2C Unit or screen does nothing. It also compiles for the ADV with the plain Arduino-ESP32 core. Open the Serial Monitor at 115200 and it lists every address on the Grove bus:

#include <Arduino.h>
#include <Wire.h>
// Grove I2C: SDA = GPIO2 (yellow), SCL = GPIO1 (white)

void setup() {
  Serial.begin(115200);
  delay(1000);
  Wire.begin(2, 1);  // (SDA, SCL)
}

void loop() {
  Serial.println("Scanning Grove I2C...");
  for (uint8_t addr = 1; addr < 127; addr++) {
    Wire.beginTransmission(addr);
    if (Wire.endTransmission() == 0) {
      Serial.printf("Found device at 0x%02X\n", addr);
    }
  }
  delay(5000);
}

Nothing found? Check that yellow and white are not swapped, and that the device is powered. If two devices print the same address, that is your cue for a PaHub.

Keep your other firmware

Tinkering does not mean giving up what is already on the device. Launcher keeps several apps installed side by side and lets you swap firmware without a computer. Its CFG menu can change the partition scheme, which its README says makes room for big apps such as UIFlow2. (Launcher's own notes say UIFlow 1 does not work with it.) How flash gets carved up is explained in ESP32 memory explained. Coming from a Pi? Our Raspberry Pi GPIO pinout guide covers the 40-pin header the same way.

FAQ

Is the Cardputer Grove port 3.3V or 5V?

Both, on different wires. The red wire supplies 5V power. The yellow (GPIO2) and white (GPIO1) signal wires are 3.3V logic and are not 5V tolerant, so never put a 5V signal on them.

Which GPIO pins are free on the Cardputer ADV?

G1 and G2 on the Grove port, plus G4, G5, G6, G13 and G15 on the EXT header when no Cap module is attached. G3 is also on the header but is a strapping pin, so avoid pulling it high or low at power-on.

What is the Cardputer Grove pinout?

Black is GND, red is 5V, yellow is GPIO2 (I2C SDA) and white is GPIO1 (I2C SCL). On the Cardputer ADV both signal pins have 10k pull-up resistors to 3.3V.

How much current can the Cardputer Grove port supply?

M5Stack does not publish a figure. Keep Grove 5V loads to a few hundred milliamps; we use about 300mA as a working limit and give anything bigger, like servos or long LED strips, its own 5V supply with a shared ground.

Can I use the SD card pins on the EXT header?

Only as an SPI bus. G40, G14 and G39 are shared with the microSD card, so you can add an SPI device with its own chip select on G5, but you should not toggle them as plain GPIO.

Does the original Cardputer have the EXT header?

No. The original Cardputer has only the Grove port, and G1 and G2 are effectively its only free GPIOs. The 14-pin EXT header is new on the Cardputer ADV.

The bus GLIDE plays on

Every key you press on an ADV and every tilt it feels travels over that internal I2C bus on G8 and G9: the keyboard chip and the BMI270 IMU. Our synth uses exactly that hardware, and nothing needs to be plugged into the Grove port to play it.

The GLIDE pocket synth

GLIDE

Pocket synth · Cardputer ADV

Full disclosure: this one is ours. GLIDE turns the ADV's keyboard into four rows that play like strings: notes slide into each other, scale lock means no wrong notes, and tilting the device morphs between sounds. Every one is set up and tested one by one, with a microSD sound library loaded, so it plays the moment you switch it on. Get GLIDE ready to play, or try it in your browser below.

Next batch · Batch 4

Join the GLIDE waitlist

Batch 4 opens next week. The list gets the email 24 hours before it goes public. One message, nothing more.

One email, no newsletter, unsubscribe any time.

Useful? Pass it on

Reddit X
← Browse all guides

Try it in your browser

This is GLIDE. Press anything.

A sketch of the Cardputer synth running right here. The four rows are tuned like strings: hold one key and tap another on the same row and the note slides. Tap a chord on the bottom row, then play over it.

A MINOR PENT ·clashes 0

Press any key. Then try Start a beat.

Keyboard works too: 1 to 0, q to p, a to ; are the strings, z to / is the jam row. Same letters as the real thing.

Scale lock is on, so every key fits. Flip it off to hear a regular keyboard. On the device you also get ten sounds, a looper, tilt control, the speaker and a headphone jack.

Small batches, tested one by one

Get GLIDE ready to play. Tested one by one.

Set up, tested and charged one by one, with a sound library loaded. Switch it on and play, and tap Randomize for a sound nobody else has.

  • HardwareM5Stack Cardputer ADV
  • Keys56, four string rows
  • Auto KeyHears key, mode and tempo
  • OutputSpeaker + 3.5 mm headphone
  • PowerUSB-C, 7 to 10 h a charge
  • UpdatesFree, forever
GLIDE pocket synth with a white face and green trim, on a glossy black surface lit with green lines
Actual size: 84 × 54 mm, about a credit card

Next batch · Batch 4

Join the GLIDE waitlist

Batch 4 opens next week. The list gets the email 24 hours before it goes public. One message, nothing more.

One email, no newsletter, unsubscribe any time.

Questions first? Ask the maker on Discord →