External clock to be used with Arduino?

Hi!

Do you have any suggestions of external clock I could use to have time kept in Arduino? Now we are just using the delay-functions and they of course reset all the time. Some functions for date and time handling would be great!

We display results on the LCD screen.

Thanks for suggestions for vendor where to get a clock that could be readable by Arduino.

Jukka

The DS1307 will keep time and even while the Arduino is turned off, it keeps time. (will keep it for a few years)

http://www.glacialwanderer.com/hobbyrobotics/?p=12

are just using the delay-functions and they of course reset all the time

I don't understand what you mean by that.

"The DS1307 will keep time and even while the Arduino is turned off, it keeps time. (will keep it for a few years)

http://www.glacialwanderer.com/hobbyrobotics/?p=12
"

Hi, do you know is this unit supposed to be soldered to the output cables? I couldn’t see any metal on the GND etc holes that are on the board, which would make the soldering make more sense.

I tried putting some connector bars through it. Finally, the example code messed up my LCD display, even though I didn’t call any of the functions that are in there. It is strange how such a code can affect the display, if it is just functions which are not called?

So, I couldn’t make my clock work for some reason. Thanks if you have any suggestions for help.

Jukka

Hi,

So I would appreciate if somebody can inform me if I am supposed to solder to the plastic of this RTC? I don't see how to connect my cables to the RTC.

Thanks for info, Jukka

The picture you linked to here
http://www.glacialwanderer.com/hobbyrobotics/?p=12
shows solder pads for 5V, GND, SCL and SDA clearly marked.

Hi,

Sorry - I might be a bit newbie. Do you mean these, where the right ends of these red lines are?

Thanks for info. I don't see the holes on the right edge very promising to solder anything into.

Some reason this RTC messed up my LCD display. I hope reason is just bad connections, because I didn't solder yet.

Jukka

Some reason this RTC messed up my LCD display

Are you using the same pins for the RTC and LCD? That will screw thing up even if you don't call a function. It will be because the initialisation routines define what pins are inputs and outputs. What pins are you defining to use for the LCD?

I don't see the holes on the right edge very promising to solder anything into.

It looks like you are meant to plug a socket into the pins marked 5V to SDA and then connect it to the arduino, but as i can only see a small part of the board it is hard to tell.

In my picture there is all of the RTC that needs to be shown. I think it must not be so that I solder to the points directed by the red lines?

You have to connect all 4 lines to the arduino to make it work like it shows on the web page:- http://www.glacialwanderer.com/hobbyrobotics/?p=12 Not just the two you have identified with the red lines.

You can see they are using a solder less bread board to make the connection between the board and the arduino.

I don't see the holes on the right edge very promising to solder anything into.

They are not holes they are pins that stick up above the board and down below it.

You can do this by :- 1) Soldering wires onto the IC or pins on the board 2) Soldering a socket up to wires back to the arduino and plugging the socket into the row of pins on the board. 3) Using solder less breadboard like on the web page.