DS3231 RTC Code or Hardware Problem?

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Nofourk
 
Posts: 3
Joined: Sun Jan 01, 2017 11:56 pm

DS3231 RTC Code or Hardware Problem?

Post by Nofourk »

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?

User avatar
Franklin97355
 
Posts: 23903
Joined: Mon Apr 21, 2008 2:33 pm

Re: DS3231 RTC Code or Hardware Problem?

Post by Franklin97355 »

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?

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

Re: DS3231 RTC Code or Hardware Problem?

Post by Nofourk »

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 3280 times
2017-01-01 22.58.40.jpg
2017-01-01 22.58.40.jpg (898.15 KiB) Viewed 3280 times
2017-01-01 23.07.06.jpg
2017-01-01 23.07.06.jpg (448.64 KiB) Viewed 3280 times
Two more pix coming.

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

Re: DS3231 RTC Code or Hardware Problem?

Post by Nofourk »

2017-01-01 23.07.38.jpg
2017-01-01 23.07.38.jpg (644.31 KiB) Viewed 3280 times
2017-01-01 23.55.12.jpg
2017-01-01 23.55.12.jpg (946.33 KiB) Viewed 3280 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: DS3231 RTC Code or Hardware Problem?

Post by adafruit_support_rick »

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.

User avatar
Franklin97355
 
Posts: 23903
Joined: Mon Apr 21, 2008 2:33 pm

Re: DS3231 RTC Code or Hardware Problem?

Post by Franklin97355 »

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

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

Re: DS3231 RTC Code or Hardware Problem?

Post by hirad »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”