Page 1 of 1
very accurate clock
Posted: Thu Aug 08, 2019 1:43 am
by doanerock
I am looking to create a esp32 clock, but I want to add a ±1ppm VCTCXO Oscillator so that I can have it so that my esp32 clock can go a year and still be very accurate because of the external VCTCXO Oscillator. Has anyone tried this before? Is this possible?
Re: very accurate clock
Posted: Thu Aug 08, 2019 9:38 am
by ESP_Sprite
Sure, I see no reason this wouldn't work... but since the ESP32 is a WiFi-enabled chip, you may also want to think about using NTP to sync it to a reliable time source.
Re: very accurate clock
Posted: Sun Aug 18, 2019 2:48 am
by doanerock
It is my plan to use NTP or GPS to set the clock. I want to be able to keep very reliable time if NTP/GPS is not available for long periods of time. Which is why I am looking for clarification/advice on how to ensure time is kept accurate. I know that there are reliable real time clocks, but I do not want to use one.
Re: very accurate clock
Posted: Mon Aug 19, 2019 2:41 am
by ESP_Sprite
A VCXO would work fine then. Do note that the RTC internal to the ESP32 has no battery backup option, though; if the ESP32 loses power, it also loses it's understanding of the time. If you need this, it's probably better to go the external RTC route.
Re: very accurate clock
Posted: Sun Sep 01, 2019 6:16 pm
by doanerock
For the "RTC internal to the ESP32 has no battery backup option" I plan on having a rechargeable 18650 for any times that wall power is lost. So I am aware that if the esp32 looses power it looses time.
So this is great news so far, Are you saying it is possible to attache an external VCXO oscillator to the esp32 Module or the Soc. I am hoping to use the module, because I am hoping to avoid making my own module.
Do you have any guides on how to properly attach a VCXO oscillator, like which pins to be used, which frequency to use, do multiple frequencies work, do some frequencies work better than others? How to recompile the code to use the external VCXO oscillator. IF you could guide me toward the documentation necessary to accomplish my goal that would be appreciated.
Re: very accurate clock
Posted: Mon Sep 02, 2019 8:33 am
by ESP_Sprite
You would use the VCXO instead of an external 32KHz oscillator; it should be 32KHz. You can enable the 32KHz RTC option in menuconfig. Sorry, I don't quite know the hardware docs well enough to be able to say how you should connect it.
Re: very accurate clock
Posted: Mon Sep 02, 2019 6:04 pm
by doanerock
I want to confirm that this would work with the module and not just the SoC. I can add my own VCTCXO Oscillator to the module via IO32 or IO33. I can only use a Oscillator with 32KHz? I thought I saw references where the Oscillator could be 40Khz.
viewtopic.php?t=2464