Hi everyone
I am new to Arduino and am using MEGA to get data from NEO-6M (hobbyking). I connected my GPS module to PORT 1 and am trying to read serial data. I am getting junk values. Here is my code:
Junk values could be a baud rate mismatch. Do you have the serial monitor set to 38400? Are you sure that the GPS defaults to (or is set to) that rate?
The serial and serial1 rates don't have to be the same - indeed it's better if Serial is running faster than the GPS on Serial1 - less chance of overflow.
You need to determine what rate the gps is trying to send serial data to the arduino. The default speed will be in the device datasheet, it is unlikely to be 38000, more likely 9600.
Once you have the device working, then it is usually possible to send a command to it, to change the serial speed. But, you need to start with the default speed it uses when it powers on.
The site he got that GPS from clearly states it would be in default mode at 38.400.
The datasheet of the unit however tells that default is 9600 (as suggested by others).
Hi, it seems you use mega 2560
For GPS data it comes with NMEA sentences, you can use TinyGPS++ library to capture the certain data you are interested in
Here goes the link to download the library together with introduction: TinyGPS++Â |Â Arduiniana
Hope you'll soon have FUN with your GPS module
Plus since NEO 6 gives a goddamn 26s as cold start, just be patient until it gets the data like latitude & longitude