DUE DS1307 RTC Read Error | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
DUE DS1307 RTC Read Error
July 11, 2016
6:26 am
Avatar
scadao
Member
Forum Posts: 21
Member Since:
June 5, 2015
sp_UserOfflineSmall Offline

Development environment:
Windows 7 SP1; LabVIEW 2014 SP1; Arduino IDE V1.6.9; Compiler V1.0.0.21

I Compile download and run "DS1307 Real Time Clock.vi" successfully with Arduino UNO. I modify the VI to I2C1 with Arduino DUE, as shown below. Where this error?

RTC-Port-1.PNGImage Enlarger

RTC-VI.pngImage Enlarger

Attachments
July 11, 2016
4:35 pm
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Assuming you are using the datalogging shield as shown in the example?  Be aware that you probably cannot use is as is with the Due.  The Due uses 3.3V logic (specifically for I2C).  The Datalogging shield has I2C pullups to 5V.  This is not a good thing.  Take a look at the datalogging shield schematic here.  There is a note here about compatibility with the Due.

Also, just to make sure the software is accessing I2C 1, did you probe those pins WITHOUT the shield connected to see if you are getting data?  I would do that first just to make sure the correct I2C port is getting accessed.

July 12, 2016
3:37 am
Avatar
scadao
Member
Forum Posts: 21
Member Since:
June 5, 2015
sp_UserOfflineSmall Offline

Steffan said
Assuming you are using the datalogging shield as shown in the example?  Be aware that you probably cannot use is as is with the Due.  The Due uses 3.3V logic (specifically for I2C).  The Datalogging shield has I2C pullups to 5V.  This is not a good thing.  Take a look at the datalogging shield schematic here.  There is a note here about compatibility with the Due.

Also, just to make sure the software is accessing I2C 1, did you probe those pins WITHOUT the shield connected to see if you are getting data?  I would do that first just to make sure the correct I2C port is getting accessed.

Thank Steffan for your reply!

I kept reading and writing I2C with the Arduino UNO board, WITHOUT the shield connected. I can observe waveform through the oscilloscope. But, I cannot observe waveform on I2C 0 or I2C 1 with the Arduino DUE board.

July 12, 2016
5:11 am
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Ok, it is likely a hardware issue.  I just noticed the datalogger shield we have does NOT have pull-ups on the I2C lines on the shield.  And the Due does NOT have pullups on I2C1 (only I2C0 on pins 20 and 21).  So it is likely you dont have pullups connected here.  You can also download a DS1307 library and example in the Arduino IDE to make sure your hardware works with that first before moving to the ACC4LV.

July 12, 2016
1:38 pm
Avatar
scadao
Member
Forum Posts: 21
Member Since:
June 5, 2015
sp_UserOfflineSmall Offline

Thank Steffan!

Now my Arduino DUE I2C RTC Communication Success. Because DUE board A4 and A5 pins are not connected to I2C. I cut off A4 and A5 stitch of the datalogger shield. So the I2C bus of Arduino DUE is not connected to I2C bus of the datalogger shield. I soldered the two cables of the Shield's SCL1 and SDA1. Furthermore, the two 2.2 Kohm I2C pullup resistor power 5V instead of 3.3V.

RTC-OK.PNGImage Enlarger

July 12, 2016
5:24 pm
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Ok great to hear.  Thanks for posting the solution on the forum.

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
1 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18

RTSLVU: 15

Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Travlissah, viktorIcera, HowardClouG, Dianecet, Produktnaodchudzaniex

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89