Neo 6M on mkr1010

Please help me connect to arduino mkr1010

I have connected power to 3.3V (VCC), ground to ground and
TX from NEO6 to RX on mkr1010

I cant find a library that works..
I dont know where to start!?

Error Message :

exit status 1
Error compiling for board Arduino MKR WiFi 1010.

Ublox NEO-6M GPS Module
Interface: RS232 TTL
Power: 3-5v
Baudrate default:9600bps
Power supply :3V-5V
Models: GY – GPS6MV2

ANY help appreciated!

Thanx,

Yannis

DeviceExample_GPS_test_1.ino (2.19 KB)

Welcome to the forum. Please read the "How to post", it is at the beginning of each sub forum. You should include small code example in the post (use code tags). See my example below.

I do not have the exact board you have but the Arduino Nano 33 IoT. It is like the little version of yours.

You should not need software serial. The SAMD21 has a hardware UART on board.

To test the module all you should need is the following test code. It just copies the characters send from the GPS module to the Serial Monitor. You only need to connect GPS TX to SAMD21 RX. The other line is only required when you want to modify the GPS module settings. The sketch works for both directions so you could connect u-blox PC software to the virtual COM and communicate with the module.

#define gpsSerial Serial1

void setup()
{
  Serial.begin( 9600 );
  gpsSerial.begin( 9600 );
}

void loop()
{
  if ( gpsSerial.available() )
  {
    char c = gpsSerial.read();
    Serial.write( c );
  }
  if( Serial.available() )
  {
    char c = Serial.read();
    gpsSerial.write( c );
  }
}

I have not investigated the board files. But TX/RX should be Serial1 because Serial is used for the USB virtual COM for the Serial Monitor.

I have not tested this u-blox version of the software, it was already a while ago, but here is a link if you like to try. It’s just educational.