I’d like to keep my electron’s RTC running through deep sleep. Is this possible to use something like a small CR2032 battery? The datasheet indicates that VBAT is for this purpose.
If you wish to power is via an external supply, you’ll need to remove this resistor. Instructions to remove this resistor can be found here
There are no such instructions for removing this resistor (at least that I can find).
As a side question: my work-around is to connect to the cloud which I thought synchronized the clock upon handshake, but it doesn’t seem to be that simple. If I try the following (in SEMI_AUTOMATIC mode):
Particle.connect(); waitUntil(Particle.connected); Serial.println(Time.timeStr()); Particle.disconnect();
It returns the wrong time prior to disconnecting. My guess is that it needs a moment to sync, but how do I know when and if this has happened? I added a 3 second delay after waitUntil(Particle.connected) but this still wasn’t giving me the right time. I’ve settled on the following code which seems to consistently work but I’m hoping there is a more succinct and reliable way for doing this:
Particle.connect(); waitUntil(Particle.connected); Serial.println("Time function running now..."); delay(3000); Particle.syncTime(); delay(3000);
Thanks for any feedback.