I am trying to use the Adafruit Ultimate GPS sensor. In the tutorial Adafruit provided, one of the initial steps to see if the GPS can get a fix on your location is to wire up the GPS to 5V, GND, RX, and TX then I should upload a blank sketch and should see data coming through to the serial monitor.
// this sketch will allow you to bypass the Atmega chip
// and connect the Ultimate GPS directly to the USB/Serial
// chip converter.
// Connect VIN to +5V
// Connect GND to Ground
// Connect GPS RX (data into GPS) to Digital 0
// Connect GPS TX (data out from GPS) to Digital 1
void setup() {}
void loop() {}
I tried this with my Arduino Uno and it worked, I saw the data coming through and all was good. Then, I tried to do this with my Arduino Zero and it would not print any data to the Serial monitor. I read this happened because on the Zero, the RX and TX are connected to Serial1.
This is my current setup. This is the wiring for an Arduino Uno. I attempted this same wiring with the Arduino Zero as well. Would the Zero require different wiring?
This is an example of what needs to printed. Similar data was printed when I used an Arduino Uno. No data was printed when I used an Arduino Zero.
I attempted to use this code with Arduino Zero to print the data being sent from the GPS to the Rx pin. I had no success.
char c;
void setup()
{
Serial.begin(9600);
Serial1.begin(115200);
}
void loop()
{
if (Serial1.available())
{
c = Serial1.read();
Serial.write(c);
}
}
When I attempted this wiring with the Arduino Zero, I did not receive any data on the Serial monitor, nothing was being printed.
To clarify, I used both set of codes on the Arduino Zero with no success with either.