Go Down

Topic: RTClib DS1307 with Arduino (Read 7 times) previous topic - next topic

kcore

I was able to use the DS1307 with the RTClib from jeelabs, the examples work no problem once you get the DS1307 hooked up correctly - I don't have the breakout board from Adafruit, I just have the chip and a 32 mhz oscillator and a breadboard.  Works like a champ.

Here is the link to the RTClib I used on the Due.

https://github.com/adafruit/RTClib

jake1981

I've combined Henning Karlsen's library with RTClib and fixed day of week calculation as well. Library does not require wire.h and works just like RTClib except, you can set alternative sda and scl pins if you like.
Library is available here: https://github.com/oskarirauta/RTCdue

grapesmuggler

When I run the example DS1307, my serial window shows this:

£ OpÂd?z'B÷BKQ ]"OÿÂd?z'B÷BKS"]"_ÿÂd??+ÆWÆã ] Oÿ£ MÞ*Q>¡:I??4ð£ Yí"ð?V« \BæÀ?£ Yí??VBECµ ûJËâDéóZÕ(
«ãQ Y OÿÂd?;ÄB÷BKS]Mÿ?4=Q'BcbK2ñ¡þâDÙ3+?fWÒã Y [ÿÂdAûN#*
á$ïÈ¡
©äÂdA;N#
ä$ïÈ¡
©ä¢D¡özÑ<á?4Y¢KùÂdáóZÅ(
á4ï?¡

ä

Any ideas what might be going on?

SomeRandomGuy

The example is using a very high serial baud rate (115200). You probably don't have your serial monitor set to that high of a baud rate. (its a dropdown menu in the bottom right hand corner.

Hope that helps!
SRG

Go Up