GPS Modules with Ar...
 
Notifications
Clear all

GPS Modules with Arduino and Raspberry Pi

78 Posts
19 Users
3 Likes
7,865 Views
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6968
 

@witchdoc59 I realized you did sort of publish your sketch and the link to Bill's so here is the first cut at the merged sketch. NOTE: I used the sample sketch, Bill's version is the same just a little neater.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@witchdoc59)
Member
Joined: 1 year ago
Posts: 22
 

@zander Hi there; I managed to get it all working. At line 108 there is a delay().  It seemed to be that area where the sketch was failing. So I commented out the delay and recompiled.  I was pleasantly surprised to see it all start working.  Now to figure out why the altitude is so erratic. And figure out how to manipulate the time for my time zone.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6968
 

@witchdoc59 Good to hear. Yes, delay() is a problem with certain functions as it blocks everything. If you want/need to only sample every x secs or mins then use a standard millis() based delay. 

As far as time zone look at any of the parsing samples, there are I think 3? I2C, HardwareSerial, SoftwareSerial. Good luck.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Page 6 / 6