# MCP4725 DAC instructions

**URL:** <https://community.sparkfun.com/t/mcp4725-dac-instructions/46601>\
**Category:** MicroMod\
**Tags:** carrier\
**Created:** [December 8, 2023, 11:53am UTC](https://community.sparkfun.com/t/mcp4725-dac-instructions/46601 "2023-12-08T11:53:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mobiuss](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@Mobiuss](https://community.sparkfun.com/u/Mobiuss)\
**Post date:** [December 8, 2023, 11:53am UTC](https://community.sparkfun.com/t/mcp4725-dac-instructions/46601/1 "2023-12-08T11:53:11Z")

</div>

Hi, the Sparkfun hookup instructions for the MCP4725 DAC show how to unsolder or cut the solder pads to get different addresses if you have more than 1 DAC stacked up, fine, but no clue as to what the addresses should be. So far whatever address I give each DAC, they all get the same signal. Also you can’t have 3 arrays of 512 points, no enough memory.

---

<div class="post-metadata">

**Author:** ![Mobiuss](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@Mobiuss](https://community.sparkfun.com/u/Mobiuss)\
**Post date:** [December 8, 2023, 1:10pm UTC](https://community.sparkfun.com/t/mcp4725-dac-instructions/46601/2 "2023-12-08T13:10:31Z")

</div>

Thanks liaifat85, yes, but your link is for the chip alone, not on a Sparkfun board, so doesn’t talk about the solder pads. Yes it has the device address and address bits in the first byte Figure 6.2, so how is this affected by the solder pads? Or, how do you change the address bits A0 A1 and A2?

So far I have a sine wave with 36 points, but the negative values don’t go negative on my scope, they just go from max positive to zero and back up. So a negative looking half of sine wave is all above the time axis, not below.

---

<div class="post-metadata">

**Author:** ![YellowDog](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/yellowdog/32/1782_2.png) [@YellowDog](https://community.sparkfun.com/u/YellowDog)\
**Post date:** [December 8, 2023, 3:50pm UTC](https://community.sparkfun.com/t/mcp4725-dac-instructions/46601/3 "2023-12-08T15:50:55Z")

</div>

Try putting a capacitor in line with the output and connect the scope past the cap.

---

<div class="post-metadata">

**Author:** ![Mobiuss](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@Mobiuss](https://community.sparkfun.com/u/Mobiuss)\
**Post date:** [December 10, 2023, 5:09pm UTC](https://community.sparkfun.com/t/mcp4725-dac-instructions/46601/4 "2023-12-10T17:09:31Z")

</div>

That makes the whole waveform centred about zero, but waveform has the same shape! Doesn’t move the negative side of sine wave into negative voltage.

---

<div class="post-metadata">

**Author:** ![YellowDog](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/yellowdog/32/1782_2.png) [@YellowDog](https://community.sparkfun.com/u/YellowDog)\
**Post date:** [December 10, 2023, 6:43pm UTC](https://community.sparkfun.com/t/mcp4725-dac-instructions/46601/5 "2023-12-10T18:43:20Z")

</div>

The MCP4725 has a single positive power supply so it can not generate negative voltage. (Just 0 to VCC)

You’ll need to feed it’s output into a opamp with positive and negative power rails to generate a negative voltage on the bottom half of the sine wave.

---

<div class="post-metadata">

**Author:** ![Mobiuss](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@Mobiuss](https://community.sparkfun.com/u/Mobiuss)\
**Post date:** [December 11, 2023, 10:08pm UTC](https://community.sparkfun.com/t/mcp4725-dac-instructions/46601/6 "2023-12-11T22:08:17Z")

</div>

Yes thanks YellowDog, that makes sense now. Actually I think I have sorted out this problem; I don’t actually have to generate the negative side of sine wave after all, the 6x MOSFET switches will take care of it, after I’ve done a bit of soldering.

However the opamp option could be useful elsewhere, thanks.

---

<div class="post-metadata">

**Author:** ![YellowDog](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/yellowdog/32/1782_2.png) [@YellowDog](https://community.sparkfun.com/u/YellowDog)\
**Post date:** [December 11, 2023, 11:36pm UTC](https://community.sparkfun.com/t/mcp4725-dac-instructions/46601/7 "2023-12-11T23:36:10Z")

</div>

Glad I could help!
