A
Arduino2mo ago
OranGot

GPS6MV2 problems

I am trying to get some input from my gps and I have a problem. It is that I don't get any input from the gps. I am a noob. Here is my code:
#include <SoftwareSerial.h>

int RXPin = 3;
int TXPin = 2;

SoftwareSerial gpsSerial(RXPin, TXPin);

void setup() {

Serial.begin(9600);
Serial.print("starting\n");

gpsSerial.begin(9600);
}

void loop() {
while (gpsSerial.available() > 0)
Serial.write(gpsSerial.read());
}
#include <SoftwareSerial.h>

int RXPin = 3;
int TXPin = 2;

SoftwareSerial gpsSerial(RXPin, TXPin);

void setup() {

Serial.begin(9600);
Serial.print("starting\n");

gpsSerial.begin(9600);
}

void loop() {
while (gpsSerial.available() > 0)
Serial.write(gpsSerial.read());
}
the only output I see on the serial monitor is the "starting". I should also mention that the led on the gps isn't blinking. The wiring is on the photo attached. When I checked the vcc and gnd of the gps using a multimeter it showed correct 5v. I also tried leaving it outside for about 15 minutes but that did nothing. So what is going on?
No description
50 Replies
Alib
Alib2mo ago
GPS module is wrong! do u have multimeter?
OranGot
OranGotOP2mo ago
yes
Alib
Alib2mo ago
What model is your GPS module? ublox
OranGot
OranGotOP2mo ago
Neo6m-0-001?
Alib
Alib2mo ago
No description
pseud0
pseud02mo ago
It's not even soldered properly
Alib
Alib2mo ago
do you have a schematics of this module?
OranGot
OranGotOP2mo ago
Do I have to? I was hoping I could return it if it's broken
pseud0
pseud02mo ago
nothing is worth checking out before the pin header isn't soldered on properly this thing is held together by hopes and dreams if one wire doesn't make contact all the time it's over you can cleanly desolder the header pins again if you need to
OranGot
OranGotOP2mo ago
Alright I will try. Thank you
Alib
Alib2mo ago
Where did you buy this?
OranGot
OranGotOP2mo ago
on a russian marketplace
Alib
Alib2mo ago
Plz send link address. I will see.
pseud0
pseud02mo ago
Also take care to only use software serial capable pins (which you do) https://github.com/arduino/ArduinoCore-renesas/blob/main/libraries/SoftwareSerial/examples/SerialEcho/SerialEcho.ino#L3-L7 And that your declared TX pin needs to go to the GPS module's RX pin And your declared RX pin needs to go to the GPS module's TX pin Also cold time start is decalred at like 38 seconds under clear sky of that module https://38-3d.co.uk/blogs/blog/how-to-use-the-neo-6m-gps-module-with-arduino is also an example of wireup and code a library.
OranGot
OranGotOP2mo ago
So I should switch them around (tx is connected to d2 and rx to d3) I have tried keeping it outside for about 15 mins and didn't work
pseud0
pseud02mo ago
..but was power and gnd connected connected all the time? without ever slipping off?
Alib
Alib2mo ago
what model is GPS antenna you used? Now, turn GPS antenna. The GPS antenna has a Top surface. Please place the Top surface towards the sky. Now, I think Bottom surface towards the sky. ok?
OranGot
OranGotOP2mo ago
the metal should be at the bottom?
Alib
Alib2mo ago
yes
OranGot
OranGotOP2mo ago
I soldered it together
Alib
Alib2mo ago
first, plz confirm 1S brick LED working of GPS module.
OranGot
OranGotOP2mo ago
no leds are working oh wait did you mean whether they could work
Alib
Alib2mo ago
SO, turn antenna.
OranGot
OranGotOP2mo ago
done
Alib
Alib2mo ago
send photo.
OranGot
OranGotOP2mo ago
No description
Alib
Alib2mo ago
Are you in the room now?
OranGot
OranGotOP2mo ago
which room
Alib
Alib2mo ago
in-door or out-door?
OranGot
OranGotOP2mo ago
indoor ill go out
Alib
Alib2mo ago
If possible, move the antenna closer to the window.
OranGot
OranGotOP2mo ago
I am outdoors now
Alib
Alib2mo ago
Plz test.
OranGot
OranGotOP2mo ago
It doesnt light up
Alib
Alib2mo ago
Plz confirm LED of GPS.
OranGot
OranGotOP2mo ago
Doesnt light up
Alib
Alib2mo ago
do you have multimeter?
OranGot
OranGotOP2mo ago
Yes
Alib
Alib2mo ago
Plz measure +5V power of GPS module?
OranGot
OranGotOP2mo ago
Yes i already measured. Its +-4.9v
Alib
Alib2mo ago
GPS antenna, Did you buy with GPS module PCB together?
OranGot
OranGotOP2mo ago
Yes
Alib
Alib2mo ago
a sec. I see GPS datasheet. did you have other antenna?
OranGot
OranGotOP2mo ago
Yes but it was also another module And that one is not with me but led on that one worked fine But it was used
Alib
Alib2mo ago
I think your GPS module is wrong.
OranGot
OranGotOP2mo ago
Yes it might be. Thank you for trying to help. I will order a new one I guess
Alib
Alib2mo ago
ok
Wäldchen
Wäldchen2mo ago
Hello, sorry for my late answer. It might be interesting if there is any output on rxtx. Do you have the opportunity to read the signalpins? I readed the Problem again. . . i know that GPS Sensors might take a few secs to find all needed satelites. The dataoutput should be in the different formats for GPS nmea sentences. Boudrate the one needed?
OranGot
OranGotOP2mo ago
So I bought a new one and now I get output. Thank you everyone for helping!

Did you find this page helpful?