Pages: [1]   Go Down
Author Topic: Mega vs UNO  (Read 459 times)
0 Members and 1 Guest are viewing this topic.
Flen, Sweden
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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. smiley-confuse

Bertil

 
Logged

Belgium
Offline Offline
Full Member
***
Karma: 0
Posts: 187
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

 - code?
 - pins?
 - connections?
Logged


Flen, Sweden
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 652
Posts: 50850
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Flen, Sweden
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

/Bertil
Logged

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 48
Posts: 2935
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Doc
Logged

--> 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

Pages: [1]   Go Up
Jump to: