Loading...
Pages: [1]   Go Down
Author Topic: time clock module..  (Read 388 times)
0 Members and 1 Guest are viewing this topic.
Rhode Island - USA
Offline Offline
Full Member
***
Karma: 0
Posts: 132
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Edison Member
*
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Time library has good support for DS1307.

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

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 219
Posts: 13896
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Dee Why NSW
Offline Offline
Full Member
***
Karma: 5
Posts: 206
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: January 01, 2013, 07:32:21 pm by NickPyner » Logged

Offline Offline
Edison Member
*
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 249
Posts: 16566
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

http://datasheets.maximintegrated.com/en/ds/DS1307.pdf
http://www.atmel.com/Images/doc0336.pdf

Both are addressed individually.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 17
Posts: 1104
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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 ?
Logged

We live in the era of the smart phones and stupid people.

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have used part of the 56k
bytes
Logged

Pete, it's a fool looks for logic in the chambers of the human heart.

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 43
Posts: 2518
"We're a proud service of the Lost Electricity Reclamation Agency"
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Get the infamous "One Million Ohms" board at tINDIE.com: http://tinyurl.com/BuyMohms

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks!!
Logged

Cape Town South Africa
Offline Offline
Edison Member
*
Karma: 17
Posts: 1104
A newbie with loads of posts, and still so much to learn !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Quote
I have used part of the 56k

bytes of course :-)
Logged

We live in the era of the smart phones and stupid people.

Pages: [1]   Go Up
Print
 
Jump to: