esp32-gps-ntp

Public

@liebman

Share esp32-gps-ntp

Check access before sharing the link.

Who can open this board

Anyone can open this board. No sign-in is required.

This link opens the latest version. Copying it does not grant additional access.

Loading 3D model… large boards can take a moment.

README

This is an ESP32 NTP Server with DS3231 synched to GPS PPS signal

NOTE: This is functional but very much a work in progress at the moment.

This is an esp-idf app using platformio.

Some details

Synching the DS3231 to the GPS is done with a small high level (level 5) interrupt handler in assembly. This generates a timestamp and offset in microseconds tracking the active edges of the GPS PPS and RTC SQW signals. This data is then fed in to a PID algorithm that will generate an offset value used to speed up and slow down the DS3231 RTC. This keeps the DS3231 synced with the GPS to within a couple of microseconds. As a side benifit it also tunes the DS3231's ocilator to reduce drift when GPS is unavailable.

  • main Contains the code
  • kicad/esp-gps-ntp contains the schematic and board designs in KiCad.
  • kicad/display-adapter contains the schematic and board design for a small adapter to config a single inline header connector to an IDC connector (for ribbon cable connection of display)

The display I'm using is here

Schematic

Comments

No comments yet. Be the first to ask about this board.

Ask about this board

Sign in to BoardRepo

New here? Signing in creates your account; there is no separate sign-up.