Go Down

Topic: Mega vs UNO (Read 485 times) previous topic - next topic

Bertil_Lindstrom

Why dont I get any signals from my GPS-device on my Mega when is working in my UNO?
I use same sketch,same pins etc. :~

Bertil


Steen

could you give us some more info please? with this question we'll not be able to help you

- code?
- pins?
- connections?

Bertil_Lindstrom

The code I use "test_with_gps_device.ino" from "TinyGPS".
I use pin 2(rx) and pin 3(tx), (I use my Tektronix 2235 oscilloscope to check).
The GPS-device via a "Arduino microSD Shield " which I move betwen Mega and Uno.

/Bertil

dxw00d

Quote
The code I use "test_with_gps_device.ino" from "TinyGPS".

That doesn't help. Post the code you are using, or at least a link to where you got it.

Quote
I use pin 2(rx) and pin 3(tx), (I use my Tektronix 2235 oscilloscope to check).

Does that mean you are using SoftwareSerial?

http://arduino.cc/en/Reference/SoftwareSerial
Quote
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


If you are, then I suggest you change the sketch when you use it on the Mega, to use one of its other hardware serial ports.

PaulS

Quote
That doesn't help.

It does if you are familiar with the library and sketch in question.

Quote
Does that mean you are using SoftwareSerial?

Yes, that sketch uses SoftwareSerial, so it is not appropriate for use on a Mega without revision.


Bertil_Lindstrom

Thank you dxw00d, you made my day  :smiley-mr-green:
"All probems are easy when getting the answer"

/Bertil

Docedison

It's as easy as 1, 2, 3...

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Go Up