GPS Arduino !HELP!

Hello, I have this device -> GY-GPS6MV1 NEO I'm new to this, I have looked online and connect each of your points. But I have not managed to get it going. I have tried more than 5 codes and nothing. No passes Serial.available () no longer returns anything.

If anyone can help me, I appreciate it. Skype -> ronin.96

I have this device → GY-GPS6MV1 NEO

Your “link” doesn’t work. Try again.

and nothing.

Yep. That’s what you posted.

No passes Serial.available () no longer returns anything.

A relatively useless collection of words, in the absence of any code.

Arduino UNO ??
connect 3 lines minimum…
gnd-gnd
5V(or 3.3) - Vcc
TX on gps to pin 3

copy code

#include <SoftwareSerial.h>

SoftwareSerial gps(3,4); // RX, TX  Connect GPS TX to pin 3
void setup()
{
  Serial.begin(115200); // be sure to check lower right corner info in an open 'serial windows'
  gps.begin(9600);  // may be 4800, 19200,38400 or 57600

}

void loop()
{
  if (gps.available())  Serial.write(gps.read());
}

PaulS Sorry for my English :S Link GPS

knut_ny Nothing, I have tried many things If you can contact me in SKYPE. -> ronin.96

Thanks

I'v seen different types of theese serial GPS. The have been preset to 2400,4800,9600 og 57600 baud. Then the GPS is connected, it starts sending out serial data every second. (plain ASCII-text)

The program prom previous reply is 100% working. The problem must be in speed settings to the GPS or to Serial.window.

Speed in your serial windows (shown in lower right corner in an open windows) must be 115200, to match "Serial.begin(115200)"

The GPS speed is a 'standard' serial speed (1200,2400,4800,9600,19200,57600,115200)

Mmm
I tested with this code

#include <SoftwareSerial.h>

SoftwareSerial gps(3,4); // RX, TX  Connect GPS TX to pin 3
void setup()
{
  Serial.begin(115200); // be sure to check lower right corner info in an open 'serial windows'
  gps.begin(9600);  // may be 4800, 19200,38400 or 57600

}

void loop()
{
  if (gps.available())  Serial.write(gps.read());
}

Result :

$PGV1,,231,303,,3*B
$PGL,,,213.0,,*C
$GPRMC,221633.00,V,,,,,,,210314,,,N*7F
$GPVTG,,,,,,,,,N*30
$GPGGA,221633.00,,,,,0,00,99.99,,,,,,*61
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$PSV11,231,303,,3*A
$PLL,,,263.0V,*D
$GPRMC,221634.00,V,,,,,,,210314,,,N*78
$GPVTG,,,,,,,,,N*30
$GPGGA,221634.00,,,,,0,00,99.99,,,,,,*66
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$PSV11023,,3,3,,3*8
$PLL,,,263.0VN*A
$GPRMC,221635.00,V,,,,,,,210314,,,N*79
$GPVTG,,,,,,,,,N*30
$GPGGA,221635.00,,,,,0,00,99.99,,,,,,*67
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
GPS,11023,,4,3,,17C
GPL,,,216500VN*B
$GPRMC,221636.00,V,,,,,,,210314,,,N*7A
$GPVTG,,,,,,,,,N*30
$GPGGA,221636.00,,,,,0,00,99.99,,,,,,*64
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
GPS,110,3,,3,3,,2*F
GPL,,,216600VN48
$GPRMC,221637.00,V,,,,,,,210314,,,N*7B
$GPVTG,,,,,,,,,N*30
$GPGGA,221637.00,,,,,0,00,99.99,,,,,,*65
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$PSV11023,,3,3,,1*C
$PLL,,2267.0V,*9
$GPRMC,221638.00,V,,,,,,,210314,,,N*74
$GPVTG,,,,,,,,,N*30
$GPGGA,221638.00,,,,,0,00,99.99,,,,,,*6A
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$PS,11023,,2,3,,1*0
GPL,,,226800VN*6
$GPTXT,01,01,02,u-blox ag - www.u-blox.com*50
$GPTXT,01,01,02,HW  UBX-G60xx  00040007 FF7FFFFFp*53
$GPTXT,01,01,02,ROM CORE 7.03 (45969) Mar 17 201 6:8345
$GTT,1010,NTUER=CSDPoSS*0
$PTT010,0,NSTTS=OTKO*3
$PRC,V,,,,,N*3

Congratulations, now move it outside so it can get a fix.

WOW!!! THANKS!
:slight_smile:

But in the longitude and latitude don’t appear the dots.

GPL,42.263N,02.840,,245.0,,*7
$GPRMC,224453.00,A,4227.82672,N,00225.88447,W,0.408,,230314,,,A*67
$GPVTG,,T,,M,0.408,N,0.755,K,A*28
$GPGGA,224453.00,4227.82672,N,00225.88447,W,1,52.639.,M4.9M,*6
GPS,A3213,7,825,,,,2862161880
$GGV,,,1,3,726,0,0,3,,30339,1,9,0,1*F
$PGV32,1181,12332,8,0,9,51212,4272,642*7
$GGV,,,1,92903,7314,054,3,919,3*7
$PLL42.862,,025884,,24530,,A7
$GPRMC,224454.00,A,4227.82670,N,00225.88439,W,0.368,,230314,,,A*6A
$GPVTG,,T,,M,0.368,N,0.682,K,A*22

N, 00225.88439 :~

Now i use this

#include <SoftwareSerial.h>
#include <TinyGPS.h>
 
 
#define GPS_RX_PIN 3
#define GPS_TX_PIN 4
long lat,lon; // create variable for latitude and longitude object
 
SoftwareSerial gpsSerial(GPS_RX_PIN, GPS_TX_PIN); // create soft serial object
TinyGPS gps; // create gps object
 
void setup(){
  Serial.begin(9600); // connect serial
  gpsSerial.begin(9600); // connect gps sensor
   pinMode(GPS_RX_PIN, INPUT);
   pinMode(GPS_TX_PIN, OUTPUT);
}
 
void loop(){
  while(gpsSerial.available()){ // check for gps data
   if(gps.encode(gpsSerial.read())){ // encode gps data
    gps.get_position(&lat,&lon); // get latitude and longitude
    Serial.print("lat: ");
    Serial.print(lat);
    Serial.print("          ");
    Serial.print("lon: ");
    Serial.println(lon);
   }
  }
}

Result.

lat: 42463626          lon: -2431535
lat: 42463627          lon: -2431532
lat: 42463629          lon: -2431530
lat: 42463632          lon: -2431526
lat: 42463634          lon: -2431524

the result is wrong
missing the point →
42.463634
-2.431535

$GPGGA,
UTC=224453.00,
42deg 27.82672mins North
002 deg 25.88447 mins West

here ??
read about nmea here: http://fort21.ru/download/NMEAdescription.pdf

here.png

Thanks +1 Karma :)