Took just a little digging to find the correct commands to get my Arduino + Adafruit GPS based “clock” to talk to gpsd on the Raspberry Pi (the Arduino is powered and connected to a USB port on the Raspberry Pi.) First, I did
sudo apt-get install gpsd
sudo apt-get install gpsd-clients
sudo dpkg-reconfigure gpsd
(using /dev/ttyACM0) when prompted and then
for the display below
Clock is running https://github.com/allendav/GPSClock code
After sitting (and running) on my desk in a breadboard for forever, the GPS and Arduino powered UTC clock is finally getting properly housed in a project box. Now just waiting on a couple connector blocks and some wire for the harness.
This movie is of the Serial Monitor output of an Arduino Uno running my GPSClock code with barely audible WWV (at 10.0 MHz) in the background. You can actually see the time 23:59:59 as reported by the GPS receiver (an Adafruit GPS Breakout) repeat as the leap second rolls by 🙂
It works! I recently blogged about getting the Ultimate GPS Breakout up and running while doing some validation of my iOS app, and I was delighted when a four digit display module I ordered arrived in the mail this past week.
After a bit of soldering and tinkering with the example code, I was able to get the UTC time reported by the GPS Breakout to display on the LED display module (including blinking the colon on alternating seconds.)
Complete details on how to wire it up are included in the source code, which is available on GitHub.