mikalhart / TinyGPSPlus

A new, customizable Arduino NMEA parsing library
http://arduiniana.org
1.05k stars 486 forks source link

No GPS detected: check wiring. #50

Closed StackerDEV closed 5 years ago

StackerDEV commented 5 years ago

Hi,

I am trying to test out my Neo6MV2. I have wired it like this; https://www.bitsandparts.eu/blog/gps-module-ublox-neo6mv2-arduino-tutorial/

but it still says: No GPS detected: check wiring.

I have also tried TinyGPS, NeoGPS. None of them seem to be able to get contact with my GPS module.. I have double checked the wiring, bad module? I have a Uno with a Atmega328P-PU on it and using the stock Arduino ide.

AlyssonRowan commented 5 years ago

You might like to check that your GPS is configured correctly. I have one that resets to binary mode when it has been powered off for a while.

Alysson Rowan

LinkedIn: https://www.linkedin.com/in/alysson-rowan-68521692 Academia: https://independentscholar.academia.edu/AlyssonRowan

On 19 August 2018 at 01:45, Stacker notifications@github.com wrote:

Hi,

I am trying to test out my Neo6MV2. I have wired it like this; https://www.bitsandparts.eu/blog/gps-module-ublox-neo6mv2- arduino-tutorial/

but it still says: No GPS detected: check wiring.

I have also tried TinyGPS, NeoGPS. None of them seem to be able to get contact with my GPS module.. I have double checked the wiring, bad module?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mikalhart/TinyGPSPlus/issues/50, or mute the thread https://github.com/notifications/unsubscribe-auth/AIbX4sR9OXpSQdlyi284PNM6Cr1AyNuqks5uSLURgaJpZM4WCxoz .

StackerDEV commented 5 years ago

@AlyssonRowan Is there any example out there that you recommend using? I mean a small guide/manual on all the steps to get it to work properly so to get started with this. I feel like I am missing a step somewhere. Thanks!

Edit; i tried u-center v18.06, the module doesn't work here either. I think I have a defective module polling fails in all ways, I also can't change the config..

Fbo06 commented 5 years ago

Hello, did you cross the wire between Tx and Rx ? GPS Tx -> Arduino board pin RX GPS Rx -> Arduino board pin Tx

mikalhart commented 5 years ago

Thanks for the help @Fbo06 and @AlyssonRowan.

Yes, the most common error is connecting TX to TX. TX on the GPS side should be connected to RX on the Arduino side. This problem is exacerbated by the fact that some devices are labeled in reverse. Try both orientations.

Next most common error is incorrect baud rate. Most common these days is 9600; check your device specs. The examples mostly default to 4800, so these should be changed.

Another common error when using SoftwareSerial is switching the TX and RX in the constructor. The RX pin goes first. SoftwareSerial ss(RXPIN, TXPIN);

The first thing I do when things go amiss for me is make sure I'm getting sort-of human readable text from the GPS. This is usually just a matter of writing a simple loop like this:

while (true) { if (ss.available()) Serial.write(ss.read()); }

If this shows nothing, your wiring is probably wrong. If it shows garbage, either your baud rate is wrong or your device, as @AlyssonRowan suggests, is configured to binary mode.

M

StackerDEV commented 5 years ago

@mikalhart @Fbo06 Both, thanks got it working. I messed up on the RX/TX part. Gps RX must connect to TX on arduino and GPS TX to RX (doh..). I also found out that the vender that sold it to me listed it as 3.3 volt to power the module. When I connect it to 3.3volt with the voltage devider in place the gps module won't work properly. When I supplied 5v it worked like a skookum gps module. Got a fix in less than a minute.

working

mikalhart commented 5 years ago

Great, thanks for sharing your results.

callagga commented 5 years ago

@mikalhart was there a run to run code against a GPS module connected to your quad via betaflight and the quad's mini-USB somehow? Or do you need to get a "TDI USB to TTL Serial Converter" and connect the GPS module to this?

Steveiwonder commented 3 years ago

Thanks for the help @Fbo06 and @AlyssonRowan.

Yes, the most common error is connecting TX to TX. TX on the GPS side should be connected to RX on the Arduino side. This problem is exacerbated by the fact that some devices are labeled in reverse. Try both orientations.

this was the most helpful comment, i through a module away and got a second one thinking i screwed it during soldering. However, i was TX->TX and RX->RX ... but obviously i makes sense that TX from Arduino goes to RX on GPS and RX from GPS goes to RX on arduino!! How stupid of me.

ghost commented 3 years ago

Hi,

I am trying to test out my Neo6MV2. I have wired it like this; https://www.bitsandparts.eu/blog/gps-module-ublox-neo6mv2-arduino-tutorial/

but it still says: No GPS detected: check wiring.

I have also tried TinyGPS, NeoGPS. None of them seem to be able to get contact with my GPS module.. I have double checked the wiring, bad module? I have a Uno with a Atmega328P-PU on it and using the stock Arduino ide.

i have the same problem can anybody help me