Go Down

Topic: Simple easy programmable muliti day alarm clock. (Read 6 times) previous topic - next topic

liudr

Last time I looked, you have not soldered on the buttons yet. Any of those buttons will stop the alarm, including the reset button.

lost_and_confused

#36
May 22, 2012, 10:38 am Last Edit: May 22, 2012, 10:50 am by lost_and_confused Reason: 1
Hang on!

I was only asking.  I didn't say I couldn't.

The switches are going on when "practical".  Because of the mechanics of their position WRT the display, etc.


Eric_R


Keep an eye with the setup see if it loses time too quickly like a few minutes or more per day. I would appreciate a picture of the underside of the board. Oh, you can buy some solder wick to help with desoldering pins. Drove me nuts trying to unsolder a row of pins before I knew solder wick or desoldering iron.


I am running the Phi_2_testing_v3 and am losing time rather quickly.  First off, my computer takes 5+ minutes to compile the code, even after i hacked the IDE to skip previously compiled files.  Secondly, the time was 5 minutes behind when I uploaded it, and when I checked back half an hour later, it was 10 minutes behind.  I don't understand.

Also, I can compile or upload the alarm clock version 5.  The IDE returns about 200 lines of errors and lots of warnings.

Any help is appreciated.

Eric_R

liudr

Eric,

10 minutes a day is a bit too much. Are you keeping the shield in doors with constant temperature? The time can only be accurate with DS1307 if the crystal is kept at constant in door temperature. The crystal oscillation frequency is a function of temperature.

Eric_R


Eric,

10 minutes a day is a bit too much. Are you keeping the shield in doors with constant temperature? The time can only be accurate with DS1307 if the crystal is kept at constant in door temperature. The crystal oscillation frequency is a function of temperature.


Yes, it is indoors all day.  I have a desk in my (finished) basement so room temperature is in the mid 60s.  I have the alarm clock uploaded and now I can set the time from the shield, meaning I can see exactly how quickly it is losing time.  I counted that for every one second the program "ticks", two real time seconds pass.  This means that after 5 minutes, the clock will be 10 minutes behind.

If I find a permanent location for this shield, and figure out how much time i is losing, can the code be easily modified to compensate for this?

Thanks,
Eric

Go Up