Loading...
Pages: [1]   Go Down
Author Topic: Arduino Due RTC Library  (Read 1745 times)
0 Members and 1 Guest are viewing this topic.
Germany
Offline Offline
Full Member
***
Karma: 10
Posts: 180
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi folks,

there are my first "final" release of the RTC Library for the Arduino Due.

2 examples included.

I would call it final for the moment.

And on github: https://github.com/MarkusLange/Arduino-Due-RTC-Library

Have fun

Markus
« Last Edit: January 23, 2013, 04:13:45 am by Markus_L811 » Logged

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

Dear Markus,

I've tried to use the RTC library. At first I tried to check the examples to check them  on my arduino, but when verifying, many errors came through.  Is like most of the variables on rtc_clock.cpp are undeclared.

Did you had this problem?

Regards, Arodrisa
Logged

USA, FL
Offline Offline
God Member
*****
Karma: 11
Posts: 584
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear Markus,

I've tried to use the RTC library. At first I tried to check the examples to check them  on my arduino, but when verifying, many errors came through.  Is like most of the variables on rtc_clock.cpp are undeclared.

Did you had this problem?

Regards, Arodrisa

Sounds like you installed the library in the wrong location.
Logged

//LiNK

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

I haven't received my due yet but many thanks for the effort.
Logged

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

Dear Markus,

I've tried to use the RTC library. At first I tried to check the examples to check them  on my arduino, but when verifying, many errors came through.  Is like most of the variables on rtc_clock.cpp are undeclared.

Did you had this problem?

Regards, Arodrisa

Sounds like you installed the library in the wrong location.

Can you please tell me where is the right location in Windows? I tried installing it like I do with other arduino libraries, but to no avail I come up with a long list of "" not declared errors when I try to compile the examples. My friend running archlinux compiled the examples no problem.

My mind = boggled...
Logged

USA, FL
Offline Offline
God Member
*****
Karma: 11
Posts: 584
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, there's 2 places you can install them:

In your sketchbook:  C:\Users\[your computer name]\Documents\Arduino\libraries
Arduino Install:  C:\[install path]\arduino-1.5.2\libraries
Logged

//LiNK

Earth
Offline Offline
Full Member
***
Karma: 5
Posts: 236
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

One thing I noticed when using this library: Instantiating the rtc object seems to hang the program for about 2 seconds. This didn't work for me in the project I'm working on because it needed to start processing input right away. I didn't trace down why it took so long. Is that normal to take 2 seconds?
Logged

Germany
Offline Offline
Full Member
***
Karma: 10
Posts: 180
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

One thing I noticed when using this library: Instantiating the rtc object seems to hang the program for about 2 seconds. This didn't work for me in the project I'm working on because it needed to start processing input right away. I didn't trace down why it took so long. Is that normal to take 2 seconds?

If you give me a hint may I can help is it this part?

Code:
// Select the Slowclock source
//RTC_clock rtc_clock(RC);
RTC_clock rtc_clock(XTAL);

or does it came from this line?

Code:
rtc_clock.init();

By the first part it happend about the external xtal to swing-in
Logged

Earth
Offline Offline
Full Member
***
Karma: 5
Posts: 236
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It seems to happen at this line:

RTC_clock rtc_clock(XTAL);

You're saying that the delay is waiting for the crystal to settle? Shouldn't using the crystal take less than 2 seconds?
Logged

Germany
Offline Offline
Full Member
***
Karma: 10
Posts: 180
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It seems to happen at this line:

RTC_clock rtc_clock(XTAL);

You're saying that the delay is waiting for the crystal to settle? Shouldn't using the crystal take less than 2 seconds?

In my words NOOOOOOOO!!!

The internal RC is extremly unstable about counting on time he is too slow. You will loose time.

May use the Teensy 3 who sets faster up in combination with the time lib
« Last Edit: May 14, 2013, 05:52:21 pm by Markus_L811 » Logged

Pages: [1]   Go Up
Print
 
Jump to: