time clock module..

i bought this for my son, but we cannot find any tutorials or anything else he needs to use it...

found this, but it's not the same..
http://combustory.com/wiki/index.php/RTC1307_-_Real_Time_Clock

thanks in advance

The Time library has good support for DS1307.

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

I would connect up SDA, SCL, 5V, and Gnd as described in that article and saw what happened.

The clocks are the same, they just look different. I have the blue one just like yours. I had as seriously bad time getting any joy from it. This was partly due to my being a newbie, but far from wholly. I believe there is a swag of confusing and out-of-date junk out there - and badly written too. Since you ask the question, I assume you two are newbies. Being a newbie puts you at the disadvantage of having the latest gear, thereby having to sort the wheat from the chaff, and quite a lot of that chaff is in the Arduino playground.

About the only decent up-to-date tutorial written for the DS1307 is here

http://bildr.org/2011/03/ds1307-arduino/

Read the first line in the code twice, indeed they write it twice.

You only need four wires. Most of the terminals on the blue board are duplicates and it doesn't matter which one you use.

There are two sketches, one for setting the clock and the other for running. You write the setting time in the first sketch and the start point is when you release the reset button. Needless to say, the two sketches can be merged if you wish, and it might be an interesting programming exercise involving serial read, but I haven't bothered. My module came running on Shanghai Time.

The Time library takes care of communication with the DS1307 for you. Highly recommended.

You have 2 chips on the I2C bus there - the DS1307, and a Atmel 24C32 EEPROM.

http://datasheets.maximintegrated.com/en/ds/DS1307.pdf

Both are addressed individually.

May I ask what is the purpose of adding the 24c32 for the ds1307 chip?

May I ask what is the purpose of adding the 24c32 for the ds1307 chip?

I have used part of the 56k of the DS1307s nv memory ok, but I guess there might be projects that need more ?

I have used part of the 56k

bytes

projectstowork1:
May I ask what is the purpose of adding the 24c32 for the ds1307 chip?

Typical data logging setup. Memory to store the data and an RTC to time the sampling.

Thanks!!

I have used part of the 56k

bytes of course :slight_smile: