Hi
I’m a newcomer to Sparkfun QWIIC sensors and have run into a problem when I connect up an Arduino R4 WiFi with the Sparkfun Neo-M9N breakboard board using the QWIIC connectors.
Having trawled though multiple posts on QWIIC issues, I was aware that I would have to make a change to Wire.begin(); to Wire1.begin(); but when I upload the sketch to the Arduino R4, select the Serial Monitor and set the baud rate to 115200, absolutely nothing appears on the monitor.
Any suggestions as to why this might be the case? . I have pasted the BasicNMEARead.ino example sketch below.
Best regards
Joe C
/*
Read NMEA sentences over I2C using Ublox module SAM-M8Q, NEO-M8P, ZED-F9P, etc
By: Nathan Seidle
SparkFun Electronics
Date: August 22nd, 2018
License: MIT. See license file for more information but you can
basically do whatever you want with this code.
This example reads the NMEA setences from the Ublox module over I2c and outputs
them to the serial port
Feel like supporting open source hardware?
Buy a board from SparkFun!
ZED-F9P RTK2: https://www.sparkfun.com/products/15136
NEO-M8P RTK: https://www.sparkfun.com/products/15005
SAM-M8Q: https://www.sparkfun.com/products/15106
Hardware Connections:
Plug a Qwiic cable into the GPS and a BlackBoard
If you don’t have a platform with a Qwiic connection use the SparkFun Qwiic Breadboard Jumper (https://www.sparkfun.com/products/14425)
Open the serial monitor at 115200 baud to see the output
*/
#include <Wire.h> //Needed for I2C to GPS
#include “SparkFun_Ublox_Arduino_Library.h” //Click here to get the library: http://librarymanager/All#SparkFun_Ublox_GPS
SFE_UBLOX_GPS myGPS;
void setup()
{
Serial.begin(115200);
Serial.println(“SparkFun Ublox Example”);
Wire1.begin();
if (myGPS.begin() == false)
{
Serial.println(F(“Ublox GPS not detected at default I2C address. Please check wiring. Freezing.”));
while (1);
}
//This will pipe all NMEA sentences to the serial port so we can see them
myGPS.setNMEAOutputPort(Serial);
}
void loop()
{
myGPS.checkUblox(); //See if new data is available. Process bytes as they come in.
delay(250); //Don’t pound too hard on the I2C bus
}