Pages: [1]   Go Down
Author Topic: Due and I2C  (Read 1753 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Bought a DUE a month ago. Works great EXCEPT the I2C. All my I2C projects work great on a MEGA2560 but will not work on the DUE. I tried removing the 1k pull ups on the DUE board as they are too small and the project boards I have have pull ups on them. I wired into the 3.3 v supply for the projects to make them compatable with the DUE. Nothing seems to work.
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 130
Posts: 8620
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I wired into the 3.3 v supply for the projects to make them compatable with the DUE.
Are they supposed to run off 3v3?

Any data sheets for the "projects"?

Have you connected the GNDs of all components?

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I tried both the LSM303 digital compass and TSL2561 light sensor. Both in breakout board form from adafruit.

http://www.adafruit.com/products/1120#Technical%20Details
http://www.adafruit.com/products/439

The have gotten the one wire digital sensor from dallas working as well as a GPS module working (via the UART) on the DUE and the MEGA2560.

I just can not get the I2C stuff working on the DUE. I wire it the same on the DUE as I do on the MEGA. Both boards can be powered up with 3.3 or 5v. I am using the wire.h library.

I understand from these forums that this maybe a DUE related problem?

Thanks!
Logged

White River Junction, Vermont USA
Offline Offline
Full Member
***
Karma: 5
Posts: 106
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Please post code & schematics...

-Chris
Logged

Offline Offline
Sr. Member
****
Karma: 4
Posts: 327
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

mega has 5v I2C, Due is a 3v3 board, so i assume it has 3v3 I2C.

have you checked your peripherals can run at both voltages,
 
Due does not like 5v on its IO pins,
Logged

US
Offline Offline
Full Member
***
Karma: 4
Posts: 183
Electronics are the new Legos
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To date, Adafruit has not stated their items are Due compatible.  It's on their to-do list but not done.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the suggestions.

Turns out the pull up resisters on the DUE board for the I2C pins are too small. I swapped them out for 10k and the adafruit compass and light sensor work great now!
Logged

White River Junction, Vermont USA
Offline Offline
Full Member
***
Karma: 5
Posts: 106
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, the 1k pullups on the DUE's I2C lines really are a mistake on the pcb.  They are unnecessarily too small.  I've griped about this before.

I always remove them, and use my own.

-Chris
Logged

Pages: [1]   Go Up
Jump to: