0

DS3231 RTC Code or Hardware Problem?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

DS3231 RTC Code or Hardware Problem?

by Nofourk on Mon Jan 02, 2017 12:04 am

I purchased a DS3231 RTC last week. Something is not right.

Tried using with Arduino UNO and Arduino MEGA 2360 with the same results. Installed the fork of JeeLab's excellent RTC library RTClib and used the example sketch shown on the product page.

Using with the battery I bought at the same time. Battery checks 3.3v. I cleaned the battery and the battery holder on the clock chip.

Attempting to troubleshoot I added one line of code at the start of the main loop.

Every time I start the Arduino I get this result on serial monitor:

RTC lost power, lets set the time!
This is in the main loop
2165/165/165 (Friday) 165:165:85
since midnight 1/1/1970 = 1551397585s = 17955d
now + 7d + 30s: 2019/3/8 12:16:31

This is in the main loop
2165/165/165 (Friday) 165:165:85
since midnight 1/1/1970 = 1551397585s = 17955d
now + 7d + 30s: 2019/3/8 12:16:31

This is in the main loop
2165/165/165 (Friday) 165:165:85
since midnight 1/1/1970 = 1551397585s = 17955d
now + 7d + 30s: 2019/3/8 12:16:31

This is in the main loop
2165/165/165 (Friday) 165:165:85
since midnight 1/1/1970 = 1551397585s = 17955d
now + 7d + 30s: 2019/3/8 12:16:31

this repeats forever.

Now what is interesting is I get the same results running the code even if I pull the clock from the setup and use the bare Arduino board!

Can anyone suggest what might be going on?

Nofourk
 
Posts: 3
Joined: Sun Jan 01, 2017 11:56 pm

Re: DS3231 RTC Code or Hardware Problem?

by franklin97355 on Mon Jan 02, 2017 12:33 am

Could you post large (less than 1meg), clear, detailed pictures of both sides of your board showing any soldering you have done and the connections to it?

franklin97355
 
Posts: 20257
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: DS3231 RTC Code or Hardware Problem?

by Nofourk on Mon Jan 02, 2017 2:07 am

I hope this helps. One photo shows Vin and Gnd solder pretty close but I detect no bridge and infinite resistance between the pins.
2017-01-01 20.50.10.jpg
2017-01-01 20.50.10.jpg (704.84 KiB) Viewed 846 times

2017-01-01 22.58.40.jpg
2017-01-01 22.58.40.jpg (898.15 KiB) Viewed 846 times

2017-01-01 23.07.06.jpg
2017-01-01 23.07.06.jpg (448.64 KiB) Viewed 846 times


Two more pix coming.

Nofourk
 
Posts: 3
Joined: Sun Jan 01, 2017 11:56 pm

Re: DS3231 RTC Code or Hardware Problem?

by Nofourk on Mon Jan 02, 2017 2:08 am

2017-01-01 23.07.38.jpg
2017-01-01 23.07.38.jpg (644.31 KiB) Viewed 846 times

2017-01-01 23.55.12.jpg
2017-01-01 23.55.12.jpg (946.33 KiB) Viewed 846 times

Nofourk
 
Posts: 3
Joined: Sun Jan 01, 2017 11:56 pm

Re: DS3231 RTC Code or Hardware Problem?

by adafruit_support_rick on Thu Jan 05, 2017 9:52 am

We see this exact problem now and then. It is always a problem with wiring or soldering. Your soldering looks good, but you may have a bad jumper wire. Please try some different jumpers, and try some different breadboard locations.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: DS3231 RTC Code or Hardware Problem?

by franklin97355 on Thu Jan 05, 2017 2:15 pm

Try running your power jumpers directly from the Arduino to the board.

franklin97355
 
Posts: 20257
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: DS3231 RTC Code or Hardware Problem?

by hirad on Wed Jan 23, 2019 7:54 am

i had the same promlem in DS1307
Serial monitor output 165/165
change cristal 32kH
solve my problem

hirad
 
Posts: 1
Joined: Wed Jan 23, 2019 7:50 am

Please be positive and constructive with your questions and comments.