GPS Data Logger works on UNO not on MEGA

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
froggy2288
 
Posts: 6
Joined: Sat Feb 11, 2012 8:19 pm

GPS Data Logger works on UNO not on MEGA

Post by froggy2288 »

I have a Mega 1280 that does not work with the GPS shield. My UNO works just fine. I am using the example logger code from the "make it" pages and I made the change in the SD card library for the mega. The program does create files that are empty on the SD card, however no GPS information is record in the SD card or on the serial monitor. How can i make the shield work with the MEGA?

Thanks,

Nick

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: GPS Data Logger works on UNO not on MEGA

Post by adafruit_support_bill »

What version of the IDE are you using?
Does the led on the GPS module indicate it has power?
Double check that the module power and serial connections match your sketch.

froggy2288
 
Posts: 6
Joined: Sat Feb 11, 2012 8:19 pm

Re: GPS Data Logger works on UNO not on MEGA

Post by froggy2288 »

-Using the newest 1.0 IDE
-Yes the GPS has power
-The unit works perfect with an UNO
-Have double checked the sketch and even tired using different pins for the gps

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: GPS Data Logger works on UNO not on MEGA

Post by adafruit_support_bill »

Have you changed to the SoftSerial in 1.0? Or are you still using the NewSoftSerial?

froggy2288
 
Posts: 6
Joined: Sat Feb 11, 2012 8:19 pm

Re: GPS Data Logger works on UNO not on MEGA

Post by froggy2288 »

Yep, using SoftwareSerial in 1.0.

-Nick

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: GPS Data Logger works on UNO not on MEGA

Post by adafruit_support_bill »

Do you get any output at all from the GPS module?

The shield is known to work on the 2650. Usually any issues revolve around the SD interface, not the serial.
I don't believe there is anything about the 1280 that would affect software serial communications.

froggy2288
 
Posts: 6
Joined: Sat Feb 11, 2012 8:19 pm

Re: GPS Data Logger works on UNO not on MEGA

Post by froggy2288 »

No output from GPS on the MEGA. The program does create the files on the SD card, but they are blank.

Again, all works perfect on the UNO. I tried another MEGA 1280 and a MEGA 2650 and they did not work as well.

-Nick

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: GPS Data Logger works on UNO not on MEGA

Post by adafruit_support_bill »

What pins are you using? There are some limitations for Software Serial on the Mega:
Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69

froggy2288
 
Posts: 6
Joined: Sat Feb 11, 2012 8:19 pm

Re: GPS Data Logger works on UNO not on MEGA

Post by froggy2288 »

Have tried the TX/RX pins (0,1) and others that are available with the pin header on the shield. So I guess Ill try to run jumper wires off the shield to the double wide pin header on the mega. I will let you know how this goes when i get home.

Thanks,

-Nick

froggy2288
 
Posts: 6
Joined: Sat Feb 11, 2012 8:19 pm

Re: GPS Data Logger works on UNO not on MEGA

Post by froggy2288 »

Works perfect now, thanks a ton. Love the simple fixes.

-Nick

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

Return to “Arduino Shields from Adafruit”