Jump to content
I2Cdevlib Forums
xchg-ca

Help needed to run library under Arduino Due.

Recommended Posts

Help needed to run library under Arduino Due.

 

Trying to build it, it seems to build only when I comment TWBR, but in this case I2C doesn’t work.

So  might be this is question more like how to set up I2C on Due?

Share this post


Link to post
Share on other sites

Hi all,

 

TWBR is not my issue as I use Wire.setClock(400000). Code worked fine in Uno and Mega, but have been struggling the last days with no joy at all. My Due is an original one and even tried pull-up resistors though they shouldn't be needed in standard SDA/SCL. It just does not connect. I2C explorer utility does not work either. Any clue will be highly appreciated.

Share this post


Link to post
Share on other sites

Shame on me  :wacko:  :wacko:  :wacko: Beginner's mistake!!!

 

My Due has the pin headers labeled. I attached MP5060 to the first SCL/SDA pair I saw, assuming that SCL1/SDA1 (that I intend to use in the future, would be somewhere else. Nope. SCL/SDA are actually SCL1/SDA1: SCL/SDA are labeled as 21SCL and 20SDA. PCB shows the proper labeling. FIXED!! Sorry for bothering with this silly mistake, but for sure I've not been the first one, and not gonna be the last, either  :D .

Share this post


Link to post
Share on other sites

Well... Bright side was bringing Wire to work. bit I'm failing miserably with Wire1. I can't even see the clock signal in SCL. I'getting some new level converters in a few days, but I suspect more from the soft than from the hard side. Any advise? Usual checks done: wiring, pull-up Rs, GND links,...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×