This is a piece of Arduino/ATTiny85 code for pulling the GPS speed of a standard serial and displaying it on a tachometer that is placed in a chronometer.
Demo and description given on youtube
Essentially the ublox6 gives the ATtiny85 the GPS speed which the ATTiny85 translates to a square wave which the tachometer needs.
- Tacho that I used is this one: DX- Has to run off 12V with a square wave signal centered around 0 and at least a 4V peak to peak swing.
- GPS Chip: DX- Runs perfectly off the ATTiny85
The code uses the following 3 libraries:
- TinyGPS++
- TrinketTone- Note that this was modified to be used in the program
- ATTinyCore
The ATTiny85 had to use a crystal (16MHz) to keep the timing for the serial accurate. One pin goes to the signal line (via a capacitor and resistor- to get signal centered around 0) of the tachometer. The other pin is the RX from the GPS.
Also note that it is possible to program your ATTiny85 using your Arduino as the ISP- shown here
There are a number of little odds and ends I would still like to do.
- Possible filter over the output, just to smooth it a little, however this will cause a larger delay.
- Make the speedo show the number of satellites it has found until it has a lock.
- Cooler startup sequence.
Any comments and contributions are most welcome.