Skip to main content
Peter Paulsen
Associate
July 6, 2018
Solved

STM32F103RB i2c with Arduino IDE

  • July 6, 2018
  • 1 reply
  • 1463 views
Posted on July 06, 2018 at 16:23

Hi, guys!

Trying to connect the MCP4725 DAC to my STM32F103RB by following this tutorial:

https://learn.adafruit.com/mcp4725-12-bit-dac-tutorial/

 

Sadly I'm getting no response. I've tried with a regular Arduino UNO, where everything works as it should. 

Also tried running a i2c scanner code, which gave no results. With the Arduino the correct address is 0x60.

So do anybody know what I can do differently to get this working? Should the wiring be any different? What upload settings should I use?

Best regards,

Peter

#i2c #f103 #arduino
This topic has been closed for replies.
Best answer by Peter Paulsen
Posted on July 09, 2018 at 09:42

Fixed it! Just had to add some pull up resistors! Works fine now :)

1 reply

Peter Paulsen
Peter PaulsenAuthorAnswer
Associate
July 9, 2018
Posted on July 09, 2018 at 09:42

Fixed it! Just had to add some pull up resistors! Works fine now :)