• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

RTC resets on esp32 deep sleep – Part 2

Q&A Forum › RTC resets on esp32 deep sleep – Part 2
0 Vote Up Vote Down
Jack Douglas asked 3 years ago

Hi Sara

On further review regarding this topic, the RTC code as written in the RNT RTC guide does not need modification and it works fine.

The problem that I had and which was solved pertains only to the case where the esp32 goes to sleep.  My code incorporates the RTC code and in this case the modification should be made in the void setup() – and not in the void setDS3231time(…..) – for :

Wire.write(0x0E); // select register
Wire.write(0b00011100); // write register bitmap, bit 7 is /EOSC

I don’t see anywhere in the esp32 book where both deep sleep and an RTC are used together, so perhaps something to add for ver. 3?

Question Tags: ESP32
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Thanks for the clarification.
I had already changed the code. I’ll fix it again.
Thanks for the suggestion.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.