GPS PA1010D with M0

GPS PA1010D UART

Use GPS module PA1010D with Arduino M0 (SAMD21G) to display GPS data.

Code

Download code
#define GPSSerial Serial1

void setup() {
  while (!Serial) {}
  SerialUSB.begin(115200);
  GPSSerial.begin(9600);

  SerialUSB.println("Hello GPS");
}

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

Serial console

Serial output from the firmware.

GPS PA1010D with M0 serial console

Prototype

A photo of the actual setup.

GPS PA1010D with M0 prototype

Schematic

Wire up the hardware accordingly

GPS PA1010D with M0 schematic

References