MKR1200 (SAMD device) GPS problem

Hello arduino forum, i am trying to receive the GPS data of the neo6m module. I have a MKR1200 arduino, and first i noticed is that "Software.serial" doesnt work :frowning: (i am a noob with this )

I writed this code, but it gives me always a value of 1000.

#include <TinyGPS.h>
TinyGPS gps;
float flat,flon;
void setup() {
Serial.begin(115200);
Serial1.begin(9600);
}

void loop() {
gps.f_get_position(&flat, &flon);
if (Serial1.available() > 0) {

Serial.print(flat);
Serial.print(flon);
delay(1000);
}
}

also, if there is a good tutorial explaining the "serial.begin"... thanks!

jesusXD00:
if there is a good tutorial explaining the "serial.begin"... thanks!

Try here;

Arduino serial begin reference

jesusXD00:
first i noticed is that "Software.serial" doesnt work :frowning:

You're correct that there is no official SoftwareSerial library for the Arduino SAMD boards. These boards do have an hardware serial on pins 13 and 14 (Serial1) which is not already used for communication with your computer. If you need more serial ports than that, the SAMD boards have a cool feature that allows you to add serial interfaces on any pins. There is a turorial here:
https://www.arduino.cc/en/Tutorial/SamdSercom

So you can see that there is really no need for software serial on these boards. The only issue is when you are using a library that has the SoftwareSerial library hardcoded in. That is an unfortunate design decision which hopefully is not very common.