Forum >Real Time Clock Module (DS1307) help
ArduinoGeneral

Real Time Clock Module (DS1307) help

userHead kmcnasty 2011-12-27 03:48:05 5692 Views2 Replies
Hello All,

Have recently started playing with arduino and a few projects in mind just learning some of the basics before they come together :D.

I am having issues interfacing with the Real Time Clock Module (DS1307) on both my Arduino Mega and 2009.

I have connected the module as per the instructions included on teh product page listed below. On the mega i did originally have the SDA and SCL connceted to pins SDA 20 and SCL 21 but have since switched them to SDA to analog 4 and SCL to analog 5 as the diagram advises.

[url=http://www.dfrobot.com/index.php?route=product/product&filter_name=time&product_id=511]http://www.dfrobot.com/index.php?route=product/product&filter_name=time&product_id=511[/url]

If i use the included DS1307 example(downloaded from DFrobot) it reads as "0 0 0 0 0 0 2000" and does not count up.

If i use the the TimeRTC as apart of the time library downloaded from arduino.cc i get "0:00:12 31 12 1999
" it does count up but resets evertime the serial monitor is started or the board is reset. I assume this is not actually running from the module and is the default time suppled by the Mega.

I am using un soldered male headers to connect the RTC on my breadboad i am starting to think this may be the issue but want to avoid soldering at this time. If you feel this should be my first step i will do so.

Other than that i am unsure what the problem is can somone maybe provide me with a few suggestions to troubleshoot this.

I have used a multimeter on the battery to make sure it has charge.

2011-12-27 18:25:06 Hey Kmcnasty,


Yeah, for testing purposes if you do not want to solder you should place the module at an angle and put a bit of pressure on it. Its still not completely stable and you do risk some faulty operation but it will get you through for testing.


As for soldering, I suck too. The best thing I can recommend is get some good flux, lots of small (Cheap) components and practice!
userHeadPic Hector
2011-12-27 05:34:29 Resolved - it seemed to be an issue with the contact on teh pcb headers - i put the board on at an angle and it all started workign fine. Now to attempt some soldering which i suck at :D userHeadPic kmcnasty