GPS is build with u-blox M8 NEO-M8N module with an integrated built in active antenna.
The NEO-M8 series provides high sensitivity and minimal acquisition times while maintaining low power usage.
The NEO-M8N integrates a 72-channel u-blox M8 GNSS engine that supports multiple GNSS systems ( Beidou, Galileo, GLONASS, GPS / QZSS ) and able to receive 3 GNSS systems simultaneously.
The series communicate protocol between M5Core and GPS is UART, physically connected via UART2 (GPIO16, GPIO17)
If you want to change the UART baud-rate, please check here ( u-center-just-for-Windows )
Notice: GPS signal can only be found outdoors
UART protocol: baud rate (default is 9600bps), data bit (8 bits), start bit (1 bit), stop bit (1 bit), Parity (none)
M5Stack Fire has occupied GPIO16 / 17 to connect with the PSRAM by default, it's conflict with TXD / RXD (GPIO16, GPIO17) of GPS module. Therefore, when using the GPS module with the M5Stack Fire, you might have to cut the TXD and RXD from GPS module and wire fly to another set of UART pin
1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.
2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn" to start burning.
3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial
To the complete code
GPSRaw.ino, please click
Note: The GPS module needs placed outdoors to be able to receive GPS signal
Please refer to the u-blox 8 / u-blox M8 Receiver Description - Manual , The following table is a description of the xxRMC message in the NMEA protocol as an example.