A update on the BoatGPS, trying to complete it ready for installation – hopefully before the summer boating season.
After getting a lot of inspiration of how to add features, such as selecting the speed unit (Mph, Knots, Kmh), displaying the clock etc, I needed to either implement some interrupts or monitor the digital input.
Initially I used INT0 interrupt to select the speed unit. Then, after reviewing the code that Jeremy uses for his superb Really Small(s) GPS – I realized that a finite state machine could be used.
The project now has two inputs – a mode selector, and a function selector.
Here’s a video showing the progress: