DIY GPS Speedometer using Arduino and OLED

Tommy's picture

Offline

Joined: Sep 20, 2020

Replies: 3
DIY GPS Speedometer using Arduino and OLED
September 20, 2020 - 2:05am

 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?

Debashis Das's picture

Offline

Joined: Dec 02, 2019

Replies: 98

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

Tommy's picture

Offline

Joined: Sep 20, 2020

Replies: 3

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

Debashis Das's picture

Offline

Joined: Dec 02, 2019

Replies: 98

I dont think that is the issue.

Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 318

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?

Debasis Parida's picture

Offline

Joined: Aug 22, 2019

Replies: 124

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.

Tommy's picture

Offline

Joined: Sep 20, 2020

Replies: 3

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

Tommy's picture

Offline

Joined: Sep 20, 2020

Replies: 3

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

Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 318

Maybe it is a compiler error.