GPS is an awesome accomplishment that lets people all around the world have access to very useful data with the right tools. The LinkIt ONE development board, which has an on-board GPS, allows us to access this resource. We will be using the GPS to get the time from the satellites which use atomic clocks so the results will be super accurate!
- LinkIt ONE Development Board
- 16x2 Serial LCD
This board also has an on-board RTC(real time clock) but I thought it would be cooler to get it from satellites! Let's do it!
Step 1: Hardware
I recycled an old cardboard box and painted it up. You could also 3d print a case! For setting up the screen follow my tutorial here. Attach the GPS to the bottom of the board on the connection labeled GPS. Attach the battery to the board and switch the USB/BAT switch to BAT
Step 2: Software
This simple sketch will work the magic with the GPS and LCD. Download the file, open it and upload it to your
board. For a great guide(if I do say so myself) on setting up your LinkIt ONE, go here.
Step 3: How It Works
When you apply power, the GPS module starts receiving data from nearby satellites. The screen will show a progress bar as it waits for the time to correct itself. Then it will display the time and battery level. It is set for EDT with daylight saving time in effect.
In the code there is a line that says to put the hour -4 in a char called buff. Change -4 to your timezone. For example if you lived in a country that was 5 hours ahead of UTC then you would put + 5 there. Also, you will have to change this to account for DST(daylight saving time). This is because the satellites give UTC time only.
Step 4: Stay Tuned
I plan to evolve this into a World Clock with the ability to change time-zone's displayed and maybe even an alarm or two! So; stay tuned! That's all for now!