; In the requestSync() function, remove the
‘BYTE’ parameter from the Serial.print()
; Run the program and open the Serial
Monitor. You will see the message
“7Waiting for sync message” displayed as
shown in Figure 6.
; In a computer browser, open www.unixtimestamp.com
as shown in Figure 7.
; QUICKLY copy the Unix time value, which was
1405096354 when I did this exercise as shown in
; ALSO QUICKLY, paste this value into the serial monitor
output box preceded by a ‘T’ as in Figure 8. I say
quickly because the seconds that it takes to copy, paste,
and send the Unix time will create an offset of several
seconds between the real time (in the opinion of the
PC) and the time learned by the Arduino.
; The serial monitor will begin to display the time and
date as shown in Figure 8.
; Note that the time is expressed as a 24 hour clock — as
in military time.
; Also note that the time is UTC — Coordinated Universal
Time that is more or less synonymous with Greenwich
Mean Time (GMT).
; Note that converting UTC to your time zone (if you live
in the USA) requires considering daylight savings time. I
October 2014 69
; FIGURE 3:
; FIGURE 7: Unixtimestamp.
; FIGURE 5:
; FIGURE 4: Add Time header.
; FIGURE 6:
Send Unix timestamp to the Arduino.