ArduinoGeneral

DS1307

userHead gerald7 2012-04-05 02:11:48 4934 Views4 Replies
hi

Im trying to set my clock for [b]DS1307[/b]. Im using Arduino 1.0 with libraries downloaded from [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]

*note [i]Sample code, library, and wiring diagram (RAR file)[/i] is referring to [b]DFR0151[/b], not DS1307.

When testing the sample codes provided :
[url=http://www.dfrobot.com/image/data/DFR0151/DS1307%20library%20v1.0(DFRobot).rar]http://www.dfrobot.com/image/data/DFR0151/DS1307%20library%20v1.0(DFRobot).rar[/url]
DS1307_Monitor.pde
- stays stuck at DS1307 Monitor (enable LF/CR, type 'h' for help)

I2CScanner.pde
>I2CScanner ready!
>Starting scanning of I2C bus from 1 to 127...
>done

DS1307_Test.pde
>165:165:85 165-165-2165 MON seconds since 1.1.2000:1076433489 MEZ=0, MESZ=1 : 0 - Address in NV-RAM is: 0 - Clock was set!

I'm at a lost on how to set up the clock for this module. Can someone point me in the right direction? I have been sitting here searching for a whole day, looking for answers.

Thanks

Gerald
2012-04-19 19:53:34 hahaa still new at this. Need to check connections properly next time! :) userHeadPic gerald7
2012-04-06 03:49:03 Damnd Wires!!


Glad you got it working!
userHeadPic Hector
2012-04-06 02:53:36 turns out it was a faulty connection!  :-[ all solved! userHeadPic gerald7
2012-04-05 09:09:37 So I finally got DS1307_Test.pde to work but it set the date 2 days ahead of time..  :o my DS1307 is from the future. ..

userHeadPic gerald7