[SOLVED] DS1307 RTC does not keep time.

description: ds1307 does not keep time after left unpowered (resets to 0/0/0)

how to replicate: leave module unpowered without/with dead battery.

method: 1. tried to replace battery with new one, did not work
2. tried to flip battery polarity, did not work
3, soldered wires to CR2032, wired CR2032 to BAT & adjacent VCC pin, worked
4, added 18650 in series with 3v linear regulator & logic circuit (if 18650 < 3v switch to CR2032) as failsafe
(4 can also be used to disable 18650 cell and prevent overdischarge)

reason for post: These forums were useless with my past issues so here you go.

anonymous_6669:
description: ds1307 does not keep time after left unpowered (resets to 0/0/0)

Pretty obvious.

how to replicate: leave module unpowered without/with dead battery.

Still obvious.

method:

  1. tried to replace battery with new one, did not work

Yep it would need to be reset

  1. tried to flip battery polarity, did not work

Well that is not the best idea !

3, soldered wires to CR2032, wired CR2032 to BAT & adjacent VCC pin, worked

Again not the best idea to solder batteries but hey ho.

4, added 18650 in series with 3v linear regulator & logic circuit (if 18650 < 3v switch to CR2032) as failsafe
(4 can also be used to disable 18650 cell and prevent overdischarge)

I cannot wait for the next instalment of this saga.

reason for post: These forums were useless with my past issues so here you go.

But so many find it a useful place. Well each to thier own I guess Oh and which issues were they btw ?

had faulty connector on module, previous issues I had were with adafruit oled library splashscreen, the bitmap height not being correct even if it was & me not knowing why my time reset to the one i programmed in among other ones.
I am brand new to c++, previous posts were met with go get better, follow a tutorial, etc. and people getting angry at messy formatting. I can't be bothered to recollect every post and problem I had but note that those were only a few.

TL;DR Reddit experience

Ah reddit well that tells us a few things
Not a fan myself as it has too many issues for my liking advertisements for one thing and cookie tracking etc.
Also some of the Q. !
I mean really :astonished:

As for following tutorials that is something most of us recommend to users to help them understand what they are dealing with.

As for code formatting that is also important especially in here where the forum can munge code if it is not presented properly.

The Arduino IDE makes a lot of the C programming easier for noobs and once they feel confident they can always move to a more advanced IDE.

"reason for post: These forums were useless with my past issues so here you go."

you have to understand the forum culture. The board helps those that help themselves. we won't hold your hand. we won't try to understand what you mean. if you have clearly done your homework and something is eluding you, we might point you in the right direction. many times the answer will be

search term: serial transfer

and that's all you get, because it's all you need to help yourself.