My newly built Alpha Clock 5 sets itself! I added an Adafruit "Ultimate GPS" module, connected to the second serial port (J5) and a convenient 5V line.
The GPS module runs at 9600 bps. Normally with an Arduino I have to use an interrupt routine to capture the serial data reliably, but the processor in this clock is so fast it has no trouble keeping up with a simpler approach of just checking the port each time through the main loop.
I need to polish the code a bit, including adding setting the time zone to the menu. Once I've got everything done I'll post the mod on Github.
Next on my list: Automatic DST support!
William
Comments
In our project "Doomsday Atomic Alpha Clock Five Project" we also used the Ultimate GPS, along with Wifi and a WWVB Atomic Clock.
Link: http://forum.pjrc.com/threads/17369-Doomsday-Atomic-quot-Alpha-Clock-Five-quot-Project-using-the-Teensy-3
The Ultimate GPS proved to be very sensitive but we also added Adafruit's active remote GPS antenna.
For auto DST, we used an internet projected 10 year table for DST time changes. This way, with no GPS signal, the
clock knows when to change on the projected DST date. We had this luxury because we used a pre-processor
Teensy 3 ARM stamp.
Quote "it sounds like you are saying there is some relationship between having the GPS signal and adjusting the time for DST."
I tried to state, indirectly, that by not having a GPS signal or fix is not necessary for DST.
Question "Are you trying to compute DST time changes based on the GPS coordinates?"
No, we are using a RTC present date to compute for the "projected" DST dates using a DST table.
When the date arrives (spring forward or fall back) we adjust the RTC +- 1 hour.
Quote "I thought about getting the time from the 'net using a wifi adapter, but the Ultimate GPS works so well, and it doesn't have to be configured with SSID, password, etc."
The Electric IMP uses a "LCD screen blink-up" from an Android or IOS device. The Wifi settings are set in this ARM SD cardin about one minute. No programming is necessary.
Using the Atomic clock, GPS or Wifi, we found the Wifi the easiest to implement, reliable and somewhat precise. Above all, the Wifi provided the best cost solution.