NeoGPS Library configuration

Hello everyone, I've been trying to make a project with arduino nano and Neo6 GPS sensor for a long time.
I need to get the speed written on oled screen, but the refresh rate is slow.
So I'm trying to enable only the VTG string inside the NMEAGPS_cfg.h file

//#define NMEAGPS_PARSE_GGA
//#define NMEAGPS_PARSE_GLL
//#define NMEAGPS_PARSE_GSA
//#define NMEAGPS_PARSE_GSV
//#define NMEAGPS_PARSE_GST
//#define NMEAGPS_PARSE_RMC
#define NMEAGPS_PARSE_VTG
//#define NMEAGPS_PARSE_ZDA'''

then defining the following

#define LAST_SENTENCE_IN_INTERVAL NMEAGPS::NMEA_VTG

recalling with

 while (gps.available( gpsPort )) {

     fix = gps.read();
   }
   if (fix.valid.speed) {
     Speedgps = (fix.speed_kph());

once the code has been reloaded on the arduino, however, the update speed does not change.
Can you please help me understand.

Thats to be expected.

You also need to change the GPSs update speed to make it update faster.

ondo you how much I have to put

const unsigned char UBLOX_INIT[] PROGMEM = {
  // Rate (pick one)
  //0xB5,0x62,0x06,0x08,0x06,0x00,0x64,0x00,0x01,0x00,0x01,0x00,0x7A,0x12, //(10Hz)
  //0xB5,0x62,0x06,0x08,0x06,0x00,0xC8,0x00,0x01,0x00,0x01,0x00,0xDE,0x6A, //(5Hz)
  0xB5,0x62,0x06,0x08,0x06,0x00,0xE8,0x03,0x01,0x00,0x01,0x00,0x01,0x39, //(1Hz)

Meaning ?

Sorry
In your opinion, how much I have to put

Default refresh rate is normally 1Hz.

So maybe try one of the other settings to see if its better ?

I tried all three frequencies but nothing changes

By default the Neo6 is set to "Portable" mode, if you use it in a car it is better to set it in "Automotive" mode.
Install U-certer 22.07 from the U-blox page to configure it.
You can change the mode in the "NAV5" tab of the "Configuration View".
Anyway the speed solution is not instantaneous, it takes a couple of seconds, you notice it when you stop the car.

Try it in U-Center as suggested.

:+1:

With U-Centre you can execute the appropriate configuration command and see the effect it has on the GPS output.

There is a window that shows the HEX of the command you are sending.

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