Pages: [1]   Go Down
Author Topic: RTC not keeping accurate time & forgetting time  (Read 1657 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello all, I'm hoping this is as simple as a flat battery. The RTC on my Adafruit Datalogger shield lost 15 minutes overnight. The shield is logging data from two thermocouple breakout boards saving the data to SD and sending it out over serial to the PC where the GoBetwino beta is logging the feed to a text file. If the Arduino is left unplugged for a day the RTC forgets the time and has to be reset. I left the datalogger running overnight as the experiment it is logging from needs to run for 30hrs and so this was a test to see if it performed. This morning it was still logging but the timestamps on the logs were 15 minutes slow.

Can anyone tell me what the cause might be & how to remedy it?

Many thanks,
Logged

fear my badger

Offline Offline
Edison Member
*
Karma: 35
Posts: 1429
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
If the Arduino is left unplugged for a day the RTC forgets the time and has to be reset
That does suggest that the RTC backup battery is flat. Check the voltage on the battery.

Pete
Logged

Where are the Nick Gammons of yesteryear?

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 71
Posts: 3540
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this something that previously worked correctly? My understanding is that the RTC should keep good time even with a dead battery, as long as power is supplied.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

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

I have an RTC module here that's always slow by exactly 30 minutes when the battery is low, no matter what time I set it to. So I would say check the battery too.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quick follow-up: The logger ran flawlessly for 60 hours over the weekend and the RTC didnt lose any time. I forgot to take a voltmeter over to that lab so I couldn't check the battery. Doh^10

Can the serial connection override the processes of the Arduino? InBetwino is really laggy and after 24 hrs it is 3hrs behind in writing to text file. Its still in beta though. I just wondered if the lag from InBetwino can feed back into the Arduino's processes. I've moved to HyperTerminal for PC-based logging to text file instead of InBetwino. No lag encountered. Splendid.

BTW, isn't HyperTerminal the most inappropriate name for such a gods-awful piece of crud program? It sounds like it should be the name of the next cutting edge mobile handset.

Thanks for all the replies, kids!
Le Scare

postscript: just checked the voltage: 3.2. Probably not a flat battery then. Odd as I thought I did a pretty good job of soldering it together. Will have a look to reassess.
« Last Edit: April 26, 2012, 10:13:01 pm by scary » Logged

fear my badger

Pages: [1]   Go Up
Jump to: