DIY GPS Speedometer using Arduino and OLED

Submitted by Tommy on Sun, 09/20/2020 - 02:05

 Displays "No Data" then a small value ie .24 the after 20 seconds appears to lock up.

NANO shows "Low memory available, stability problems may occur"

 

Could this be causing problem?

I did not understand your question, can you please clarify.

  Joined December 02, 2019      117
Monday at 10:02 PM

The question is  could low memory be causing GPS to freeze-up

  Joined September 20, 2020      3
Sunday at 01:22 AM

I dont think that is the issue.

  Joined December 02, 2019      117
Monday at 10:02 PM

Seems like the code that is you are compiling is taking a lot of space compared with the space avalability in NANO. Before understanding what is the problem, as this is supposed to be an Error massage, did your code got flashed perfectly? Can you provide the log messages of the Arduino IDE?

  Joined February 12, 2018      696
Monday at 02:11 PM

Hi.. It seems there could be two problems

1. Your display is showing "No data" or any data near to 0 means, you have already successfully uploaded code to Arduino and your device is in static condition. So try to move the device constantly for a minimum time of 20 seconds to that your OLED would display the updated speed data.

2. Secondly, the code is occupying a lot of memory which is critical for Arduino Nano, you can see the warning with a percentage of memory occupancy in error log. But this is a warning, as you have already uploaded the code, there should be no issues.

  Joined August 22, 2019      125
Thursday at 12:29 PM

After applying power the display shows "No Data" for approx 20 seconds then it displays random numbers for approx 10 seconds then it appears to lock up until I reset NANO then the same thing happens. I have ordered a different GPS Module to try and I will repost the results.

Thanks for replying

  Joined September 20, 2020      3
Sunday at 01:22 AM

UPDATE:

Finally got the Speedometer project working, I retyped,

line 48 "display.print(gps.speed.mph());" and it started working I do not have an explanation if anyone has an answer would appreciate knowing why it fixed it.

Thanks for all the response

  Joined September 20, 2020      3
Sunday at 01:22 AM

Maybe it is a compiler error.

  Joined February 12, 2018      696
Monday at 02:11 PM

Please express a doubt to me. The RX pin is the D2 pin or the rx pin as it is in the scheme???
Adafruit_SH1106 display(OLED_RESET);
int RX = 2, TX = 3;
TinyGPSPlus GPS;
SoftwareSerial gpssoft (RX, TX);
void setup()
RX is D2???? or the NANO RX pin?
In the drawing is as being the RX of the nano.
I don't get any speed information and I've already checked my GPS and it's working

  Joined May 19, 2021      2
Wednesday at 06:43 AM

Could you please help me? want to put on my daughter's bike

  Joined May 19, 2021      2
Wednesday at 06:43 AM

The RX is the D2 pin of the nano.

  Joined February 12, 2018      696
Monday at 02:11 PM