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](/proxy/?url=https://content.instructables.com/F9D/XJGW/IR414UZW/F9DXJGWIR414UZW.jpg&filename=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](/proxy/?url=https://content.instructables.com/FO4/R3II/IR4152AC/FO4R3IIIR4152AC.png&filename=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](/proxy/?url=https://content.instructables.com/FWH/M7GL/IR4152LF/FWHM7GLIR4152LF.png&filename=STRKGN.PNG)
GPS Data When GPS Receiver Is in Range
![ST.PNG](/proxy/?url=https://content.instructables.com/FFL/OXIT/IR4152RR/FFLOXITIR4152RR.png&filename=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](/proxy/?url=https://content.instructables.com/F61/DCOP/IR414UZY/F61DCOPIR414UZY.jpg&filename=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](/proxy/?url=https://content.instructables.com/FGP/87MH/IR414Z08/FGP87MHIR414Z08.png&filename=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](/proxy/?url=https://content.instructables.com/FA4/IV6A/IR414YRW/FA4IV6AIR414YRW.png&filename=read string.PNG)
Now
by finding comma technique we stores time and date UTC strings
Converting Time to Decimal and Update
![up.PNG](/proxy/?url=https://content.instructables.com/FCB/S9DL/IR414YYJ/FCBS9DLIR414YYJ.png&filename=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](/proxy/?url=https://content.instructables.com/F2C/WJ2S/IR414YRZ/F2CWJ2SIR414YRZ.png&filename=show time date.PNG)
Header File and Pin Assignment for TFT
![LCD.PNG](/proxy/?url=https://content.instructables.com/FQY/VRTS/IR4153J5/FQYVRTSIR4153J5.png&filename=LCD.PNG)
Video
![GPS Updated Clock over TFT](/proxy/?url=https://content.instructables.com/FLT/X87L/IR4153ZQ/FLTX87LIR4153ZQ.jpg&filename=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)