> **Source:** Core Electronics is an Australian maker-electronics retailer and manufacturer based in Newcastle, NSW, run by a team of makers and educators. We design and manufacture our own product lines (PiicoDev, CE originals) and are official retailers for iconic maker and industrial brands including Raspberry Pi, Arduino, Adafruit, SparkFun and DFRobot. Orders ship Australia-wide from our Newcastle warehouse. Prices are in AUD and include GST. Pricing, stock and dispatch on this page are generated from the store's live catalog. Full machine-readable index: https://core-electronics.com.au/llms.txt

# Adafruit TCA8418 Keypad Matrix and GPIO Expander Breakout - STEMMA QT / Qwiic

**Type:** Product page · **SKU:** ADA4918 · **Brand:** [Adafruit](https://core-electronics.com.au/brands/adafruit-australia)
**Page:** https://core-electronics.com.au/adafruit-tca8418-keypad-matrix-and-gpio-expander-breakout-stemma-qt-qwiic.html ([markdown](https://core-electronics.com.au/adafruit-tca8418-keypad-matrix-and-gpio-expander-breakout-stemma-qt-qwiic.html.md))

It's a GPIO expander, it's a keypad matrix driver... its the Adafruit TCA8418 Keypad Matrix and GPIO Expander Breakout - a cute and powerful I2C...

## Pricing

- **Price:** $10.60 (inc GST) — $9.64 AUD, exc GST
- **Quantity discounts:** 10+ $9.35 (exc GST) · 50+ $9.15 (exc GST)

## Availability & dispatch

- In stock, ships same business day if ordered before 2PM (Australia/Sydney).
- We can dispatch 2 today, and up to 500 more in 8–12 days.

## How to buy

- **Build a cart:** compose `https://core-electronics.com.au/cart/link?items=ADA4918:1` (comma-separated SKU:qty pairs) and share the link. Opening it shows a confirmation page with live pricing and stock before anything is added to the cart.
- **Verify the cart first:** fetch `https://core-electronics.com.au/cart/link/ADA4918:1.md` for live line prices (inc & exc GST, quantity discounts applied), stock and dispatch estimates, and totals. Append `/to/{AU-postcode}` (or `/to/{country-code}:{postcode}`) before `.md` for delivery options and prices to that destination. Unknown, retired, or out-of-stock SKUs are flagged. (Query form `cart/link.md?items=...` also works but some robots parsers refuse query strings here.)
- **Checkout** is completed on-site and includes a captcha at the payment step. Share the cart link; checkout takes it from there.
- **Search the catalogue:** `https://core-electronics.com.au/search/{query}.md` (URL-encode the query; pages 2-3 at `search/{query}/{page}.md`; `search.md?q=` also works)
- **Payment methods, purchase orders, policies and contact details:** https://core-electronics.com.au/llms.txt
## Description

It's a GPIO expander, it's a keypad matrix driver... its the **Adafruit TCA8418 Keypad Matrix and GPIO Expander Breakout** - a cute and powerful I2C GPIO expander *and* keypad matrix driver! This chip is quite fancy, with the ability to act as your I2C multi-tool for handling keypads, buttons or LEDs.

This chip has 18 total 'I/O' pins, 10 columns and 8 rows. You can of course arrange them as a matrix of buttons for a total of 80 switches. Or you can use any subset as individual GPIO input or outputs. The nicest part of the keypad driver is that it has a 10-element event queue, so even if you don't get to the interrupt immediately, keypress and release events will be held for you. Since it's I2C its very easy to use with any microcontroller or computer.

GPIO expanders work like this: you have a board with some number of GPIO but not enough for your project - maybe you need more buttons or LEDs. [You *could* upgrade to a board with massive number of GPIO like the Grand Central](https://core-electronics.com.au/search?q=grand+central), or you could pop on one of these boards. Connect it over I2C and then you can send/receive I2C commands to control the GPIO pins to write and read them. It's going to be slower than direct GPIO access, but maybe that doesn't matter if it takes a millisecond instead of a microsecond. You only need the two I2C pins, and you can even share the I2C port with other sensors and devices. Heck, you can even add more expanders for massive I/O control!

For GPIO expansion, any of the 18 pins can be used as input or output. For inputs, you can also set an optional pull-up and an interrupt output on the INT pin for rising or falling signals. There's also a debouncer that can add a little low-pass filtering for noisy tactile switches. For outputs, you can set them high or low, great for basic LED driving.

For Keypad Matrix driving, theres up to 10 columns and 8 rows. You cannot change a row into a column or vice versa. Pull-ups and matrix scanning is handled for you, with key presses and releases recorded into a 10-element FIFO queue. You can of course set up interrupt output on key press or release so you don't have to poll over and over again.

[Adafruit have written both Arduino](https://github.com/adafruit/Adafruit_TCA8418) and [CircuitPython/Python libraries](https://github.com/adafruit/Adafruit_CircuitPython_TCA8418) for the TCA8418, so you can get started whether you have an Arduino-compatible UNO or a Raspberry Pi 4 - or anything in between. [There's also a Linux Kernel driver module](https://github.com/torvalds/linux/blob/master/drivers/input/keyboard/tca8418_keypad.c) if you want to have this natively supported by a single-board-computer.

To get you going fast, Adafruit spun up a custom-made PCB in the[ **STEMMA QT** form factor](https://core-electronics.com.au/search?q=stemma%20qt%20sensor), making it easy to interface with. There's a built in 3.3V regulator and level shifting on the I2C lines so you can use this with 3V or 5V microcontrollers.

The [STEMMA QT connectors](https://learn.adafruit.com/introducing-adafruit-stemma-qt/what-is-stemma-qt) on either side are compatible with the [SparkFun Qwiic](https://core-electronics.com.au/catalogsearch/result/?q=qwiic) I2C connectors. This allows you to make solderless connections between your development board and the TCA8418 or to chain it with a wide range of other sensors and accessories using a [**compatible cable**](https://core-electronics.com.au/search?q=stemma%20qt%20cable). [**QT Cable is not included**, but Adafruit have a variety in the shop](https://core-electronics.com.au/search?q=stemma+qt+cable).

##  Technical Details 

**TCA8418 Specs:**

- Supports 80 Buttons With Use of 18 GPIOs
- Supports QWERTY Keypad Operation Plus GPIO Expansion
- Low Standby (Idle) Current Consumption: 3 µA (not including breakout board regulator and LED)
- Supports 1-MHz Fast Mode Plus I2C Bus
- 10 Byte FIFO to Store 10 Key Presses and Releases
- Open-Drain Active-Low Interrupt Output
- Integrated Debounce Time of 50 µs

Product Dimensions: 35.5mm x 17.7mm x 4.6mm / 1.4" x 0.7" x 0.2"

Product Weight: 2.5g / 0.1oz

 
 ![RoHS 2 2011 65 EU Compliant](https://core-electronics.com.au/attachments/uploads/RoHS2_2011_EU.png)![RoHS 2 2015 863 EU Compliant](https://core-electronics.com.au/attachments/uploads/RoHS2_2015_EU.png)

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/A/D/ADA4918-2.jpg)
