Hello everyone. I am working on a project Asset tracking using NEO 6M GPS module and Nano BLE 33 sense Board.
The GPS module is not getting ONed or say the led of GPS module is not blinking when connected it to nano. We initially thought the reason for this maybe due to weak satellite signals so we tried implementing on terrace and balcony under clear sun and yet the led didn't blink.
Our GPS module looks little displaced. (AS IN THE IMAGE ATTACHED). Is the displacement in the GPS module the reason for the GPS led not blinking ? We are trying to check if GPS is sending something over the serial port. Can anyone please help us with code errors:
void setup() {
Serial1.open(9600); // this is the GPS device connected over "Serial1" - note trailing 1
Serial.open(9600); // this is connected to your laptop as usual connected over "Serial"
Serial.println("Connected to Serial 1 : GPS\n");
}
void loop() {
int incoming_byte = 0;
while (Serial1.available()) {
incoming_byte = Seria1.read();
// write it to laptop
Serial.print("%c",incoming_byte);
}
}
Errors we encountered are:
'class arduino :: UART' has no member named 'open'
Does your GPS module talk (Tx) with 3.3V or 5V ?
Your arduino is a 3.3V system, GPIOs should not be exposed to higher voltage
To your initial question, the resistor that is poorly soldered could be an issue if it’s not touching its pad or touching electrically a nearby component. From what you posted it appears to be fine but worth checking and definitely Not great quality
I don't know this module, but some GPSs take a very long time (>10 mins) to find a good position especially after first power up or a long power down.
As @srnet says, ideally they need to be powered up in an open space with clear views of the sky all round.
The problem is they need to synchronise the internal clock with the satellites and synchronise their "skymap" with their current position, which of course they don't know.
If they are faulty or just plain poor that can be true.
If the GPS is working properly, has a decent antenna, and is in an open area with a good view of the sky the GPS should get a fix in circa 45 seconds. That is true even if its been powered down for some years.
The picture shows two Neo 6M GPSs, these modules are standard Serial GPSs.
So a program copying (echoing) the serial characters received from the GPS to the IDE serial monitor is good for seeing whats going on, a GPS 'library' might not tell you.
Possibly, its not how long its been powered off thats the problem.
Modern GPSs, including the Neo6M, can search the GPS channels very quickly, so typically it only takes 45 seconds for it to seach all available channels to first find 4 satellites with good signals and then download the data it needs for a fix.
My bad - missed your point (it was a picture of a drawing )
I think the pic was to show the poorly soldered resistor (left is the image from the site he ordered from and right is what he got - that’s how I understood it)
On a second sight - the pins are really poorly soldered too. This needs to be re done
To solve the problem,you need to work out what the problem is.
With the GPS powered, check the TX output with an oscilloscope to see if its producing any serial output.
Also be aware that some GPS modules helpfully label the conections\pins in the sense of what you should connect them to rather tha what they are. So the TX pin on the GPS could be the pin that is meant for the TX pin on the Arduino.