Skip to content

ESP8266-WTA-timeserver for Nixie-clocks from PV Electronics

License

Notifications You must be signed in to change notification settings

xSnowHeadx/FakeGPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FakeGPS

ESP8266-timeserver for Nixie-clocks from PV Electronics

https://github.com/xSnowHeadx/FakeGPS
README file
SnowHead Mar 2022

Introduction

The company PV Electronics from UK sells nice Nixie-clocks:

IN-8_Nixie-Clock

Unfortunately these clocks have only a crystal for time accuracy and no DST-automatic. To get the exact time you can buy a NTP-client from the same company for $40 or you make one by yourself for $2 and with better features.

Function

The FakeGPS requests the local Time from a NTP-Server and the timezone offset from IP-API over WiFi and Internet and generates a GPRMC-Message in the GPS-Format NMEA-0183 as required from the Clock. The local timezone is retrieved from the public IP. If you're using a foreign Proxy this will cause a wrong timezone. In this case use a fix timezone entry as described in the IPAPI-Doc at line 25 in TimeClient.cpp.

The Program generates a timestamp in local time considering the DST-state. So the clock can be set on a UTC-difference of 0 and don't need any configuration or switching for DST on the clock.

On first usage or if the module can't connect to the local WiFi-network it starts as accesspoint named "FakeGPS-AP" with no password. Connect to this AP and configure the SSID and Key of your local network as described here. Then the module will connect to your network, act as GPS-Time-Server and keep the access-data for the next start.

Hardware

  • Like the original we use a ESP8266 NodeMCU.
  • For the connection to the clock we only need one addtional part, a 3.5mm Stereo-plug with cable like from old headphones.
  • To protect the PCB a minimal case should be sufficient. The linked one can be printed with a 3D-Printer.

The serial signal comes from Pin TXD1 (GPIO2, D4) of the NodeMCU with 9600 baud. Connect the audioplug to 5V, GND and Signal as described in the assembly instructions of the clock and configure the timereceiver of the clock for GPS-Format and 9600 Baud.

Software

Because the NodeMCU is Arduino-compatible it can be programmed with any IDE for Arduino. Beside the Code-file propagated here there are some Standard-Arduino-libraries an some special libraries necessary and must be imported and activated how described in the used IDE.

Standard libraries
  • DNSServer
  • Wire
Special libraries

About

ESP8266-WTA-timeserver for Nixie-clocks from PV Electronics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages