GPS Modules with Ar...
 
Notifications
Clear all

GPS Modules with Arduino and Raspberry Pi

78 Posts
19 Users
3 Reactions
13.6 K Views
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8047
 

@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, 360, fairly knowledge in PC plus numerous MPU's & 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.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@witchdoc59)
Member
Joined: 2 years 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: 4 years ago
Posts: 8047
 

@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, 360, fairly knowledge in PC plus numerous MPU's & 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.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Page 6 / 6