Sparkfun GNSS Library with Hardware UART

Hi Guys!

I am using Sparkfun's U-Blox GNSS Arduino Library.
Editing this example program

How can i modify this example to use Hardware UART (Serial1) instead softwareserial. It is possible?

Should be easy. Try replacing

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX. Pin 10 on Uno goes to TX pin on GNSS module.

with

#define mySerial Serial1

Interesting question. Yes you could modify the program, it should not be to hard to do. I have a minor problem, I know of lots of UARTs, but I do not have a clue to which one you are using and I won't spend the months of time explaining how to use each one. Multiply this by the different versions of the Arduino; I missed your version in your question. You need to determine which one (Arduino and UART) you are going to use and then generate a "Schematic" not a frizzy picture of how you have or plan on having it wired. Links to the "Technical" specifications on the hardware are also needed. Links to sales outlets such as azon do not have the needed information. This will help us start to answer your question. A real simple answer would be for you to use a Mega, it has three unused hardware serial ports and the fourth is used for the console.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.