The new Raspberry Pi B Model B+ is here - Pick one up in the store and check our detailed guide!

RTClib (Chronodot lib) update suggestions

by MrAlvin on Wed Mar 07, 2012 5:35 pm

At my local hackerspace (Labitat.dk) I have invited people to help in the preparation of an Arduino Weekend Workshop, so for a few months a few of us have been doing Arduino stuff every Thursday.
Some weeks ago we looked at RTC chips, and someone brought the Chronodot to my attention. What a delightful revelation that was. And then I discovered the Adafruit RTClib on github, and the compile issues about Arduino 1.0 and <1.0, and I saw how different people had worked on adding functionality to the RTClib on github.

I actually do not know much about C or C++ programming, or GIT for that matter, but I love the Arduino Concept platform and open source, and I wanted easy access to all the functionality that has been revealed to me over the past few weeks about RTC chips, so I have merged all the information I have found into an RTClib on github, and thought I would share it with the rest of you.

So have a look at https://github.com/MrAlvin/RTClib


Comments, suggestions and improvement ideas are very welcome.


/MrAlvin
Last edited by MrAlvin on Thu Mar 08, 2012 4:23 am, edited 1 time in total.
MrAlvin
 
Posts: 4
Joined: Mon Apr 11, 2011 3:25 am

Re: RTClib (Chronodot lib) update suggestions

by macegr on Wed Mar 07, 2012 11:59 pm

Library looks great, thanks!

Also, the Arduino Time Library works great with the ChronoDot, no modification necessary...just treat it as a DS1307.

http://arduino.cc/playground/Code/Time

Here's a simple project I did using the ChronoDot and the Time library: http://www.macetech.com/blog/node/115
macetech LLC - http://www.macetech.com
User avatar
macegr
 
Posts: 288
Joined: Fri Apr 04, 2008 3:46 pm

Re: RTClib (Chronodot lib) update suggestions

by MrAlvin on Thu Mar 08, 2012 4:39 am

macegr wrote:Library looks great, thanks!

Also, the Arduino Time Library works great with the ChronoDot, no modification necessary...just treat it as a DS1307.

http://arduino.cc/playground/Code/Time

Here's a simple project I did using the ChronoDot and the Time library: http://www.macetech.com/blog/node/115


Arduino Playground wrote:"example sketches illustrating how similar sketch code can be used with: a Real Time Clock,Internet NTP time service, GPS time data, and Serial time messages from a computer"


AWESOME! Thanks, I'll be sure to look at integrating the different time keeping options.
MrAlvin
 
Posts: 4
Joined: Mon Apr 11, 2011 3:25 am

Re: RTClib (Chronodot lib) update suggestions

by Dan Malec on Tue Mar 13, 2012 6:58 am

The library is looking nice :)

I've updated my pull request to adafruit/RTClib (https://github.com/adafruit/RTClib/pull/11) with a small bugfix and some functions to access the DS1307 SQW pin. If you are interested in the changes, would you rather handle the merge or should I try and open a pull request against your repo as well?
User avatar
Dan Malec
 
Posts: 13
Joined: Fri Nov 18, 2011 2:53 pm

Re: RTClib (Chronodot lib) update suggestions

by MrAlvin on Sun Apr 15, 2012 8:31 am

Hi Dan Malec,

I am _always_ interested in bug fixes 8)

Please make a pull request towards my fork.


[edit] hmm.... only just saw the "send me an email on reply" option, so I should now be able to follow this thread in a more timely manner.
MrAlvin
 
Posts: 4
Joined: Mon Apr 11, 2011 3:25 am