Go Down

Topic: Arduino Due serial problem with GPS (Read 2220 times) previous topic - next topic


Hi folks,

I have recently bought an Arduino Due. I would like to output raw GPS data (NMEA sentences) on the Serial monitor, but it outputs garbage in the Serial Monitor (45,23,85,34,...). The code used looks like that:

Code: [Select]

void setup()

void loop()

This code worked on my Arduino Mega, but doesn't work on the Due.
The creepy thing is that processed data with TinyGPS works on the Due and shows latitude etc. on the Serial Monitor, but raw GPS data seems being untouchable on the Due.

Any idea?


Try Serial.write instead of println.

Don't send me technical questions via Private Message.


read() returns int, you'll have to cast to char to make it a character.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]



I have Skylab  SKM53 Gps module working perfectly, almost out of the box, with my arduino due.

I've connected the GPS Rx pin to Tx1 on the Due and the GPS Tx pin to the Rx1 on the due.... Serial1.begin(9600).... and it's done...

Be aware that if you are indoor, the gps may take as long as it takes to show data (maybe more than two hours)... so try it outdoors and you'll begin receiving data in a few minutes after the gps knows where it is..

Try TinyGps++ or TinyGps13 library !!


Good luck and merry Christmas!!!


Thank you very much!

It works with Serial.write(), and I also tried TinyGPSPlus. It's just amazing! ]:D

Go Up