Component guide · Intermediate · 3 min read
MCP4725 12-Bit DAC Module

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The MCP4725 is a single-channel 12-bit digital-to-analog converter on I2C. It outputs a real, steady voltage from 0 V up to its supply in 4096 steps, not PWM, and can store a start-up value in its EEPROM. Use it to set a reference voltage, control a lab power supply or motor driver, or make simple waveforms. The default address is 0x60 or 0x62 depending on the board.
Key specs at a glance
- Resolution
- 12-bit (4096 steps)
- Output
- 0 V to VDD, rail to rail
- Supply
- 2.7 to 5.5 V
- Interface
- I2C up to 3.4 MHz
- Address
- 0x60 to 0x63 (A0 pin and part marking)
- EEPROM
- Stores the power-on output value
What the MCP4725 module is
An Arduino's analogWrite() gives PWM, a fast on-off signal, which needs filtering to become a voltage. The MCP4725 gives a clean DC level directly.
The output can drive only a few milliamps, so for anything more than a signal input add an op-amp buffer.
MCP4725 module pinout
The pins on the MCP4725 module and what each one does.
| Pin | Function |
|---|---|
| VCC | Supply, 2.7 to 5.5 V (also the full-scale voltage) |
| GND | Ground |
| SDA / SCL | I2C data and clock |
| A0 | Address select (GND or VCC) |
| OUT / VOUT | Analog output |
- VCC
- Supply, 2.7 to 5.5 V (also the full-scale voltage)
- GND
- Ground
- SDA / SCL
- I2C data and clock
- A0
- Address select (GND or VCC)
- OUT / VOUT
- Analog output
Wiring the MCP4725 module
The output range follows VCC, so the supply should be clean and stable. Run an I2C scanner to find your board's address.
| MCP4725 module pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5V | 3V3 |
| GND | GND | GND |
| SDA | A4 | GPIO 21 |
| SCL | A5 | GPIO 22 |
| OUT | To the circuit or a meter | To the circuit or a meter |
- VCC
- Arduino Uno:
- 5V
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- SDA
- Arduino Uno:
- A4
- ESP32:
- GPIO 21
- SCL
- Arduino Uno:
- A5
- ESP32:
- GPIO 22
- OUT
- Arduino Uno:
- To the circuit or a meter
- ESP32:
- To the circuit or a meter
Example code
setVoltage(value, true) also writes the value to EEPROM so it is restored at power-on. Do not write EEPROM in a fast loop; it has a limited number of writes.
#include <Adafruit_MCP4725.h>
Adafruit_MCP4725 dac;
void setup() {
Serial.begin(115200);
if (!dac.begin(0x60)) dac.begin(0x62); // try both common addresses
}
void loop() {
for (int v = 0; v < 4096; v += 16) dac.setVoltage(v, false);
for (int v = 4095; v >= 0; v -= 16) dac.setVoltage(v, false);
}Setup and tuning
with an I2C scanner first.
noise on VCC appears on the output; a 10 µF capacitor across VCC helps.
with an op-amp to drive more than a few mA.
use 400 kHz I2C (Wire.setClock(400000)) for faster waveforms.
What you need
Shop this list5 of 6 found in our store · ₹770
MCP4725 12-Bit I2C DAC Module: the part this guide coversMCP4725 12-Bit I2C DAC Module₹107- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
LM358 dual op-amp: to buffer the outputLM358 Dual Op-Amp IC (DIP-8)₹48Closest match, check the specs
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- PCF8591 ADC/DAC: 8-bit output plus four 8-bit inputs.
- ADC and DAC modules: other converter boards.
- Op-amps: buffering and scaling the output.
Common mistakes to avoid
- Expecting it to drive a motor or LED strip directly; it is a signal output.
- Writing to EEPROM in every loop and wearing it out.
- Using the wrong I2C address (0x60 vs 0x62).
- Powering it from a noisy USB rail and seeing ripple on the output.
Frequently asked questions
What is the MCP4725 I2C address?
0x60 or 0x62 on most boards, plus one when A0 is HIGH.
Is the output true analog?
Yes, a steady DC level, not PWM.
How much current can the output give?
A few mA. Buffer it with an op-amp for more.
Can it make audio?
Simple tones yes, but I2C limits the speed; use an I2S DAC for music.
What does the EEPROM do?
It stores the value the output starts at after power-on.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

