Skip to main content
Arduino

Timeline for How to interpret the data from GPS GY-NEO6MV2 using Arduino Uno?

Current License: CC BY-SA 3.0

19 events
when toggle format what by license comment
Jun 17, 2020 at 8:21 history edited Community Bot
Commonmark migration
Apr 13, 2017 at 12:50 history edited Community Bot
replaced http://arduino.stackexchange.com/ with https://arduino.stackexchange.com/
Feb 21, 2017 at 1:52 comment added Fazeleh Sorry I couldn't make it to the chat. I updated the code once again and it worked. I just needed to put gps.available() and a delay before every gps.read(). However, your code still doesn't work on my device.
Feb 13, 2017 at 15:22 comment added slash-dev Let us continue this discussion in chat.
Feb 13, 2017 at 15:22 history edited slash-dev CC BY-SA 3.0
added 1 character in body
Feb 13, 2017 at 14:32 history edited slash-dev CC BY-SA 3.0
alternative test
Feb 13, 2017 at 7:28 comment added Fazeleh Also, when I use your code, it says that gps is not available, but when I use my code, the gps is available. I have already made that change in my code.
Feb 13, 2017 at 7:27 comment added Fazeleh After I updated my arduino from 1.6 to 1.8 things have changed. Now, when I do byteGPS=gps.read() and Serial.print(byteGPS), it works perfectly and prints the gps data in Serial Monitor. However, when I put it in an array, some data goes missing. I am not sure if it is because of the speed of arduino uno, which is less than the gps data coming or not.
Feb 12, 2017 at 16:48 comment added slash-dev So the NeoGPS program displays the GPS data in the Serial Monitor correctly? What do you mean by "pipe it to my program"? The NeoGPS program is reading gps_port correctly, parsing the characters, and filling out the fix structure. Then it prints the parsed values to Serial, but you could do whatever you want with fix.latitude() (for example). Your original program would never work, for the 7 reasons listed above. The -1 you get from gps.read() is reason #3. You only fixed reasons #1 and #2.
Feb 12, 2017 at 15:45 comment added Fazeleh I updated my question. The problem is that I am receiving -1 in gps.read() since the buffer is empty.
Feb 12, 2017 at 15:28 comment added Fazeleh I updated the IDE to 1.8 and I got it compiled with no errors. However, I still have exactly the same issue; I get no results. The problem is that the GPS output appears in the "Serial Monitor" correctly, but SoftwareSerial, NewSoftwareSerial and NeoSWSerial fail to get it and pipe it to my program. I get a bunch of -1 s instead of actual characters.
Feb 9, 2017 at 13:28 comment added slash-dev Which IDE exactly? (1.6.x could be any of 13 IDEs.) What errors? If it is about "hdop", you have to enable HDOP in GPSfix_cfg.h, too. I've added that check to the above sketch.
Feb 9, 2017 at 13:28 history edited slash-dev CC BY-SA 3.0
add compile-time check for HDOP configuration item
Feb 9, 2017 at 3:02 comment added Fazeleh My IDE version is 1.6.X but I updated NEoGPS_cfg.h and now I see more errors.
Feb 6, 2017 at 15:13 history edited slash-dev CC BY-SA 3.0
added 1 character in body
Feb 6, 2017 at 15:12 comment added slash-dev What IDE version? 1.6.8 and 1.8.1 work fine for an UNO. 1.7.x did not compile, but it had a different error. I've updated NeoGPS_cfg.h to accommodate 1.7.x (again :-/).
Feb 6, 2017 at 9:26 comment added Fazeleh This code causes an error error: ‘pgm_read_ptr’ was not declared in this scope which is a result of __AVR__ not being defined. Is there a work around to this? I tried defining it in GPSfix_cfg and NMEAGPS_cfg, but it didn't work.
Feb 6, 2017 at 9:14 comment added Fazeleh Since I am using Uno, is it ok to use Serial instead of Serial1?
Feb 4, 2017 at 16:56 history answered slash-dev CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /