MEGA 2560 with Adafruit Ultimate GPS breakout V3

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
donerick
 
Posts: 7
Joined: Fri May 28, 2021 7:29 pm

MEGA 2560 with Adafruit Ultimate GPS breakout V3

Post by donerick »

I used McWhorter's Lesson 22 on Youtube.com and your GPS. It works fine with his sketch on my HERO board, clone of a UNO. But I want to use it with a MEGA 2560 Pro. When I try that, his sketch leaves the Serial monitor blank, and the GPS with a blinking light. Another forum said to use one of the other serial ports, not pins 2 and 3. So I moved the GPS to pins 16 and 17, for TXD2 and RXD2. No change; still a blank serial monitor and the same blinking light on the GPS. I'm told that the problem is SoftwareSerial, but I don't know what to do about it

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: MEGA 2560 with Adafruit Ultimate GPS breakout V3

Post by blnkjns »

Don't use Software Serial on the MEGA. Most boards have dual serial ports, the MEGA even 4, the UNO the only one that does not have it.
So connect the GPS module to pins 19RX/18TX, and start it using Serial1.begin(9600); Use Serial1.read for all GPS module read commands.
Connect the serial monitor through regular Serial.begin(9600); Use regular Serial.print/Serial.write for all serial monitor output.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”