# Adafruit ADG728 1-to-8 Analog Matrix Switch

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/129/300/medium800/adafruit_products_5899-03.jpg?1712760005)

Analog switches are a solid state alternative to relays, when you want a smaller, lower-power technology that won't wear out mechanically. And, as the name implies, you can use the **Adafruit ADG728 1-to-8 Analog Matrix Switch** to connect between eight analog signals, much like a set of 8 mechanical switches. These chips tend to be tiny surface mount parts, so this breakout will let anyone use the ADG728 switch for signals up to 5V, without fiddly soldering.

![](https://cdn-learn.adafruit.com/assets/assets/000/129/301/medium800/adafruit_products_5899-01.jpg?1712760079)

The ADG728 uses I2C to select which of the 8 channels switches to turn on or off, to connect that channel to the single analog 'D' pin. Note that unlike digital switches and multiplexers, these are not 'input' and 'output' because the signal is bidirectional. You could have the D signal be an input to 8 outputs, or the 8 inputs to one output.

![](https://cdn-learn.adafruit.com/assets/assets/000/129/302/medium800/adafruit_products_5899-02.jpg?1712760126)

Also, the ADG728 isn't really a 'selecting multiplexer', **it's a matrix switch with 8 independent switches**. That means that yes, you could treat it like an SP8T where you select which signal is routed to the D pin, you can also turn on multiple switches to 'merge' the signals together.

Unlike a relay or mechanical switch, analog switches don't wear out, and the switch time is near instant, about 100nS. The ADG728 chip also guarantees break-before-make so the deselected switches will open before selected switches close.

![](https://cdn-learn.adafruit.com/assets/assets/000/129/303/medium800/adafruit_products_5899-04.jpg?1712760163)

However, there's a few things to watch out for:

- **The VIN power pin** (the red wire if using a STEMMA QT cable) **must as high as the highest analog voltages you want to switch**. That means if the analog signals are no more than 5VDC, the V+ pin must be higher than 5V. You cannot power this pin with 3.3V and switch 5V signals.
- **It cannot switch signals below ground**. No negative voltages can be applied to the Switch or D pins!
- **Analog switches are for signals, not power!** Since this is not a mechanical switch, the signals pass through circuitry that is not designed to source or sink current. This is great for analog signal voltages, and is not good for providing more than a few mA of current.

![](https://cdn-learn.adafruit.com/assets/assets/000/129/304/medium800/adafruit_products_5899-00.jpg?1712760304)

In addition to the 8 switch S pins and the D pin that can be switched to, there are also two I2C address pins, so you can change the default address from 0x4C up to 0x4F. There's also a reset pin if you want to immediately set all the switches to open.

To get you going fast, we spun up a custom-made PCB in the[&nbsp; **STEMMA QT** form factor](https://www.adafruit.com/?q=stemma%20qt%20sensor "STEMMA QT form factor"), making it easy to interface with. 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://www.sparkfun.com/qwiic) I2C connectors. This allows you to make solderless connections between your development board and the ADG or to chain it with a wide range of other sensors and accessories using a [**compatible cable**](https://www.adafruit.com/?q=stemma%20qt%20cable).

- [Next Page](https://learn.adafruit.com/adafruit-adg728-1-to-8-analog-matrix-switch/pinouts.md)

## Primary Products

### Adafruit ADG728 1-to-8 Analog Matrix Switch

[Adafruit ADG728 1-to-8 Analog Matrix Switch](https://www.adafruit.com/product/5899)
Analog switches are a solid state alternative to relays, when you want a smaller, lower-power technology that won't wear out mechanically. And, as the name implies, you can use the&nbsp; **Adafruit ADG728 1-to-8 Analog Matrix Switch** to connect between eight analog signals,...

Out of Stock
[Buy Now](https://www.adafruit.com/product/5899)
[Related Guides to the Product](https://learn.adafruit.com/products/5899/guides)

## Featured Products

### STEMMA QT / Qwiic JST SH 4-pin Cable - 100mm Long

[STEMMA QT / Qwiic JST SH 4-pin Cable - 100mm Long](https://www.adafruit.com/product/4210)
This 4-wire cable is a little over 100mm / 4" long and fitted with JST-SH female 4-pin connectors on both ends. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert and remove.

<a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/4210)
[Related Guides to the Product](https://learn.adafruit.com/products/4210/guides)
### STEMMA QT / Qwiic JST SH 4-Pin Cable - 50mm Long

[STEMMA QT / Qwiic JST SH 4-Pin Cable - 50mm Long](https://www.adafruit.com/product/4399)
This 4-wire cable is&nbsp;50mm / 1.9" long and fitted with JST SH female 4-pin connectors on both ends. Compared with the chunkier JST PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert and remove.

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/4399)
[Related Guides to the Product](https://learn.adafruit.com/products/4399/guides)
### STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets

[STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets](https://www.adafruit.com/product/4397)
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-SH female 4-pin connectors on one end and premium female headers on the other. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert and...

In Stock
[Buy Now](https://www.adafruit.com/product/4397)
[Related Guides to the Product](https://learn.adafruit.com/products/4397/guides)
### STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable

[STEMMA QT / Qwiic JST SH 4-pin to Premium Male Headers Cable](https://www.adafruit.com/product/4209)
This 4-wire cable is a little over 150mm / 6" long and fitted with JST-SH female 4-pin connectors on one end and premium Dupont male headers on the other. Compared with the chunkier JST-PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert...

In Stock
[Buy Now](https://www.adafruit.com/product/4209)
[Related Guides to the Product](https://learn.adafruit.com/products/4209/guides)
### JST SH 4-pin Cable with Alligator Clips - STEMMA QT / Qwiic

[JST SH 4-pin Cable with Alligator Clips - STEMMA QT / Qwiic](https://www.adafruit.com/product/4398)
This cable will make it super easy to use our plug-and-play STEMMA QT boards with boards like Circuit Playground. On one end you get a Qwiic / STEMMA QT connector (technically known as a JST SH 4-pin plug)&nbsp; into 4 individual wires with grippy alligator clips. We're carrying these to...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4398)
[Related Guides to the Product](https://learn.adafruit.com/products/4398/guides)

## Related Guides

- [Adafruit VL6180X Time of Flight Micro-LIDAR Distance Sensor Breakout](https://learn.adafruit.com/adafruit-vl6180x-time-of-flight-micro-lidar-distance-sensor-breakout.md)
- [AFMotor Library Reference](https://learn.adafruit.com/afmotor-library-reference.md)
- [Pico Four Keypad](https://learn.adafruit.com/pico-four-key-macropad.md)
- [EMC2101 Fan Controller and Temperature sensor](https://learn.adafruit.com/emc2101-fan-controller-and-temperature-sensor.md)
- [Light Up your Costume with Noods](https://learn.adafruit.com/light-up-your-costume-with-noods.md)
- [Adafruit SGP41 Multi-Pixel Gas Sensor Breakout](https://learn.adafruit.com/adafruit-sgp41-multi-pixel-gas-sensor-breakout.md)
- [Circuit Playground Bluefruit Quick Draw Duo](https://learn.adafruit.com/circuit-playground-bluefruit-quick-draw-duo.md)
- [Navi10 MacroPad with KB2040 and KMK CircuitPython keyboard firmware](https://learn.adafruit.com/navi10-macropad-with-kb2040-and-kmk-circuitpython-keyboard-firmware.md)
- [Mini Weather Station ESP32-S3 TFT](https://learn.adafruit.com/mini-weather-station-esp32-s2-tft.md)
- [Adafruit ESP32-S3 Feather](https://learn.adafruit.com/adafruit-esp32-s3-feather.md)
- [Cheekmate - a Wireless Haptic Communication System](https://learn.adafruit.com/cheekmate-wireless-haptic-communication.md)
- [Adafruit STM32F405 Feather Express](https://learn.adafruit.com/adafruit-stm32f405-feather-express.md)
- [Using the Adafruit Library with Fritzing](https://learn.adafruit.com/using-the-adafruit-library-with-fritzing.md)
- [Adafruit 2.13" 250x122 Quad-Color eInk](https://learn.adafruit.com/adafruit-2-13-250x122-quad-color-eink.md)
- [Adafruit SGP40 Air Quality Sensor](https://learn.adafruit.com/adafruit-sgp40.md)
