Skip to content

DS1302 not running during ESP8266 deep sleep #195

Answered by Makuna
Tobias4711 asked this question in Q&A
Discussion options

You must be logged in to vote

You are correct, calling rtc.SetIsRunning(true) will turn ON the oscillator, and thus the RTC will run even when not powered by VCC, but must have a valid battery. It sounds like you checked the battery already.

Do you know if the battery you are using is a rechargeable? LIR vs CR? If it's a rechargeable (often used with the DS1302) then make sure the correct charging setup is used.
You can check by calling rtc.GetTrickleChargeSettings().
If it's not a rechargeable, call rtc.SetTrickleChargeSettings(DS1302Tcr_Disabled).

Make a simple sketch (use an example) to set the clock within your circuit to the compile time. Make another sketch that ONLY reads the time the RTC and upload it. Disconn…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tobias4711
Comment options

Answer selected by Tobias4711
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants