GPS parsing with PA1010D and M0 with I2C

GPS PA1010D M0 I2C

Pre-requisites

Use Adafruit GPS module PA1010D with Arduino M0 (with micro-controller SAMD21G) to display parsed GPS data via the I2C protocol.

Code

Download code
#include <Adafruit_GPS.h>

Adafruit_GPS GPS(&Wire);

void setup() {
  while (!Serial) {}
  SerialUSB.begin(115200);
  SerialUSB.println("Hello GPS test with I2C!");
  GPS.begin(0x10);  // The I2C address to use is 0x10
}

void loop() {
  if (SerialUSB.available()) {
    char c = SerialUSB.read();
    GPS.write(c);
  }
  if (GPS.available()) {
    char c = GPS.read();
    SerialUSB.write(c);
  }
}

Serial console

Serial output from the firmware.

GPS parsing with PA1010D and M0 with I2C serial console

Prototype

A photo of the actual setup.

GPS parsing with PA1010D and M0 with I2C prototype

Schematic

Wire up the hardware accordingly

GPS parsing with PA1010D and M0 with I2C schematic

References