ZED F9P slow I2C response

Hi All,

I am making an autonomous lawnmower using the ZEDF9P module from sparkfun.

I am really struggling with I2C response times. The average read is taking over 50ms.

Has anyone else suffered the same issue ? Any tips or tricks appreciated.

I am using V2.2.16 of the include library

Teensy 3.2 microcontroller

Here is the code I am using to setup and read the device.

Data comes through fine… Just takes ages. Testing has shown between 30 and 70 milliseconds per read.

Any help super appreciated.

Paul.

#include <SparkFun_u-blox_GNSS_Arduino_Library.h>
#include <u-blox_config_keys.h>
#include <u-blox_structs.h>
#include <Wire.h>

SFE_UBLOX_GNSS myGNSS;

void setup (){

 Wire.begin();
myGNSS.begin();
myGNSS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise)
 myGNSS.setNavigationFrequency(10); //Set output to 10 times a second. 
 }
  void loop() {

//(poll 10 times a second)
latitude = myGNSS.getLatitude();
longitude = myGNSS.getLongitude();

}

You can raise your issue here: https://github.com/sparkfun/SparkFun_Ub … /issues/40

Hi Bidrohini,

Thanks for that link. Really good information.

Removed the pullups and much better performance. More like 30 millisecond times now. Still not great but a heap better than what I had.

Paul.