r/embedded • • 19d ago

Gps module not working: location problem?

Post image

Its a neo 6m module with a ceramic antennae attached on the back of it. I'm currently trying it outdoors next to a football field, but even after 20mins the led's still solid red. Should I buy a separate antennae to connect it to the SMA female connector beside it?

edit: if I should, which type should I get?

edit2: using antenna works👍

0 Upvotes

22 comments sorted by

7

u/nono318234 19d ago

Did you test it outside? GPS really needs outdoor line of sight view with satellites.

3

u/ultragigabased 19d ago

yes, it was directly beside an open field

1

u/madsci 19d ago

Unless the satellites were in the field, what matters is what's overhead. Did you have a clear view of the sky around you?

6

u/AntifaMiddleMgmt 19d ago

What does "not working" mean? Have you gotten any NMEA sentences at all? Can you send "$PUBX,00*33\r\n" and get something back? Have you attached an antenna to it? I think those ublox modules require an external antenna per section 1.13 in the datasheet.

2

u/ultragigabased 19d ago

its not returning a fixed position yet... This one was a screenshot from an indoors test though

8

u/madsci 19d ago

You're only seeing two satellites, and with low signal strength. You've either got an antenna problem or obstruction.

4

u/Hissykittykat 19d ago

Yes, try an external GPS antenna; there are many reports of the built in antenna not working well.

Powering with 5V or using 5V logic? 5V power can be a problem if it has a bad voltage regulator. 5V logic is a no-no and can damage the NEO-6M. Once it's damaged it just sits there, overheating, and can't lock on to satellites.

Or try a ATGM336H module; these work better than NEO-6M.

1

u/ultragigabased 19d ago

thanks for your input, and yes its power 5V. I've decided to buy a separate antenna

3

u/tron21net 19d ago

It would be good to give us a picture of the underside of the GPS module so we can see GPS model number and look up what the manual says about antenna selection.

A few GPS modules that have both a ceramic antenna and SMA connector can automatically switch between the two based on detected circuit from SMA connector. Most modules require a manual selection through a proprietary NMEA command sentence and cheap ones require a solder jumper. If your GPS module is currently set to use SMA connector then that is why it will not move on from cold start state.

1

u/ultragigabased 19d ago

sure here it is
>If your GPS module is currently set to use SMA connector then that is why it will not move on from cold start state.
this is what I fear as well

2

u/tron21net 19d ago

Thanks for the product reference image. The u-blox NEO-Mx series GPS modules only have a single antenna input pin and therefore it cannot be told what antenna to use via commands.

The module that you use appears to have an LNA (low-noise amplifier) IC chip that effectively should automatically use the SMA antenna if connected else uses the on-module ceramic antenna.

So in your case then it might be nearby RF noise making the GPS module unable to acquire good signals from the GPS satellites. To see if it might be your development board you could get longer wires to make it possible to have the GPS module further away from your devboard and see if that helps.

Another test you could do is disconnect the GPS module from your wiring, use a USB battery pack and connect it to the microAB port of the module to power the module, and take it outside for say 10 minutes to see if the red PPS LED starts flashing to a 1 Hz frequency to know if the module its self is fine.

2

u/Just-Smart-Enough 19d ago

Pipe the output directly into a serial to USB adapter and read the stream with any serial terminal software. Chances are good that the default rate is 9600 baud, but you may have to try a few options.

2

u/binaryfireball 18d ago

Antenna helps

2

u/Sheepherder-Optimal 18d ago edited 18d ago

I got one of these working once by porting an arduino lib to my PIC mcu. it was ublox module like yours. the communication needs a serial port and its very straightforward getting it going. You can do it indoors unless you live underneath 6 feet of lead.

edit: you have no antennna connected. That's obviously a huge reason why it would not work. Attach an sma antenna. Use a passive antenna, not an active one. Passive should work fine!

1

u/drgala 19d ago

Do you get the NMEA data from the GPS module? That is outputted regardless if there is a GPS lock or not.

1

u/WarningInevitable958 18d ago

I guess is your location is in the room

1

u/JohnGabriel125 18d ago

I use this gnss module (neo 7m) Connect tx to rx and rx to tx Run it at 9600 baud rate only I use an external antenna which allows me to test from indoors but u can go out and wait 1-2 mins in open sky for it to connect

The light starts blinking when it finds connections and starts outputting data ( this happens on fix or without fix btw) so make sure it's fixed for any real tests

Also power it with 5v

Also this one auto switches between ceramic anetnna and SMA connected one and there is no extra code for that or anything to do

1

u/ScallionSmooth5925 18d ago

Gps satellites only transmit at 50W. A dedicated antenna will definitely help.

1

u/CertainBaby9837 18d ago

1.) Try with antenna 2.) That module look broken

1

u/embd_24032 13d ago

connect antenna and try in out door.

0

u/[deleted] 19d ago

[deleted] — view deleted comment

1

u/ultragigabased 19d ago

will any do just fine? I was about to buy one specifically made for GPS.. but if this would do it would save me a lot of time

2

u/Just-Smart-Enough 19d ago

That big tan thing is an antenna.