# Adafruit DACx578 - 8 x Channel I2C DAC

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/135/318/medium800/adafruit_products_6223-04.jpg?1739551960)

Info: There are two variants of this DAC: the 10-bit DAC6578 and the 12-bit DAC7578.

If you've ever said to yourself, "Gee, I wish I had eight DACs that came in a single package", well I have good news.&nbsp; **The Adafruit DACx578 Breakouts are** &nbsp;the answer to your wishes! Within its little package, the DACx578 has eight DACs for whatever voltage setting needs you may have, easily controlled over I2C.

![](https://cdn-learn.adafruit.com/assets/assets/000/135/319/medium800/adafruit_products_6223-02.jpg?1739551991)

The DACx578 can easily work with 3.3V or 5V power and logic so no matter what microcontroller / microcomputer you're using, you'll get full range output. Note that this DAC is 'ratiometric' - that means that 0 is ground and 4095 is whatever the Vref voltage is. By default the Vref is tied to the power pin, but you could cut a jumper to set the top voltage to anything between 0 and the power pin. E.g. if you want a precision 4.095V reference, you'll need to power with 5V, and provide 4.095V on the VRef pin.

![](https://cdn-learn.adafruit.com/assets/assets/000/135/320/medium800/adafruit_products_6223-03.jpg?1739552016)

The breakout for the DACx578 is populated with the required support circuitry to use it with your microcontroller of choice or Blinka-supported computer. The [SparkFun Qwiic](https://www.sparkfun.com/qwiic) compatible [**STEMMA QT**](https://learn.adafruit.com/introducing-adafruit-stemma-qt) JST SH connectors ease the process of connecting the DACx578 to your project and allows you to easily share an I2C bus with other STEMMA QT, Qwiic, Grove, or other compatible sensors. [**QT Cable is not included** , but we have a variety in the shop](https://www.adafruit.com/?q=stemma+qt+cable&sort=BestMatch)

![](https://cdn-learn.adafruit.com/assets/assets/000/135/321/medium800/adafruit_products_6223-01.jpg?1739552060)

Our drivers, wiring diagrams, and example code for Arduino, CircuitPython and Python make it easy to get started so you can get rolling with your project instead of figuring out how to wire things or get the code working.

# Adafruit DACx578 - 8 x Channel I2C DAC

## Pinouts

![](https://cdn-learn.adafruit.com/assets/assets/000/135/366/medium800/adafruit_products_double.jpg?1739831218)

The default I2C address is **0x4C**.

Info: There are two variants of this DAC: the 10-bit DAC6578 and the 12-bit DAC7578. The pinout is the same for both.

## Power Pins

- **VCC** - this is the power pin. To power the board, give it the same power as the logic level of your microcontroller - e.g. for a 5V micro like Arduino, use 5V.
- **VRf** - this is the reference voltage pin. By default, it is tied to **VCC** and as a result will share the same voltage level.
- **Vrf Jumper** - this is the reference voltage jumper. It is located on the front of the board, to the left of the DACx578 chip. If you cut this jumper, the **VRf** pin is disconnected from **VCC** and can be connected to to any voltage between 0 and the **VCC** voltage level. For example, if you want a precision 4.095V reference, you'll need to cut the **Vrf jumper** , power with 5V to **VCC** , and provide 4.095V on the **VRf** pin.
- **GND** - common ground for power and logic

## I2C Logic Pins

- **SCL** - I2C clock pin, connect to your microcontroller's I2C clock line. This pin can use 3-5V logic, and there's a **10K pullup** on this pin.
- **SDA** - I2C data pin, connect to your microcontroller's I2C data line. This pin can use 3-5V logic, and there's a **10K pullup** on this pin.
- **[STEMMA QT](https://learn.adafruit.com/introducing-adafruit-stemma-qt) -** These connectors allow you to connect to dev boards with **STEMMA QT** (qwiic) connectors or to other things with [various associated accessories](https://www.adafruit.com/?q=JST%20SH%204)

## DAC Output Pins

Along the top edge of the board are the DAC output pins. They are labeled **0** - **7**. Each pin is connected to one of the eight channel outputs from the DACx578.

## Other Pins

- **LDAC** - This is the load DAC pin. **LDAC** is used for synchronous or asynchronous updating of the DAC outputs. According to the datasheet, you should be able to toggle this pin to send the buffer to the output pins after using the write only command. However, in testing, this pin has not worked as described.&nbsp;
- **CLR** - This is the clear pin. It clears all DAC registers and buffers, replacing them with the value stored in the clear code register. The register can be set to zero-scale, mid-scale, full-scale, or disabled. The default setting of the clear code register sets the output of all DAC channels to 0V when the **CLR** pin is brought low.

Warning: In testing, the LDAC pin has not worked as described in the datasheet. Its believed to be a silicon bug in the DACx578.

## I2C Address Jumper

On the back of the board is a three section jumper&nbsp;labeled **AD0** , directly above the **DACx578 label** on the board silk. This jumper allow you to chain up to 3 of these boards on the same pair of I2C clock and data pins. To do so, you solder the jumpers "closed" by connecting the two pads.

The default I2C address is **0x4C**. This address is set by leaving the address pin floating. None of the jumper pads soldered closed.&nbsp;

If you solder the center jumper pad to the pad to its left, you connect the address pin to GND and set the I2C address to **0x48**.

If you solder the center jumper pad to the pad to its right, you connect the address pin to VCC and set the I2C address to **0x4A**.

The table below shows all possible addresses and the jumper positions.

![](https://cdn-learn.adafruit.com/assets/assets/000/135/368/medium800/adafruit_products_Screenshot_2025-02-17_180347.png?1739833445)

## Power LED and LED Jumper

- **Power LED -** In the upper left corner, above the STEMMA connector, on the front of the board, is the power LED, labeled **on**. It is a green LED.
- **LED jumper&nbsp;** - This jumper, labeled **LED** on the board silk, is located on the back of the board, on the right. Cut the trace on this jumper to cut power to the "on" LED.

## Broadcast Addressing

The DACx578 chips support broadcast addressing. This means that you can update DACx578 devices synchronously. This only supports write mode, you cannot perform reads with it. The broadcast address is **0x47**.

# Adafruit DACx578 - 8 x Channel I2C DAC

## CircuitPython and Python

It's easy to use the **DACx578** with Python or CircuitPython, and the [Adafruit\_CircuitPython\_x578](https://github.com/adafruit/Adafruit_CircuitPython_DACx578) module. This module allows you to easily write Python code to write data to the DAC outputs.

You can use this driver with any CircuitPython microcontroller board or with a computer that has GPIO and Python [thanks to Adafruit\_Blinka, our CircuitPython-for-Python compatibility library](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux).

## CircuitPython Microcontroller Wiring

First wire up the DAC to your board exactly as follows. The following is the DAC wired to a Feather RP2040 using the STEMMA connector:

- **Board STEMMA 3V** to **DAC** **VCC (red wire)**  
- **Board STEMMA GND** to **DAC** &nbsp;**GND (black wire)**  
- **Board STEMMA SCL** to **DAC** &nbsp;**SCL (yellow wire)**  
- **Board STEMMA SDA** to **DAC** &nbsp;**SDA (blue wire)**

You can output a signal from any of the 8 DAC channels.

![adafruit_products_feather_stemma_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/135/372/medium640/adafruit_products_feather_stemma_bb.jpg?1739836863)

The following is the DAC wired to a Feather RP2040 using a solderless breadboard:

- **Board 3V** to **DAC VCC&nbsp;(red wire)**  
- **Board GND** to **DAC** &nbsp;**GND (black wire)**  
- **Board SCL** to **DAC** &nbsp;**SCL (yellow wire)**  
- **Board SDA** to **DAC** &nbsp;**SDA (blue wire)**

You can output a signal from any of the 8 DAC channels.

![adafruit_products_feather_bb_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/135/373/medium640/adafruit_products_feather_bb_bb.jpg?1739836918)

## Python Computer Wiring

Since there are _dozens_ of Linux computers/boards you can use, we will show wiring for Raspberry Pi. For other platforms, [please visit the guide for CircuitPython on Linux to see whether your platform is supported](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux).

Here's the Raspberry Pi wired with I2C using the STEMMA connector:

- **Pi 3V** to **DAC VCC&nbsp;(red wire)**  
- **Pi GND** to **DAC** &nbsp;**GND (black wire)**  
- **Pi SCL** to **DAC** &nbsp;**SCL (yellow wire)**  
- **Pi SDA** to **DAC** &nbsp;**SDA (blue wire)**

You can output a signal from any of the 8 DAC channels.

![adafruit_products_piStemma_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/135/374/medium640/adafruit_products_piStemma_bb.jpg?1739836969)

Here's the Raspberry Pi wired with I2C using a solderless breadboard:

- **Pi 3V** to **DAC VCC&nbsp;(red wire)**  
- **Pi GND** to **DAC** &nbsp;**GND (black wire)**  
- **Pi SCL** to **DAC** &nbsp;**SCL (yellow wire)**  
- **Pi SDA** to **DAC** &nbsp;**SDA (blue wire)**

You can output a signal from any of the 8 DAC channels.

![adafruit_products_piBB_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/135/375/medium640/adafruit_products_piBB_bb.jpg?1739837018)

## Python Installation of DACx578 Library

You'll need to install the **Adafruit\_Blinka** library that provides the CircuitPython support in Python. This may also require enabling I2C on your platform and verifying you are running Python 3. [Since each platform is a little different, and Linux changes often, please visit the CircuitPython on Linux guide to get your computer ready](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux)!

Once that's done, from your command line run the following command:

- `pip3 install adafruit-circuitpython-dacx578`

If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use CircuitPython on Python 2.x, it isn't supported!

## CircuitPython Usage

To use with CircuitPython, you need to first install the **Adafruit\_CircuitPython\_DACx578** library, and its dependencies, into the **lib** folder on your **CIRCUITPY** drive. Then you need to update **code.py** with the example script.

Thankfully, we can do this in one go. In the example below, click the **Download Project Bundle** button below to download the necessary libraries and the **code.py** file in a zip file. Extract the contents of the zip file, and copy the **entire**  **lib**  **folder** and the **code.py** file to your **CIRCUITPY** drive.

Your **CIRCUITPY/lib** folder should contain the following folder and file:

- **adafruit\_bus\_device/**
- **adafruit\_dacx578.mpy**

![](https://cdn-learn.adafruit.com/assets/assets/000/135/404/medium800/adafruit_products_dac_sine.png?1739904055)

## Python Usage

Once you have the library `pip3` installed on your computer, copy or download the following example to your computer, and run the following, replacing **code.py** with whatever you named the file:

`python3 code.py`

## Example Code

**If running CircuitPython:** Once everything is saved to the **CIRCUITPY** drive, [connect to the serial console](https://learn.adafruit.com/welcome-to-circuitpython/kattni-connecting-to-the-serial-console) to see the data printed out!

**If running Python:** The console output will appear wherever you are running Python.

https://github.com/adafruit/Adafruit_CircuitPython_DACx578/blob/main/examples/dacx578_sinewaves.py

First, the DAC is instantiated over I2C. Then, in the loop, the sinewaves are written to each of the 8 DAC outputs. Each sinewave is generated at a different frequency. You can connect the outputs to your oscilloscope to measure them. In the image below, channels 0 and 2 on the DAC are connected to the two inputs on an oscilloscope. Channel 0 is operating at 1 Hz and channel 2 is operating at 3 Hz.

![](https://cdn-learn.adafruit.com/assets/assets/000/135/369/medium800/adafruit_products_cp_sine.png?1739834236)

# Adafruit DACx578 - 8 x Channel I2C DAC

## Python Docs

# Adafruit DACx578 - 8 x Channel I2C DAC

## Arduino

Using the DACx578 breakout with Arduino involves wiring up the breakout to your Arduino-compatible microcontroller, installing the [Adafruit\_DAC7578](https://github.com/adafruit/Adafruit_DACX578) library, and running the provided example code.

## Wiring

Wire as shown for a **5V** board like an Uno. If you are using a **3V** board, like an Adafruit Feather, wire the board's 3V pin to the DAC VIN.

Here is an Adafruit Metro wired up to the DAC using the STEMMA QT connector:

- **Board 5V** to **DAC VCC&nbsp;(red wire)**  
- **Board GND** to **DAC** &nbsp;**GND (black wire)**  
- **Board SCL** to **DAC** &nbsp;**SCL (yellow wire)**  
- **Board SDA** to **DAC** &nbsp;**SDA (blue wire)**

You can output a signal from any of the 8 DAC channels.

![adafruit_products_metro_stemma_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/135/376/medium640/adafruit_products_metro_stemma_bb.jpg?1739837072)

Here is an Adafruit Metro wired up using a solderless breadboard:

- **Board 5V** &nbsp;to&nbsp;**DAC VCC&nbsp;(red wire)**  
- **Board GND** &nbsp;to&nbsp; **DAC** &nbsp;**GND (black wire)**  
- **Board SCL** &nbsp;to&nbsp; **DAC** &nbsp;**SCL (yellow wire)**  
- **Board SDA** &nbsp;to&nbsp; **DAC** &nbsp;**SDA (blue wire)**

You can output a signal from any of the 8 DAC channels.

![adafruit_products_metro_bb_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/135/377/medium640/adafruit_products_metro_bb_bb.jpg?1739837105)

## Library Installation

You can install the **Adafruit\_DAC7578** library for Arduino using the Library Manager in the Arduino IDE.

![](https://cdn-learn.adafruit.com/assets/assets/000/135/370/medium800/adafruit_products_Arduino_Open_Library_Manager.png?1739834377)

Click the **Manage Libraries ...** menu item, search for **Adafruit\_DAC7578** , and select the **Adafruit DAC7578** &nbsp;library:

![](https://cdn-learn.adafruit.com/assets/assets/000/135/449/medium800/adafruit_products_Screenshot_2025-02-19_100448.png?1739977523)

If asked about dependencies, click "Install all".

![](https://cdn-learn.adafruit.com/assets/assets/000/135/450/medium800/adafruit_products_Screenshot_2025-02-19_100457.png?1739977537)

If the "Dependencies" window does not come up, then you already have the dependencies installed.

Warning: If the dependencies are already installed, you must make sure you update them through the Arduino Library Manager before loading the example!

## Example Code
https://github.com/adafruit/Adafruit_DACX578/blob/main/examples/dac7578_sinewaves/dac7578_sinewaves.ino

![](https://cdn-learn.adafruit.com/assets/assets/000/135/371/medium800/adafruit_products_arduino_sine.png?1739834605)

Upload the sketch to your board and open up the Serial Monitor ( **Tools -\> Serial Monitor** ) at 115200 baud. You'll see the DACx578 recognized over I2C. Then, sinewaves will be output to each of the 8 channels on the DAC. You can connect these outputs to your oscilloscope to measure the frequency. In the image above, channels 0 (1 Hz) and 2 (4 Hz) on the DAC are connected to the two input channels on the oscilloscope.

# Adafruit DACx578 - 8 x Channel I2C DAC

## Arduino Docs

# Adafruit DACx578 - 8 x Channel I2C DAC

## Downloads

## Files

- [DACx578 Datasheet](https://cdn-learn.adafruit.com/assets/assets/000/135/322/original/dac7578.pdf?1739552388)
- [3D models on GitHub](https://github.com/adafruit/Adafruit_CAD_Parts/tree/main/6223%20DAC7578%20Breakout)
- [EagleCAD PCB Files on GitHub](https://github.com/adafruit/Adafruit-DAC7578-Breakout-PCB)
- [Fritzing object in the Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20DAC7578%20Breakout.fzpz)

## Schematic and Fab Print
![](https://cdn-learn.adafruit.com/assets/assets/000/135/323/medium800/adafruit_products_schem.png?1739552422)

![](https://cdn-learn.adafruit.com/assets/assets/000/135/324/medium800/adafruit_products_fab.png?1739552428 dimensions are in inches)

![](https://cdn-learn.adafruit.com/assets/assets/000/137/343/medium800/adafruit_products_6223_DAC7578_Breakout.jpg?1749070657 )


## Primary Products

### Adafruit DAC7578 Breakout - 8 x Channel 12-bit I2C DAC

[Adafruit DAC7578 Breakout - 8 x Channel 12-bit I2C DAC](https://www.adafruit.com/product/6223)
If you've ever said to yourself, "Gee, I wish I had eight 12-bit DACs that came in a single package", well I have good news. **The Adafruit DAC7578 Breakout** is the answer to your wishes! Within its little package, the DAC7578 has eight 12-bit DACs for whatever...

In Stock
[Buy Now](https://www.adafruit.com/product/6223)
[Related Guides to the Product](https://learn.adafruit.com/products/6223/guides)
### Adafruit DAC6578 Breakout - 8 x Channel 10-bit I2C DAC

[Adafruit DAC6578 Breakout - 8 x Channel 10-bit I2C DAC](https://www.adafruit.com/product/6258)
If you've ever said to yourself, "Gee, I wish I had eight 10-bit DACs that came in a single package", well I have good news. **The Adafruit DAC6578&nbsp;Breakout** is the answer to your wishes! Within its little package, the DAC6578 has eight 10-bit DACs for whatever...

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

## Featured Products

### 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 - 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 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)
### 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)
### 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

- [Talking HAL 9000 with RP2040 Prop Maker Feather](https://learn.adafruit.com/hal-9000-rp2040-prop-maker.md)
- [Pixie - the 3W Chainable LED Pixel](https://learn.adafruit.com/pixie-3-watt-smart-chainable-led-pixels.md)
- [Ultrasonic Sonar Distance Sensors](https://learn.adafruit.com/ultrasonic-sonar-distance-sensors.md)
- [CircuitPython Libraries on any Computer with FT232H](https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h.md)
- [Adafruit CH334F Mini USB Hub Breakouts](https://learn.adafruit.com/adafruit-ch334f-mini-4-port-usb-hub-breakout.md)
- [Adafruit 1.14" 240x135 Color Newxie TFT Display](https://learn.adafruit.com/adafruit-1-14-240x135-color-newxie-tft-display.md)
- [reef-pi Guide 1: Setup and Demonstration](https://learn.adafruit.com/reef-pi-installation-and-configuration.md)
- [Adafruit Feather M4 Express](https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51.md)
- [Adafruit GPIO Expander Bonnet for Raspberry Pi](https://learn.adafruit.com/gpio-expander-bonnet.md)
- [Mini Pinball Table with Gemma M0](https://learn.adafruit.com/mini-pinball-table-with-gemma-m0.md)
- [Introducing ItsyBitsy 32u4](https://learn.adafruit.com/introducting-itsy-bitsy-32u4.md)
- [Adafruit Metro Mini](https://learn.adafruit.com/adafruit-metro-mini.md)
- [Adafruit LED Arcade Button 1x4 STEMMA QT](https://learn.adafruit.com/adafruit-led-arcade-button-qt.md)
- [IoT Moon Phase Guide](https://learn.adafruit.com/moon-phase.md)
- [Adafruit HMC5883L Breakout - Triple-Axis Magnetometer Compass Sensor](https://learn.adafruit.com/adafruit-hmc5883l-breakout-triple-axis-magnetometer-compass-sensor.md)
