Search found 7 matches

by ESPIRIT
Thu Jul 27, 2023 7:43 am
Forum: Hardware
Topic: ESP32-S3 RTC accuracy
Replies: 10
Views: 4851

Re: ESP32-S3 RTC accuracy

I use: "rtc_time_get() / rtc_clk_slow_freq_get_hz()" as second clock, which is accurate.
"gettimeofday(&tv, NULL)" is inaccurate
by ESPIRIT
Wed Jul 19, 2023 12:41 pm
Forum: Hardware
Topic: ESP32-S3 RTC accuracy
Replies: 10
Views: 4851

Re: ESP32-S3 RTC accuracy

Hello All, I have found a problem which causes the deviation of the RTC clock. It seems be be in software somewhere. When I use the rtc_time_get() function the clock is accurate. When I use the gettimeofday() function the clock deviation is about 700ppm. The gettimeofday() is inaccurate both when I ...
by ESPIRIT
Wed Jul 19, 2023 6:10 am
Forum: Hardware
Topic: ESP32-S3 RTC accuracy
Replies: 10
Views: 4851

Re: ESP32-S3 RTC accuracy

Well the whole idea is to use an accurate 32khz crystal clock for the RTC. Normally these crystals are more accurate then the main clock. (I see that it actually is 10ppm, which is not bad...) Now I am testing without going to deep sleep, but later deep sleep is a must. So then we also need the 32kH...
by ESPIRIT
Wed Jul 19, 2023 6:06 am
Forum: Hardware
Topic: ESP32-S3 RTC accuracy
Replies: 10
Views: 4851

Re: ESP32-S3 RTC accuracy

Is there anybody who has implemented a 32kHz crystal clock at the ESP32-S3-WROOM-1U-N4R2?
If so, is your circuit accurate?
Can be please share your circuit with me? It would be very helpful...

Many thanks in advance!
by ESPIRIT
Wed Jul 19, 2023 5:59 am
Forum: Hardware
Topic: ESP32-S3 RTC accuracy
Replies: 10
Views: 4851

Re: ESP32-S3 RTC accuracy

The firmware does not goto sleep.
I reset the clock and 24hours later I check it.
In 24 hours the time drift is about a minute.
I retrieve the clock with the gettimeofday function.
by ESPIRIT
Tue Jul 18, 2023 3:03 pm
Forum: Hardware
Topic: ESP32-S3 RTC accuracy
Replies: 10
Views: 4851

Re: ESP32-S3 RTC accuracy

Hi,

I checked if the external crystal is running normally at my application firmware and that is the case.
So the RTC does not run at the internal oscillators.
I checked it by short circuiting the crystal. Then I get a message in my debug output, the internal oscillator is taking over.
by ESPIRIT
Tue Jul 18, 2023 9:17 am
Forum: Hardware
Topic: ESP32-S3 RTC accuracy
Replies: 10
Views: 4851

ESP32-S3 RTC accuracy

Hello All, I am using the ESP32-S3 (ESP32-S3-WROOM-1U-N4R2), and we need an accurate RTC. At the hardware I have connected a 32.378Hz crystal clock at pin 8 (IO15) and pin 9 (IO16). We use the ABS07-32.768KHZ-T crystal and have load capacitors of 15pF. The problem is that the clock is very inaccurat...