# Having some trouble with I2C MCP4725

**URL:** https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944
**Category:** Hardware Interfacing Questions
**Created:** [May 12, 2020, 8:31pm UTC](https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944 "2020-05-12T20:31:25Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![magnaride](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@magnaride](https://forum.xod.io/u/magnaride)
#### Post date: [May 12, 2020, 8:31pm UTC](https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944/1 "2020-05-12T20:31:25Z")

</div>

hey Folks having some issues with

e/mcp4725@0.2.0

It works fine with just one Sparkfun MCP4725 Breakout but when I add a second one with the A0 pin going to High and resistors removed it stops working entirely.

both work Fine on their own with their own addresses set to 0x60 and 0x61 but not together…

[mcp4725-throttle-test.xodball](https://forum.xod.io/uploads/short-url/ujoF78XiLwgiJ4oIvkYkpjd5CtT.xodball) (3.9 KB)

---

<div class="post-metadata">

### Author: ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)
#### Post date: [May 12, 2020, 8:37pm UTC](https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944/2 "2020-05-12T20:37:31Z")

</div>

When you say “resistors removed”, is that resistors on I2C pins? Did you remove them from both boards, or just the board in the middle of the I2C chain? If resistors are needed for single board, they will still be needed on the last board in the I2C chain.

---

<div class="post-metadata">

### Author: ![magnaride](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@magnaride](https://forum.xod.io/u/magnaride)
#### Post date: [May 12, 2020, 8:39pm UTC](https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944/3 "2020-05-12T20:39:13Z")

</div>

correct Resistors were removed from the I2C on one board, does the board with the resistors have to be physically at the end of the circuit?

---

<div class="post-metadata">

### Author: ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)
#### Post date: [May 12, 2020, 9:51pm UTC](https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944/4 "2020-05-12T21:51:04Z")

</div>

Hi, I really don’t know if this can work, but you could try

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/3/3e4108e25053321b825d2179bc3bf88c0431c310.png)

---

<div class="post-metadata">

### Author: ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)
#### Post date: [May 13, 2020, 12:35am UTC](https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944/5 "2020-05-13T00:35:38Z")

</div>

Yes, resistors should be at the end of the circuit.

---

<div class="post-metadata">

### Author: ![magnaride](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@magnaride](https://forum.xod.io/u/magnaride)
#### Post date: [May 13, 2020, 12:11pm UTC](https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944/6 "2020-05-13T12:11:25Z")

</div>

Ok, So the Defer works, But it seems I have some possible noise as the signals are not consistent.

the MCP4725 Nodes flash red every so often.

I added 330ohm resistors in series between the 2 breakout boards on the SDA and SCL lines and it seems to have calmed it down abit but its not nearly as responsive as i was hoping it would be

---

<div class="post-metadata">

### Author: ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)
#### Post date: [May 13, 2020, 12:42pm UTC](https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944/7 "2020-05-13T12:42:14Z")

</div>

MCP4725 nodes update when VAL changes.

But when both are at A1, both use the bus at the same time and it is blocked, so the defer delays one node.

Now A0 and A2 readings are in loop, it could update every a set time.

Can also set a time to A1, instead of a loop, you can use clock or throttle node.

---

<div class="post-metadata">

### Author: ![magnaride](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@magnaride](https://forum.xod.io/u/magnaride)
#### Post date: [May 13, 2020, 6:48pm UTC](https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944/8 "2020-05-13T18:48:57Z")

</div>

Thanks a bunch! the Clock Node on A1 cleared everything up immediately! I guess it was sampling too fast.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)
#### Post date: [May 15, 2020, 6:49pm UTC](https://forum.xod.io/t/having-some-trouble-with-i2c-mcp4725/3944/9 "2020-05-15T18:49:42Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
