/180662-mini-NTP-ESP32

mini NTP server with GPS and ESP32

Primary LanguageC++GNU General Public License v3.0GPL-3.0

180662 mini NTP with ESP32

License: GPLv3

Firmware for Elektorproject 180662 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Firmware for Elektorproject 180662.  If not, see <https://www.gnu.org/licenses/>.

Code for the GPS based NTP with ESP32. This software uses a Wemos LoLin ESP32 OLED as base. The OLED used is a SSD1307 based one attached to the i²C Bus. This board can be purchased at ( https://www.elektor.com/wemos-lolin-esp32-oled-module-with-wifi ). As GPS receiver this one is used in the build ( https://www.elektor.com/open-smart-gps-serial-gps-module-for-arduino-apm2-5-flight-control )

Software

The software is written using the arduino framwork for the ESP32. Also you need to compile the code following libraries to be present:

Compile and upload the code to your ESP32. Also upload the webpages.

GPIO Mapping

For the GPIOs used these are not the arduino default ones, as they needed to be modified for the OLED. The following pins are used:

I²C:

GPIO PIN Function
GPIO04 SCL
GPIO05 SDA

GPS:

GPIO PIN Function
GPIO13 UART RX
GPIO15 UART TX
GPIO25 PPS Interrupt

For more inforamtion have a look at: https://www.elektormagazine.com/labs/mini-ntp-server-with-gps