• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Arduino Based GPS Digital Clock Circuit

Arduino Based GPS Digital Clock Circuit

Last updated on 24 June 2026 by Admin-Lavi Leave a Comment

Normal digital clock use RTC chip or manual setting, but the problem is RTC needs drift and reset.

So here Arduino Based GPS Digital Clock Circuit solves the problem; GPS talk with satellite and always give exact time, then Arduino read GPS time and show on LCD.

So clock is never wrong, as it always auto update from sky.

Arduino Code:

#include <LiquidCrystal.h>
#include <TinyGPS.h>

LiquidCrystal lcd(7,6,5,4,3,2);
TinyGPS gps;

void setup(){
lcd.begin(16,2);
Serial.begin(9600);
}

void loop(){
while(Serial.available()>0){
if(gps.encode(Serial.read())){
int hour, minute, second;
unsigned long date, time;
gps.get_datetime(&date,&time,0);
hour = (time/1000000);
minute = (time%1000000)/10000;
second = (time%10000)/100;
lcd.setCursor(0,0);
lcd.print("Time: ");
lcd.print(hour);
lcd.print(":");
lcd.print(minute);
lcd.print(":");
lcd.print(second);
}
}
}

Coding Explanation:

  • LiquidCrystal library control LCD.
  • TinyGPS library decode GPS data.
  • Serial begin connect Arduino with GPS.
  • gps.get_datetime give UTC date and time.
  • The circuit separates the time data into hours, minutes and seconds.
  • LCD print values on display.

Circuit Working:

Arduino Based GPS Digital Clock Circuit Diagram

Parts List:

ComponentsQuantity
Arduino Uno1
GPS Module1
LCD Display 16×21
Potentiometer 1k1

To begin with, circuit working is quite simple and Arduino controls the full process.

Then GPS module sends data from satellite to Arduino and GPS receive signal from satellite; also it send NMEA data string to Arduino.

After that, Arduino read using serial and TinyGPS decode and extract date and time; now Arduino print hour minute second on LCD.

Finally, output is digital clock which is always correct with GPS.

Formulas:

The following formula helps calculate the values used in the GPS Digital Clock Circuit.

Time = UTC from GPS satellites.

hour = time/1000000

minute = (time%1000000)/10000

second = (time%10000)/100

Example if time = 15230500

hour = 15

minute = 23

second = 05

How to Build:

To build a Arduino Based GPS Digital Clock Circuit follow the below mentioned connection steps:

  • First, take all the parts as per the circuit diagram above.
  • Next, connect the GPS module GND pin to Arduino GND, the GPS VCC pin to Arduino 5V, and the GPS TX pin to Arduino RX pin 0 and leave the GPS RX pin unconnected because the circuit does not use it.
  • Then LCD pin 1 GND pin go to GND of Arduino, LCD pin 2 VCC go to +5V Arduino and LCD pin 3 Contrast go to middle pin of 1k pot VR1, one end go to 5V and other to GND.
  • After that, LCD pin 4 RS connect to Arduino D7, LCD pin 5 RW connect to GND of Arduino and LCD pin 6 EN connect to Arduino D6.
  • Further, LCD pin 11 D4 connect to Arduino D5, LCD pin 12 D5 connect to Arduino D4 and LCD pin 13 D6 connect to Arduino D3.
  • Finally, LCD pin 14 D7 connect to Arduino D2, LCD pin 15 LED+ connect to +5V and LCD pin 16 LED- go to GND of Arduino.

Conclusion:

To conclude, the Arduino Based GPS Digital Clock Circuit offers a simple and accurate solution and it does not require an RTC module.

The clock automatically adjusts its time from GPS satellites; also this circuit supports time based projects and provides a low cost, easy to build solution.

Filed Under: Arduino Projects, Hobby Circuits

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Small UPS Circuit for Router Backup
Next Post: RGB LED Color Control Circuit with LDR and Arduino »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (129)
  • Alarm Circuits (80)
  • Amplifier Circuits (92)
  • Arduino Projects (103)
  • Audio Circuits (189)
  • Automation Circuits (139)
  • Automobile Circuits (39)
  • Battery Charger Circuits (85)
  • DIY Projects (381)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (23)
  • Hobby Circuits (220)
  • Indicator Circuits (63)
  • Inverter Circuits (17)
  • IoT projects (11)
  • LDR Circuits (46)
  • LED and Lamps (199)
  • Meters and Testers (43)
  • Mini Projects (349)
  • Motor Controllers (25)
  • Oscillator Circuits (64)
  • Power Supply Circuits (234)
  • Radio Frequency (8)
  • Remote Control Circuits (12)
  • Renewable energy (19)
  • Security and Protection (120)
  • Sensors and Detectors (233)
  • Solar Circuits (31)
  • Timer Circuits (62)
  • Transistor Circuits (175)
  • Transmitter Circuit (19)
  • Tutorials (29)
  • Voltage Regulator (40)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Admin-Lavi on High Voltage Fence Charger Circuit
  2. egidio grzinic on High Voltage Fence Charger Circuit
  3. Logic OR Gate Circuit using Transistors - Circuit Ideas for You on Automatic Street Light Circuit using LDR
  4. Tony Gallegos on NTC Thermistor Based Temperature to Voltage Converter Circuit
  5. colin on Simple Single Transistor Audio Amplifier Circuit

Copyright © 2026 | New Circuit Ideas