Baud rate problem using a HGLRC M80 GPS module

Hello everyone!

I would like to use an HGLRC M80 GPS module with an Arduino UNO R3 board. I used this code to display NMEA data:

#include <SoftwareSerial.h>

const int RXPin = 9;
const int TXPin = 10;

SoftwareSerial gpsSerial(RXPin, TXPin);

void setup() {
  Serial.begin(115200);
  gpsSerial.begin(115200);
}

void loop() {
  while (gpsSerial.available()) {
    char data = gpsSerial.read();
    Serial.print(data);
  }
}

I have set the baud rate to 115200 as specified in the module specifications. However, the terminal displays wrong characters (see screenshot). I also tried all the standard baud rates (9600, 38400, 57600...).

Here are the specifications of the module:

"Item Name: HGLRC M80 GPS
Chip: M8030
Power Supply: 5V
Antenna: Ceramic Antenna
Receiving Format: GPS,GLONASS,GALILEO,QZSS,SBAS,BDS
Receiving Channel: 72 Searching Channel
Support Rate: 115200dps
Output Frequency: 1Hz-10Hz,Default 10Hz
Speed Precison: 0.05 m/s
Level Positioning Precison: 2D Acc1.5m(ln Open Sky)
Receiving Sensitivity: Trace -167dBm
Capture -160dBm
Dynamic Characteristics: Max Height:50000m
Max Speed: 500m/s
Max Acceleration: 4G
Working Temperature: -40℃-+85℃
Storage Temperature: -40℃-+105℃
Size: 18.5mm x 18.5mm x 7.1mm
Weight: 9.4g"

HGLRC M80 GPS for FPV Racing Drone – HGLRC Company

Do you have any suggestions for solving the problem?

Thank you in advance.

If the GPS has a default baud rate of 115200 then you will need to use an Arduino with a Hardware Serial port.

Software serial will only work reliably up to a baud rate of 19200, somtimes 38400.

Thank you for your reply! I will try to use the Rx (0) and Tx (1) hardware pins on the Arduino board.

The RX0 and TX0 hardware serial port is used for the program upload and Serial terminal.

Yes, I tried instead to use a 9V battery and switch on or off the built-in LED (pin 13) when more than 1 satellite is available, for example. This is just to test the GPS module. I use the TinyGPS++ library, but it still does not work. I will try to find out why.

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