GPS Speedometer





Introduction: GPS Speedometer

My company car that I normally drive tends to have a "small" problems from time to time, the speedometer fall to 0 Km/h when driving (after some time it resumes again).

Normally this is not a big issue since if you know how to drive a car, you are not, I hope, always looking to the speedometer. You now more or less the speed that you are driving. The problem present it self when you need to decrease speed to the road limit that you are entering and you notice that "the speedometer is down".

This presented like a good opportunity to build a new project, "The GPS Speedometer". Of course the ideal solution would be, really repair the car or use a normal GPS or use an app with this function but what would be the fun in this :)

Step 1: Components


I selected theDFRobot Dreamer Nano V4.1 because it has a usb plug that I can use for power and a compatible breadboard pinout.

Check DFRobot wiki page for more info regarding this microcontroller


I'm using the UBX-G7020-KT, that comes with an integrated antenna and allows to change the refresh rate until 10Hz(for this project this featuring can came in hand).

On the DFRobot wiki page you will find more info regarding it.


I wanted to have a good display without "blowing" the budget, my choose was the OLED 2828 Display Module. Check again the wiki page for some more info.


The power for the system will be provided by the car cigarette lighter socket.


This time I when for designing a casing and 3D printing it.

Step 2: Connect the Components

The design with the LED's was not my first choice. So initially I designed the schematic without LED's

But in the end I added 10 LED's (7 Green and 3 Red's).

I forgot to take some pictures of the assembly process, so what I can say is that everything is assembled in the prefboard, in one side is the oled display and in the other the microcontroller and connections. In order to make this easy leave the oled display for last since some of the connections will be done on its back.

Step 3: Code

In order to run the code you will need to have installed the following library 's in your Arduino Library Folder.

U8glib - For the oled display.

TinyGps++ - For the GPS.

The code is "printing" the speed, course, number of satellites, latitude and longitude.

But it is possible to display much more information, ex.: time, date, distance to point...
Check the full example of the TinyGPS++ library to see all available options that you can have regarding the information retrieved by the GPS.

The other featuring is the LED's bar. I've set it up for a max. of 190Km/h. I live in Germany and some of the highways do not have limits, if not, I would place +/- the maximum road limit available. Simply change the limit in the "map" function to the one that fits your needs.

Step 4: Conclusion

I still relatively new in the 3D printing word, so it is natural that my prints do not come perfect :)

In general I can not complain but I still have a lot to improve on this area. The back plate currently is not fixing go good as in the beginning, so some more design updates will be needed.

Also I left out the GPS antenna in the back plate, thing that I will not do in the next design. The course display also did not work so well, but this was only to a little detail. In the future I'm planning to replace with something more useful, ex.: time of arrival to a point (size the majority of my trips are going back and forward).

Fell free to comment or send me a message if you found any mistake or if you have any suggestion/improvement or questions.

"Do not get bored, do something".

P.S.: If you like this project, do not forget to leave your vote for the contests I'm running.



  • Epilog Challenge 9

    Epilog Challenge 9
  • First Time Author Contest 2018

    First Time Author Contest 2018
  • Sew Warm Contest 2018

    Sew Warm Contest 2018

We have a be nice policy.
Please be positive and constructive.


1 Questions

My Screen keeps black, did exactly the same as your tutorial told me.
Any ideas..?


Recheck the connections and test one of the examples of the display library to see if you can see anything.


How can I set it for a smaller OLED Display 128X64 ?

You need to define new positions in the u8g.setPrintPos(x, y); functions in the code.

Also the size of fonts and the satellite symbol.

I made the GPS. It works very well. My car is a Lotus Elite (All fiberglass, no metal chassis.)

This is the only electronic device i have made that works in the car because of the interference.

I would like to speed up it's response. I have all the codes to do it but am unsure how to send them to the module. Could you give me a sample line of code to speed it up to say 38400 baud.

Thanks Ron Hunter

I love the GPS satellite icon :)

Nice, Ive been using an old cell phone for this, would be nice to do this and place it in a gauge pod for a more permanent solution. getting the original one working is not an option.

are the oled screen visibile under direct sunlight? probarly making one for my bike

I already tested and some times is complicated to see. But if you give a small tilt in the screen and a small sun shade I believe that the problem is fixed.

I guess I will need to design a new case for my use :), thanks for the feedback!

looks good,

I used a Nano and a GM stepper motor make an electronic speedometer to relace my old classic car's cable driven speedometer.

Its got a reproduction face to look like the original and it uses a hall effect sensor in the gearbox and the Nano to control the lot.

I thought about building a GPS one, but I wasn't sure of the accuracy.

I heard they the can vary of a few kilometres each way.

If this your experience?

is it 100% accurate?

100% accurate I can not say, only comparing with the police radar gun :) Not looking for this.

Normaly I have 5-10 km/h difeence from the car speedometer.