0
\$\begingroup\$

I have an MCP4725 12 bit DAC from Sparkfun and i am trying to interface it with raspberry pi 3
enter image description here

Connections :

Vcc -> 3.3V/5V of Rpi

Gnd ->Gnd of Rpi

scl and sda -> to scl and sda of rpi

out -> to DMM

and I tried to run this code: ADAFRUIT

What else i tried :
I tried to short addr pin with vcc and then with Gnd
I also tried to cut the tracks from pullups thats are given on the back side of the board Problem

Even though I tried the connections ,The circuit does not seem to work .

Questions :

1)Is it possible to interface MCP4725 with Rpi ?
2)do I need to use level shifter for I2C pins ?

\$\endgroup\$
  • \$\begingroup\$ According to your URL: 1) Yes, 2) No \$\endgroup\$ – Wesley Lee Feb 6 '17 at 8:39
  • \$\begingroup\$ What is the connection for A0. You might be missing the address part. What is theI2C address of DAC you have configured for?. You didn't mention your problem. The interfaces are fine. Interfacing is obviously possible as the link is for the same from adafruit. No level shifters are necessary. \$\endgroup\$ – Umar Feb 6 '17 at 8:39
  • \$\begingroup\$ @Umar Well, there is no A0 pin on the board that I have I just have I2C pins. \$\endgroup\$ – Mr.Sky Feb 6 '17 at 8:43
  • \$\begingroup\$ Definitely do NOT cut the tracks to the pullup resistors! You do know how i2c works, right? \$\endgroup\$ – johnny_boy Feb 6 '17 at 8:44
  • \$\begingroup\$ what is the answer for my another question? what is the I2C address of DAC? \$\endgroup\$ – Umar Feb 6 '17 at 8:45
0
\$\begingroup\$
  1. Yes, you can use MCP4725 with rpi.
  2. Yes, IF you power your MCP4725 with 5V0.
  3. The devices addresses are 0x62/0x63 for A0 = 0/1
  4. The on board pull up resistors are 4k7. You need to remove them IF you have too many other I2C devices connected.
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.