Mkr GPS shield sample rate

Good afternoon all,
I've just got myself a Mkr GSM 1400 with a Mkr GPS shield with the aim of recording a motorbike's position while out on a race track and uploading this to a remote server in the cloud...

I've got the GPS shield returning data at a 1Hz frequency, but around a race track, this is insufficient. Preferably I'd be sampling at ~10Hz. I've had a look around and found this thread, but I'm struggling to implement the solution. This thread was initially posted over 2 years ago and has been closed (I'm guessing due to inactivity)... I've been searching around for quite some time and haven't been able to find any further information.

I've seen that TinyGPS++ may be of use, but I don't really know how I would be able to use that library with the Mkr GPS shield... This thread indicates someone's been able to get this set up in an attached shield configuration, but I'm hoping to use the I2C cable and run it as an I2C device as opposed to a serial device.

Does anyone have any advice and potential pointers of where to look?

Thanks a bunch,
Adrian

The Mkr GPS shield uses the SAM-M8Q module from UBlox, and is capable of 10 Hz position reports. It can be used in either UART or I2C mode.

The various settings are described in the datasheet: https://content.arduino.cc/assets/Arduino-MKR-GPS-Shield_u-blox8-SAM-M8Q_DataSheet_UBX-16012619.pdf

You will need this document: https://www.u-blox.com/sites/default/files/products/documents/u-blox8-M8_ReceiverDescrProtSpec_UBX-13003221.pdf

It looks like the MKR GPS shield library is about as minimal as possible, so you will have to figure out how to command the 10 Hz update rate by careful reading of the module documentation. To test commands, I recommend downloading the U-Center software from UBlox and run it on a PC.

Tinygps++ should work if you change the baud rate to 9600. TinyGPS++ works with the GPS module, which then talks to the board, so the I2C cable from the board should work normally.

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