Replies: 2 comments 1 reply
-
I would assume the ESP32 doesn't use your XTAL (but have no idea how to check this). A quick google search gave me
The guy who wrote the third link got good results with periodic calibration of the clock. |
Beta Was this translation helpful? Give feedback.
-
@karfas Thank you for the comments. In response to his comment: I read the second document he cited once again. After reducing the bias resistor by half (10 M // 10 M = 5 M Ohm), the RTC oscillator in my ESP32 seems working properly (see below). One of my questions (1) still remains open. Maybe, I need a good active probe of high Z/low C, but I have a bad experience in using it tens of years ago when I was a student.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
MPY: 1.21.0
ESP-IDF: 5.0.2
ESP32-Devkit-C (ESP32-WROOM-32E)
I am planning to use esp32 as a battery powered logger, where ntpdate via wifi is not available.
According to the following comments,
ESP32 - External 32.768 Xtal #3764
The header pins at GPIO 32 and 33 were removed, and a 32.768 kHz crystal with a pair of 11 pF chip capacitors were soldered.
I modified the files and built/installed the firmware to use the external crystal.
ESP32_GENERIC_RTC_EXT_CRYS/sdkconfig
mpconfigboard.cmake
The problems I have are inaccurate duration of deepsleep and the timestamp after the sleep, although
machine.RTC.datetime() and time.localtime() without sleep showed only a few second of error in one week.
The durations of 10 minutes deepsleep differs by several seconds; time stamps after the sleeps were advanced
by a few seconds; This might be okay though ...
The duration of 1 hour deepsleep was 14 seconds less than what was expected.
I checked this by using additional I2C RTC (PCF8563) for the reference (please see below), whose clock was accurate within 5 ppm.
I have following questions,
Is there an easy way to check internal RTC clock frequency?
I'm almost sure that the probe to pick up the clock affects the RTC oscillator.
Am I doing something wrong in building the firmware?
Is it impossible to expect an accurate internal RTC after the deepsleep?
boot.py
Test results
Beta Was this translation helpful? Give feedback.
All reactions