GPS Clock With TFT and Arduino

by respiduino in Circuits > Arduino

5968 Views, 12 Favorites, 0 Comments

GPS Clock With TFT and Arduino

20160727_034018.jpg

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.

Description:

table.PNG

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

GPS Data When No Range in GPS Receiver

STRKGN.PNG

GPS Data When GPS Receiver Is in Range

ST.PNG

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.

Circuit

Circuit.jpg

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

Programming

Block diagram.PNG

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

Extracting Time and Date

read string.PNG

Now

by finding comma technique we stores time and date UTC strings

Converting Time to Decimal and Update

up.PNG

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.

Display Time and Date

show time date.PNG

Header File and Pin Assignment for TFT

LCD.PNG

Video

GPS Updated Clock over TFT

For More Details Contact me at

Saddam Khan
Mobile: +917210302747

Whatsapp: +919610126059

Email: saddam4201@gmail.com

For More Videos Visit Youtube Channel (Saddam4201)