# GPS Clock With TFT and Arduino

3,579

12

1

We all are very familiar with Clocks like: Digital Clock. And many hobbyist made this many time using microcontrollers. Today I am going to demonstrate a GPS Clock using Arduino. In which I will show GPS Time on the 2.4 inch TFT LCD.

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: Description:

GPS:

Here I have drawn a table which contain RMC string format. It will help to write code to extract date and time. By counting the comma we can extract exact location of time and date from the RMC GPS string.

\$GPRMC, 161229.487, A, 2816.1265, N, 07754.7343, W, 1.12, 180.5, 270316, ,A,*74

## Step 3: GPS Data When GPS Receiver Is in Range

On

the serial Monitor we can see some strings that are starts from \$ sign. Like

\$GPGGA

\$GPGSA

\$GPGSV

\$GPRMC

Above strings are contains GPS parameters like: Time, Date, Longitude, Latitude, speed, no. of satellites in used, angle and many other things.

For Date and time we can use \$GPRMC string.

## Step 4: Circuit

Circuit of this project is very simple because of using Arduino TFT shield. We need to place TFT shield over Arduino and connect vcc, gnd and rx pin to gps vcc, gnd and tx pins

## Step 5: Programming

Programming part is little complex of this project. In this first off all we read desired GPS string.

## Step 6: Extracting Time and Date

Now

by finding comma technique we stores time and date UTC strings

## Step 7: Converting Time to Decimal and Update

After it we need to convert string time date into decimal format and update time according to our location. I am from India so I used 5:30 hour addition in the UTC time to get Indian standard time.

## Step 11:

For More Details Contact me at

Mobile: +917210302747

Whatsapp: +919610126059

201 12K
84 4.9K
80 5.3K