GPS NEO6MV2 no data, even gibberish

Hello, I followed every thread about this module and I'm lost.
I use it with nano.

I have blinking diod on gps, but I don't receive anything.
I tried connecting VCC on gps with 3.3V PIN, 5VPIN and to 5V powerbank with shared ground with arduino.
I tried connecting TX on gps with either digital pin or rx pin.
I checked if there isn't any break on wire, everything is ok.
Bellow is simples code I found and use.

SoftwareSerial gps(2,-1);
void setup() {
  Serial.begin(115200);
  gps.begin(9600);
}
void loop() {
while (gps.available()>0)
  {
    Serial.write(gps.read());
  }
}

Baud in serial monitor set to 115200, I left on for half an hour (led blinking whole time), I got nothing.
gps.available() is always false

Welcome to the forum

SoftwareSerial gps(2,-1);

I appreciate that you only want to receive data and not transmit it but I don't like the idea of using -1 as a pin number parameter.

What happens if you use a real pin number ?

My savior, I had it set to some pin at beginning, but since it didn't work and I saw -1 in working projects I set it to -1 maaaany tries and go and didn't thought to come back.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.