This construction was published in Praktická elektronika 2/2015.

GPS Clock v2
Finished GPS Clock v2.
GPS Clock v2 demonstration.

This is the second version of the GPS-controlled clock. The first version proved that a GPS receiver is very convenient for a self-setting clock, so this version focuses on a cleaner board design, easier use of available GPS modules and practical support for RS232 or Bluetooth serial data.

The clock is built around a PIC16F628A microcontroller and a six-digit LED display. Time is received from a GPS receiver in NMEA format. For clock synchronization, a single satellite is enough because the unit needs accurate time, not position.

Technical Specifications

Supply8-15 V DC or AC adapter through a bridge rectifier.
MicrocontrollerPIC16F628A.
DisplaySix common-anode LED displays.
Display driver7446N or older D146D.
Time sourceGPS receiver with NMEA output.
CommunicationRS232/TTL or Bluetooth module configured as serial port.
ControlsOne button for summer/winter time switching.
External displayPrepared output for an external display.

Processor Schematic

GPS Clock v2 processor schematic
Processor board schematic.

The construction is split into processor and display boards. The processor board contains the PIC16F628A, display driver, power supply, GPS data input and connectors for the display board.

Display Schematic

GPS Clock v2 display schematic
Display board schematic.

The display board carries the LED displays and indicator LEDs and connects to the processor board with a flat cable.

Processor PCB and Placement

GPS Clock v2 processor PCB top
Processor board, top side.
GPS Clock v2 processor PCB bottom
Processor board, bottom side.
GPS Clock v2 processor placement
Processor board component placement.

Display PCB and Placement

GPS Clock v2 display PCB top
Display board, top side.
GPS Clock v2 display PCB bottom
Display board, bottom side.
GPS Clock v2 display placement
Display board component placement.

GPS Receiver and Function

The clock requires a GPS receiver that sends NMEA time data. Modules with TTL serial output can be used directly if their voltage levels match the clock input. RS232 modules or 3.3 V Bluetooth modules may require a simple level converter. Bluetooth receivers can be paired with a serial Bluetooth module and used as a wireless serial link.

After power-up, check the 5 V supply first, then connect the GPS receiver and display. Once valid NMEA data is received, the clock starts showing the current time. If the time does not appear, check receiver power, baud rate, voltage levels and whether the receiver sends the expected NMEA sentences.

Controls and External Display

The clock is controlled by the S1 TIME/DATE button. Date display is not supported in this version, so the button switches summer and winter time. The selected offset is saved in the processor EEPROM and survives power loss.

The design also includes signals for an external display. This can be useful when the electronics and the visible display should be placed separately.

Bill of Materials

Processor Board

DesignatorQtyValue / typeNote
R1110K
R2-R98330RAccording to display type.
R10-R1564.7K
R16, R17282K
R18110K
R19115K
C11470uF/25V
C21100uF/10V
C31100nF
C4, C5233pF
Q1110.240 MHz crystal
Q2-Q76KC308Or similar PNP.
Q8, Q92KC238Or similar NPN.
B11DB106Or another 1A bridge.
IC117805With heatsink.
IC217446NOr D146D.
IC31PIC16F628AProgrammed processor.
F11200mA/F fuseWith PCB holder.
JP1, JP22Pin header
S1190° PCB button

Display Board

DesignatorQtyValue / typeNote
R1, R22100ROr according to LEDs.
LED1-LED445 mm red LED
DL1-DL66BS-AA11RDOr another common-anode display.

Documentation - Updated 2015-11-01

The complete construction documentation is available for download. It includes the Eagle project and microcontroller firmware.

Update

2015-10-30v1.1 - Added the option to enable or disable colon blinking using internal jumper JP5. The updated firmware is included in the documentation package.

Declaration

This construction is original author work. Republishing on other websites or commercial use is not permitted without the author's permission. Linking to this page is allowed. The device is intended for personal use only.

The microcontroller firmware is protected by copyright and is provided free of charge for personal use. Sale or commercial use is not allowed without the author's permission.