I wanted to build a digital speedometer for my car. There was nothing wrong with the one already installed in my car, I just wanted to have a big LCD display that will be positioned in a more convenient position - right in front of me. And as I did not want to mess with my car's electronic parts in order to tap in and read the "speed" signal straight from the car's computer, I opted for the GPS version.

Components needed:

1. Arduino Uno (Nano or other Arduino boards might be fine as well)

2. GPS module, I got this one https://www.dfrobot.com/wiki/index.php?title=GPS_Module_With_Enclosure_(SKU:TEL0094) (if the link is not working when clicked, just copy and paste it into your browser's address bar)

3. Graphic LCD (http://www.aliexpress.com/item/20PIN-LCD12864-Grap...)

4. 10k trimpot for adjusting the contrast of the LCD

5. 4.7k potentiometer for adjusting the brightness of the LCD

6. 100 ohm resistor to limit the current for the LCD brightness

7. Wires, suction cup, self-adhesive velcro, kitchen aluminium foil (or similar), soldering iron, pliers, hot glue gun, etc.


8. USB cable for powering the Arduino board (and LCD) and separately the GPS module

9. 2 x USB (5V) car power adapters (at least 1A each)

10. Plastic enclosure (or you could build one)

11. and of course, a car with a battery to power the whole stuff

Step 1:


I would advise that you build a prototype version first, and only when tested and working start the actual building of the enclosure.

In order to be able to upload sketches to the Arduino board, the GPS module will have to be disconnected, as it uses the same RX and TX pins to communicate with the Arduino board as the Arduino IDE. While the GPS module was left connected, attempts to upload sketches failed in my case.

PS. As YukselV suggested, you could use SoftwareSerial instead of the "simple" Serial, in case you want to test other features which means uploading the sketch multiple times - you won't have to disconnect the GPS module in this case. Thanks YukselV! (https://www.arduino.cc/en/Reference/SoftwareSerial)

Similarly, the LCD power will have to be disconnected while uploading sketches to the Arduino board. This is due to the RESET pin being connected to the LCD, which interferes with the Arduino IDE. I read that one could simply connect the RESET pin of the LCD to +5V on the Arduino (permanently), or simply temporarily disconnect the RESET wire while uploading the sketch to the Arduino board. I simply disconnected the power supply when required.


First, because my LCD order would take a while to arrive, I started by testing the GPS module using a LED display.

*********** UPDATE 31.10.2016 ********************

I have attached the .INO sketch for using with a 4-Digit-7-Segment-LED-Display

*********** end of UPDATE 31.10.2016 ********************

When the LCD finally arrived, it took me a while finding out the correct wiring for the LCD. I found a tutorial in Italian (http://www.mauroalfieri.it/elettronica/lcd-grafico...) that shows the wiring (http://www.mauroalfieri.it/wp-content/uploads/2013...). That however was not working properly for me, so I had to change some stuff around:

- I had to change some wiring around the 10k trimpot (controlling the LCD contrast)

- I added another 4.7k potentiometer in series with a 100 ohm resistor, that will allow me to control the LCD brightness as well.

EDIT: Thanks to ibenkos for pointing out that the +5v engine in my original wiring image was connected to ground rail on the breadboard. It should of course be connected to the positive rail - updated picture uploaded.

Then I wanted for the speed to be displayed instantly after starting my car engine and moving off. However I didn't want to leave the whole stuff powered up all the time and risk for the car battery to go dead. Therefore I would power the Arduino board and the LCD only when I start the engine, while the GPS module would be powered all the time, even when the engine is off (so that it won't take "I don't care how many seconds to lock onto the positioning satellites for required data to be sent to Arduino for processing").

It's up to you however to locate the appropriate points where to get power from the fuse board.

Using one USB car power adapter I would get continuous 5V to power the GPS module, while the second USB car power adapter would give me 5V to power the Arduino and the LCD only when I start the car engine.

One more thing to note: I used fused wires to connect to both car power adapters, so that they will blow in case of a short circuit, and not some other car electronics.

Step 2:

Here I was testing the LCD wiring - note the resistors I was using instead of the trimpot, which I did not have at the time.

Step 3:

I cut a whole in the plastic enclosure (that I bought from a local shop) that will allow the LCD display to fit in, and then I hot-glued the LCD in place. I've cut a piece of plastic sheet and placed it on the back of the LCD then I added some aluminium foil on top. I also added aluminium foil all around the plastic enclosure, including the back cover, and connected everything to ground. The idea is: try to enclose the Arduino board inside an improvised Faraday cage (https://en.wikipedia.org/wiki/Faraday_cage) in order to prevent any interference from other electronic devices that could affect the functionality of the Arduino board. That's the idea, anyway :-) Is this really necessary? I don't know.

However, make sure that you are not shorting any contacts on either the LCD or Arduino.

Step 4:

Because I needed two different 5V power supplies (one for Arduino and LCD, the other for the GPS module), and another wire that will connect to the potentiometer controlling the LCD brightness - four wires in total, if we account for the ground as well - I decided that I will use an USB cable, which is conveniently screened.

I took the USB connector off the Arduino board (I didn't have another one at that time, and having uploaded and tested the whole thing before), I cut another hole in the plastic enclosure, and there I had my required power connection. You could use an additional USB connector, if you think you might need to upload updated sketches to the Arduino board.

Or of course, you could use another type of an electrical connector altogether if you wish. The idea is to get those four wires inside the box connected to the appropriate power source - continuous 5V, engine on 5V, LCD brightness signal coming from the potentiometer, and ground.

Step 5:

I happened to have a suction cup from an old sat nav, which I wasn't using anymore. This will hold the whole box onto the windscreen of the car. The GPS module is attached using some self-adhesive velcro, with a small hole allowing the four wires (5v, ground, TX, RX) to go and connect inside the box.

Step 6:

And there it is, the final product located onto the dashboard, connected by the USB cable to the power supply and the potentiometer conveniently located beside the steering wheel (please note, I have a left hand driving car, the steering wheel is located therefore on the right hand side of the car)

And you can watch it working here:

Sorry for the video going in and out of focus - I was using a compact camera, with no option for a fixed focus.

Step 7:

Now for the code...

First, you need to download two libraries (in case you don't have them already in your Arduino's library folder):

1. OpenGLCD - https://code.google.com/p/glcd-arduino/downloads/l...

(more information can be found here: http://playground.arduino.cc/Code/GLCDks0108 and here https://bitbucket.org/bperrybap/openglcd/wiki/Home)

2. TinyGPS - http://arduiniana.org/libraries/tinygps/

Unzip and copy them in your Arduino's library folder (normally C:\Program Files (x86)\Arduino\libraries\). If the Arduino IDE is open, you have to close and re-open it, to allow for the new libraries to be loaded.

Step 8:

Then I found it very awkward to generate new fonts (as high as the screen height) that will be displayed onto my LCD. Therefore what I did was to create bitmaps (numbers 0 to 9 plus a blank) that will be displayed on my LCD.

After "installing" the openGLCD library, look for the file name called "glcdMakeBitmap.pde", normally located here

C:\Program Files (x86)\Arduino\libraries\openGLCD\bitmaps\utils\glcdMakeBitmap\

EDIT - April 12th, 2016!!!!

Added OpenGLCD library, which already has the .h (header) files. You need to copy and unzip where your Arduino IDE is located - normally C:\Program Files (x86)\Arduino\libraries\

EDIT - April 12th, 2016!!!! [ends]

To run this file you will need to download and install an additional piece of free software, called Processing, which is very similar to Arduino IDE.

EDIT - March 14th, 2016!!!!

Thanks ab710 for pointing out that using some newer Processing versions will give an error while trying to run the code. Please use the link below to download Processing 2.2.1 which in my case allows for properly running of the code.



EDIT - March 14th, 2016!!!! [ends]

Open "glcdMakeBitmap.pde" in Processing and click Run, in the top-left corner.

The purpose of "glcdMakeBitmap.pde" application is to allow you to "feed" it with image files (gif, jpg, bmp, tga, png), and then some .h (header) files will automatically be created within the "bitmaps" folder of the openGLCD library. They will eventually be used to display your numbers (as images) onto the LCD.

I have attached an archive file named "numbers.zip" which you can download, unzip, and then drag each one of those .BMP files onto the running "glcdMakeBitmap.pde" in order to create the 11 header files (0 to 9, plus blank). But if you wish, you can design your own numbers, using different fonts, save them as BMP or other supported image file extension, and use them to create the header files which will be displayed onto the LCD.

PS. In case you're wondering why did I not upload the header (.h) files instead of the .BMP files, and save you the trouble of downloading and installing Processing, and running "glcdMakeBitmap.pde": It's not enough to simply copy the .h files into "bitmaps" folder, as the files named "allBitmaps.h" will be automatically updated as well (by the Processing application) to refer to the new files. Plus, in case you don't like my numbers, you now know how to create your own :-)

Step 9:

And finally the sketch, which is not very complicated, and should be self-explanatory.

I have also attached the .ino sketch for your convenience.


#include //math library to use for round function

#include "TinyGPS.h" //GPS module library

#include // LCD library

TinyGPS gps; //create a gps object

float fLat, fLong; //floats for longitude and latitude; will be used to determine whether the GPS data is up to date or not

unsigned long fix_age; // returns +- latitude/longitude in degrees

int digit1, digit2, digit3; //integers to hold the three digits making up the speed

int iSpeed; //integer to hold the speed value from the GPS module

void setup()


Serial.begin(9600); //start the serial communication

// initialise the library, non inverted writes pixels onto a clear screen



void loop()


while (Serial.available())


//incoming serial data from GPS

int c = Serial.read();

if (gps.encode(c))


// process new gps info here, in case you want to display more details



gps.f_get_position(&fLat, &fLong, &fix_age); //get longitude and latitude, used to find if data is up to date

if (fix_age == TinyGPS::GPS_INVALID_AGE || fix_age > 2000)


//data was not updated for some time, assume that GPS connection is lost

iSpeed = 0;




//GPS connection is up to date, get the speed information, and round it to closest integer value

iSpeed = round(gps.f_speed_kmph()); // speed in km/h


//when not moving, the GPS module will still read some "speed" value, not necessarily zero

//in that case assume the car is not moving; only display values greater than 2

if (iSpeed == 1) iSpeed = 0;

displaySpeed(iSpeed); //call function to display the speed, digit by digit


void displaySpeed(int iSpeed)


//"simple" maths to extract each digit value

digit1 = iSpeed / 100;

iSpeed = iSpeed - (digit1 * 100);

digit2 = iSpeed / 10;

digit3 = iSpeed - (digit2 *10);

//display "blank" bitmap when necessary, instead of number zero

if (digit2 == 0 && digit1 == 0) digit2 = -1; //digit 2 is blank

if (digit1 == 0) digit1 = -1; //digit 1 is blank

//call function to display each digit, at their required position

drawDigit(digit1, 0);

drawDigit(digit2, 45);

drawDigit(digit3, 90);


void drawDigit(int digit, int pos)


switch (digit)


case 0:

GLCD.DrawBitmap(Number0, pos, 0);


case 1:

GLCD.DrawBitmap(Number1, pos, 0);


case 2:

GLCD.DrawBitmap(Number2, pos, 0);


case 3:

GLCD.DrawBitmap(Number3, pos, 0);


case 4:

GLCD.DrawBitmap(Number4, pos, 0);


case 5:

GLCD.DrawBitmap(Number5, pos, 0);


case 6:

GLCD.DrawBitmap(Number6, pos, 0);


case 7:

GLCD.DrawBitmap(Number7, pos, 0);


case 8:

GLCD.DrawBitmap(Number8, pos, 0);


case 9:

GLCD.DrawBitmap(Number9, pos, 0);



GLCD.DrawBitmap(NumberBlank, pos, 0);




Step 10:

If you have any comments, questions or ideas, please let me know. And I hope you'll enjoy (as much as I did) building your own Arduino based GPS speedometer.

Finished at last. I placed an LED on the front to show when I had a GPS signal. The two holes on the front were going to be for the pots, but they would have got in the way of the screen.<br>great little project. Thanks for sharing.
<p>That's great, I'm glad that you found this useful.</p>
<p>Hello, Good day. I badly need some help, hehe.</p><p>my goal is to warn the driver of a vehicle with a voice message when the speed reached 80 km/hr, and also sends information like latitude and longitude via text message to a mobile phone.</p><p>Initially, I did not put the voice alert function, just the text message function. There was no problem with the GPS module getting a fix information when it was connected to the Arduino UNO and GSM module, I did not use a library for the GSM module. It was working fine by then. The values from the GPS module are updated.</p><p>But when I wired the mp3 player module and included the DFPlayer_Mini_Mp3.h<br>library and its commands to my sketch, the voice alert was fine, the GSM<br>module sends a message to my phone, but values from the GPS module is not updated, just zero values. ex. LAT: 000000, LONG: 000000.</p><p>here is my sketch, i just badly need help right now, hehe:</p><p>#include &lt;TinyGPS++.h&gt;<br>#include &lt;DFPlayer_Mini_Mp3.h&gt;<br>#include &lt;SoftwareSerial.h&gt;</p><p>SoftwareSerial mySerialGPS(2, 3);<br>SoftwareSerial mySerialGSM(7, 8);<br>SoftwareSerial mySerial_mp3(10, 11); //Arduino pin 10 to DFPlayer TX,<br>//Arduino pin 11 to DFPlayer RX</p><p>TinyGPSPlus gps;</p><p>void setup()<br>{<br>mySerialGSM.begin(2400); // Setting the baud rate of GSM Module<br>mySerialGPS.begin(9600);<br>mySerial_mp3.begin (9600);<br>mp3_set_serial (mySerial_mp3); //set softwareSerial for DFPlayer-mini mp3<br>//module<br>mp3_set_volume (15);<br>SendMessage();<br>smartDelay(1000);<br>}</p><p>void loop()<br>{</p><p>if (gps.speed.kmph() &gt; 80)<br>{<br>//play file 0080.mp3<br>mp3_play(80);<br>smartDelay(3000);<br>speed_alert_80();<br>smartDelay(1000);<br>}</p><p>pinMode(13, OUTPUT);<br>digitalWrite(13, LOW);</p><p>smartDelay(1000);<br>}</p><p>void speed_alert_80()<br>{<br>mySerialGSM.println(&ldquo;AT+CMGF=1&Prime;); //Sets the GSM Module in Text Mode<br>smartDelay(500); // Delay of 500 milli seconds or 1 second<br>mySerialGSM.println(&ldquo;AT+CMGS=\&rdquo;+63xxxxxxxxxx\&rdquo;\r&rdquo;); // Replace x with mobile<br>//number<br>smartDelay(500);<br>mySerialGSM.println(&ldquo;Alert! there was a speed offender!&rdquo;);// The SMS text you<br>//want to send<br>mySerialGSM.println(&ldquo;The vehicle&rsquo;s speed has reached 80 km/hr.&rdquo;);<br>mySerialGSM.print(&ldquo;SPEED(kmph): &ldquo;);<br>mySerialGSM.println(gps.speed.kmph());<br>mySerialGSM.print(&ldquo;LAT: &ldquo;);<br>mySerialGSM.println(gps.location.lat(),6);<br>mySerialGSM.print(&ldquo;LONG: &ldquo;);<br>mySerialGSM.println(gps.location.lng(),6);<br>smartDelay(100);<br>mySerialGSM.println((char)26);// ASCII code of CTRL+Z<br>smartDelay(1000);<br>}</p><p>void SendMessage()<br>{<br>//play file 0101.mp3<br>mp3_play(101);<br>smartDelay(2618);</p><p>mySerialGSM.println(&ldquo;AT+CMGF=1&Prime;); //Sets the GSM Module in Text Mode<br>smartDelay(500); // Delay of 500 milli seconds or 1 second</p><p>mySerialGSM.println(&ldquo;AT+CMGS=\&rdquo;+639487567571\&rdquo;\r&rdquo;); // Replace x with mobile<br>//number<br>smartDelay(500);</p><p>mySerialGSM.println(&ldquo;GPS module&rsquo;s current state.\n&rdquo;);// The SMS text you want<br>//to send</p><p>mySerialGSM.print(&ldquo;LAT: &ldquo;);<br>mySerialGSM.println(gps.location.lat(),6);</p><p>mySerialGSM.print(&ldquo;LONG: &ldquo;);<br>mySerialGSM.println(gps.location.lng(),6);</p><p>mySerialGSM.print(&ldquo;DATE(ddmmyy): &ldquo;);<br>mySerialGSM.println(gps.date.value());</p><p>mySerialGSM.print(&ldquo;SPEED(kmph): &ldquo;);<br>mySerialGSM.println(gps.speed.kmph());</p><p>mySerialGSM.print(&ldquo;# of Sat. in use: &ldquo;);<br>mySerialGSM.println(gps.satellites.value());</p><p>smartDelay(100);</p><p>mySerialGSM.println((char)26);// ASCII code of CTRL+Z<br>smartDelay(1000);</p><p>//play file 0102.mp3<br>mp3_play(102);<br>smartDelay(3459);<br>}</p><p>static void smartDelay(unsigned long ms)<br>{<br>unsigned long start = millis();<br>do<br>{<br>while (mySerialGPS.available())<br>gps.encode(mySerialGPS.read());<br>} while (millis() &ndash; start &lt; ms);<br>}</p>
<p>Hi, in your code you're only calling the function SendMessage() in the Setup, but not when a speed over 80 km/h was read. Try adding a call to SendMessage() within the body</p><p>if (gps.speed.kmph() &gt; 80)</p><p>{</p><p>..........................</p><p>}</p><p>and see if that's working. I can't test it for real, for I don't have the necessary parts.</p><p>PS. why are you calling the function SendMessage() in the Setup?</p>
<p>Hello Studvio, thanks for the reply.</p><p>yes i did not call SendMessage() within the body, but I did call speed_alert_80() within the body</p><p>if (gps.speed.kmph() &gt; 80)<br>{<br>//play file 0080.mp3<br>mp3_play(80);<br>smartDelay(3000);<br><strong>speed_alert_80();</strong><br>smartDelay(1000);<br>}</p><p>and for your question:</p><p>why are you calling the function SendMessage() in the Setup?</p><p>-- I just wanna check first at home if the system can get reliable values from the GPS module before testing it on the road. </p><p>-- Initially, without the mp3 player module and the DFPlayer_Mini_Mp3.h library, every time I reset the arduino UNO, I receive a message like this:</p><p>GPS module&rsquo;s current state.</p><p>LAT: 8.241666</p><p>LONG: 126.025932</p><p>DATE(ddmmyy): 151116</p><p>SPEED(kmph): 0.00</p><p># of Sat. in use: 11</p><p>--but when I added the mp3 player module and its libary, its like this:</p><p>LAT: 0.000000</p><p>LONG: 0.000000</p><p>DATE(ddmmyy): 000000</p><p>SPEED(kmph): 0.00</p><p># of Sat. in use: 0</p><p>-- what do you think was the culprit? bmb, thanks in advance.</p>
<p>Hi, yes, you are right about that call, I wasn't sure why you want to have the speed_alert_80() though.</p><p>I know that you can not transmit data over the Software Serial to more than one device at a time. I also notice that you have the 3 second delay between sending data to the mp3 player module and sending data to the GSM module. I reckon that this could be the problem, whereas for some reason the communication is messed up somehow. Again, I don't have the required parts and I can not test it myself, but what I would suggest you to try:</p><p>1. Under <strong>if (gps.speed.kmph() &gt; 80)</strong>, comment out the call to play the file, <strong>mp3_play(80). </strong>You already mentioned that without the MP3 module it works properly, but I'm note sure whether you removed the whole library altogether, or you simply didn't make the call. Does it work now? I mean, the SMS text has all the data you need?</p><p>2. If the above is working now, try swapping the calls around like this</p><p> if (gps.speed.kmph() &gt; 80)</p><p> {</p><p>speed_alert_80();</p><p>smartDelay(3000);</p><p>//play file 0080.mp3</p><p>mp3_play(80);</p><p> smartDelay(3000);</p><p> }</p><p>so that you are sending the SMS first, and then play the MP3 file. (I see that you are doing that in this order in SendMessage(). Does the mp3 file plays the first time, when you reset the Arduino board?)</p><p>If step 1 doesn't work, try also commenting the line <strong>SoftwareSerial mySerial_mp3(10, 11); </strong>but allow for the mp3 library to be included. If still doesn't work, then it may be that the DFPlayer_Mini_Mp3.h library is creating the problems.</p><p>3. Try something like</p><p>if (mySerialGPS.available())</p><p>{</p><p>speed_alert_80();</p><p>}</p><p>I hope any of this helps, but let me know in either case please.</p>
<p>Hello sir. I already got mine working just fine. hehe. </p><p>thank you so much for your ideas.</p><p>-- the culprit was this lines, particularly the order:</p><p>mySerialGSM.begin(2400);<br>mySerialGPS.begin(9600); </p><p>mySerial_mp3.begin (9600); </p><p>-- I changed it into this:</p><p>mySerialGSM.begin(2400);</p><p>mySerial_mp3.begin (9600);</p><p>mySerialGPS.begin(9600); //the baud rate of the GPS module should</p><p> //be set last. I dont no why but at least it</p><p> //works for me. hehe</p><p>-- do you have any idea why it worked properly in that order of setting baud rates? bmb, tnx in advance ..</p>
<p>Hi! very nice project, but my LCD display is quite different from yours and does't work!! So.. it is possible having the project with the led display? I think is more easy and quite retro..</p>
<p>Hi there, in step one I've added the required .INO sketch. I hope it will work for you.</p>
<p>Hi Studio, this is excellent. Thanks so much for sharing.</p><p>I've rigged it up as a prototype and I can see the GPS is powered and receiving data (green LED is flashing). My display however is showing zero all the time.</p><p>I've stripped the wiring out and redone it, but still the same result.</p><p>I must be missing something with the unit. From the GPS, I'm not connecting the EN (yellow) and PPS (white) wires. I do not see them connected on the wiring diagram.</p><p>Any ideas, friends?</p>
<p>How are you? I am assuming that you are moving about with the prototype <br>powered on, so that your speed would be higher than 2km/h. Then if at <br>all possible, connect the stuff to a laptop / netbook, start the serial <br>monitor and watch for incoming values from the GPS unit (iSpeed). You <br>will need to add the necessary lines of code for that, of course, and <br>use the Softserial method.</p>
<p>Hi Studvio. It was a schoolboy error on my part: I hadn't stripped any extra insulation from the Rx and Tx on the GPS module. Once I did that, the data was passing into the Arduino. :o)</p><p>I'll post a picture when it's all up and running.</p><p>Take care :o)</p>
<p>Hi, glad to hear that you were able to fix it, and thanks for your appreciation.</p>
<p>Thanks, I'll give that a try :)</p>
<p>Thank you very much.. It helped me alot</p>
Thanks for a well documented instructable. I saved $960 by making one of these. The speedo on our engine died, this was an awesome replacement. THANK YOU.
<p>Glad to hear that you managed to build one, and thanks for your kind comment.</p>
<p>Installed and DONE!</p><p>This vehicle is a backup, so it doesn't get used much. More for PR than anything. Because its not used much, the batteries have been dead a few times because flashlights, radios, and other tools are charging all the time. So I added a voltage divider to the 12v from the batteries of the fire engine to drop it down to a 5v input on pin A5. When the input value gets to 4v (10.5v on the engine, I tested to find that it won't start below 10.3) a REALLY annoying piezo buzzer goes off on pin 13. The only way to shut it up is to charge the batteries. This might be my favorite part.</p><p>The other change I made was to use a photocell to drive the LED back light instead of a manual pot. The brighter the sun, the brighter the back light. The only issue I had was a night when it was dark.....no backlight. SO, I paralleled a 500 ohm resister to keep a minimal value for night time. It is has been working great.</p><p>Finally, I pushed it all down on a mini Arduino pro. I jammed it all together, soldered a micro pot directly to the screen for contrast, used a few pieces of double sided tape, a 5v regulator.....and done!</p><p>Again, thanks for sharing your code!</p><p> </p>
<p>That's fantastic! You're welcome (about the code), and thanks for your tips and improvements.</p>
<p>Hello again! After a little break from working on this i have finally started again and i am having more issues with processing. When i try and put the bitmap images into the small window i get an error code which says &quot;couldnt create a writer for C:\Program Files (x86)\Arduino\libraries\openGLCD\bitmaps\utils\glcdMakeBitmap\..\..\allBitmaps.h&quot;. Im assuming that this is the reason that none of the .h files are loading into my openGLCD\bitmaps folder. Im having the same &quot;Number0 was not declared in this scope&quot; error as MeghaA2 was but i believe that the error in processing is causing the .h files not to load which in turn causes arduino IDE to give me an error as well. Any help would be greatly appreciated. Thanks!</p>
<p>Hi, just confirming that you're using Arduino IDE version 1.6.5, Processing 2.2.1, and the correct GLCD library... as I understand these could potentially generate troubles.<br>I have updated the tutorial and at step 8 I included the GLCD library I am using (again, an older version), which is working for me, and it already has the necessary header (.h) files. Please give it a try and let me know.</p>
<p>So i downloaded the new library and that fixed it and it all uploaded alright. now after i have everything wired up following the diagrams, the GLCD comes on and i can change brightness and contrast however none of the numbers are displaying. Im not sure what to do from here. Thanks for the help on the last one!</p>
<p>Hi, in this case I would reckon that some connections are loose. I had this exact problem myself, where I was able to adjust the contrast / brightness, but nothing was displayed. Are you using the correct values for the (trim) pots and the resistor? Also, make sure that your GLCD's pinout is the same as in my schematics, as there are different models that one can buy, and the pins' order might be slightly different. The GLCD library comes with a testing app that will display different info on the display. Try that as well, and see if the problem is in the GPS code or with the wiring.</p>
<p>Awsome. Easy, good tutorial. Thanks</p>
<p>Great project, been thinking of making something like this for a while now, and you saved me a lot of research with this instructable! Thanks for the nice work.</p>
<p>Thank you so much sir....... you really helped me do it.....its such a nice project...:) :)</p>
<p>Glad to hear that you've made it. Was the Arduino IDE at fault? Only asking so that other people might be aware of that, if such a case. Thanks for your appreciation and good luck with your future projects.</p>
<p>yes sir, it was that i chose the new version of arduino ide and i downloaded wrong glcd library file actually it had to be openglcd library file...thanks for all the support you provided me sir....</p>
<p>exit status 1</p><p>'Number0' was not declared in this scope</p><p>why am i getting this error in speedometrer.ino.....pls can u reply</p>
<p>Hi, did you install the GLCD driver? And did you copy and unzipped the numbers.zip file attached, containing the Number0.bmp to Number9.bmp, plus NumberBlank.bmp?</p>
<p>i have attached glcd to libraries of arduino........where shud i attach it other dan dat....pls can u reply sir...</p>
<p>Hi, could you also confirm that you unzipped &quot;numbers.zip&quot;, and that the .BMP files (letters from 0 to 9, plus a &quot;blank&quot;) can also be found in your project folder, so that the code can access those?</p>
<p>yes sir , i have done all those, numbes header file is created and processing is working but only problem im facing with simple code......... can i know which version of arduino ide have u used for running the code?....</p>
<p>sir one more doubt .........wat did u mean project folder ......where shud i attach the&quot; numbers.zip&quot; after unzipping it........please do reply sir....</p>
<p>Hi, you actually guessed what my next question would be, and that was in relation to Arduino IDE version. I am using v 1.6.5. And the BMP files should be located in the same folder as the INO project file. And as you can see in the attached images, the code is compiling without a problem.<br>You can download v1.6.5 here, if you wish to give it a try<br><a href="https://www.arduino.cc/en/Main/OldSoftwareReleases">https://www.arduino.cc/en/Main/OldSoftwareReleases</a></p><p>(https://www.arduino.cc/en/Main/OldSoftwareReleases)</p>
<p>C:\Users\Megha Acharya\Downloads\speedometerLCD\speedometerLCD.ino: In function 'void drawDigit(int, int)':</p><p>speedometerLCD:76: error: 'Number0' was not declared in this scope</p><p> GLCD.DrawBitmap(Number0, pos, 0);</p><p>this is the proper error im facing while compiling........</p>
<p>Hello, I am having issues with the glcdMakeBitmap code in processing. When I go to run the code, lines 197 through 239 all light up red and it displays an error that says &quot;The constructor 'dnd.DropTarget(glcdMakeBitmap, DropTargetListener(){})' does not exist&quot;. I cant seem to get it to work, if you could get back to me with any tips that would be great. Thanks. Great project btw.</p>
<p>Hi, I can confirm that I could &quot;still&quot; get it working on my PC (Windows7 64 bit). However, I was able to identify and hopefully solve your problem in running the code :-)</p><p>I am running Processing version 2.2.1, and as I said - no problems with running the code. I went to the link I provided in my original post (which should be updated by the time you are reading this) and I downloaded the latest version of Processing, version 3.0.2. When trying to run the same code the error message you mentioned is there.</p><p>So I could advise to get Processing 2.2.1 for your operating system (I tried newer versions, but they output the same error message), and see whether it's working. A list of Processing releases are to be found at this link <a href="https://github.com/processing/processing/releases?after=processing-0230-3.0a3">https://github.com/processing/processing/releases?...</a></p><p>(https://github.com/processing/processing/releases?after=processing-0230-3.0a3)</p><p>PS. To quote from the link above for the latest version, PROCESSING 3.0.2 (REV 0248) - 13 February 2016: &quot;Nothing says &quot;I LOVE YOU&quot; like a bouquet of bug fixes.&quot; They've &quot;fixed&quot; it all right :-)</p>
<p>It works now. Thanks!</p>
<p>Thats a very nice project, just want to ask would it be possible to put a tattle-tail function on it, a button that tell you the highest speed for the day. Thought it might be useful for when someone borrows my car, as they got a speeding ticket but they swear they weren't speeding....</p>
<p>I never thought of that option to be honest with you (I'm the only person driving my car hopefuly), but I'm sure it can be done, and I'm thinking of two options:</p><p>1. Adding a variable in the code that will hold the highest speed value. Two buttons - one to display hgat value, and the other to reset it. Of course, you will have to power the Arduino all the time for the value to be remembered. (In my project, the power is disconnected when the engine is swithed off).</p><p>2. Adding a SD card slot, and saving in a file - let's say every 2 seconds - the current speed value. You won't need any extra buttons for this, as you can remove the SD card from the slot for reading the file externally. The Arduino won't have to be powered all the time in this case, although you should make sure that the file on the card doesn't get corrupted due to lost of power during the writing process.</p><p style="margin-left: 20.0px;">You could also add a RTC (real time clock) module and save the current time / date as well along with the speed value on the CD card. You will need to add at least one button in this case allowing you to adjust the time / date, if such a case.</p><p>Or option 3...</p><p>You could get a dashcam and position it in a way that it records the road ahead and the speedometer on the dashboard of the car at the same time. I know I'm doing this :-), so that I keep the speedometer as small and simple as possible.</p>
<p>Thanks that sounds cool, It was my wife that got the speeding ticket an Im pretty sure she wasn't speeding as she was in a long line of cars all doing the same speed. It would of been good to tell the cop, my GPS speedo says no I wasn't speeding. </p>
<p>Not sure whether you could use this Arduino project as evidence in any court, but at least you can have some fun :-)<br>https://www.youtube.com/watch?v=wbRQp1S2Ypc</p>
<p>Good evening sir, is the GPS module you have used also<br>good and accurate in obtaining location and velocity of any vehicle anywhere in the<br>Philippines? I badly need some help for my final project, because i'm an ECE<br>student here in our country, thanks a lot.</p>
<p>Hi, the module will provide such information if needed. Please have a look at the sample code here</p><p><a>https://www.dfrobot.com/wiki/index.php?title=GPS_M...</a></p><p>(https://www.dfrobot.com/wiki/index.php?title=GPS_Module_With_Enclosure_(SKU:TEL0094))</p><p>on how to get the longitude and latititude, no matter where you're on the Globe. As for accuracy, I can only say that the speed it returns is very accurate (as per my project above); I don't know about the positioning (lat, long), but I assume that would be accurate as well.</p>
Nice project, I saw that you make the speedometer with a led display in a breadboard and I also want to make it with a led display because I want to put it in a karting, and I want to make it as small as possible so can you share me the code.<br><br>Regards, Tomas Mercado.<br><br><br>Here is my email: <br>tomas.mercado07@gmail.com
<p>Hi Tomas, I sent you the code by email, I hope it will work for you.</p>
<p>Very nice idea and well done.</p><p>Only tweak I could see doing would be to use an illuminated display and display upside down so that the display could be laid flat on the dashboard and would show up as a heads up display when reflected off the inside surface of the windshield.</p>
<p>My initial idea was actually something similar to this, using some kind of laser projector, like the ones found in projection clocks, to display the speed onto the windshield. However I am not so sure how that would be visible during daylight or with direct sunlight.</p>
<p>You will find that a dark and light display will reflect fairly clearly off the winshield and illuminated against dark will show up very well after dark. You will likely have to dim the illumination to maintain good visibility through the windshield.</p>

About This Instructable




Bio: Passionate about computers and stuff :-) https://ie.linkedin.com/in/hamiltonniculescu
More by Studvio:Arduino Bluetooth (Android) Drummer Arduino GPS speedometer with a ks0108 - 128x64 GLCD (display) Arduino - Guinea Pig automatic food and water dispenser 
Add instructable to: