Go Down

Topic: 2 months with the same problem GPS give rubbish with Arduino Uno. (Read 3 times) previous topic - next topic

floresta

Well so far we do not have a link to the data sheet for the device, we do not have an adequate unambiguous description, photograph, or diagram of the interconnections, and we do not have a copy of all of the code.  Otherwise we have everything we need to provide an intelligent response to his questions.

Don

GaryP


There is a small mistake of } on the last message I posted... pls disregard.


Why don't to fix it? There is a "modify"-button to edit previous posts.

Cheers,
Kari
The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Daneel

You should connect the GPS to pins other than 0 and 1 - so connect them to pins 2 and 3 and use newSoftSerial to talk to the GPS.  From a quick google search it looks like you should be using 9600 as the rate.

Also, the Serial function is so you can talk to the IDE via the debugger and you can't overlap it with the GPS.  You need Serial to talk to the debugger and NewSoftSerial to talk to the GPS.

So you need two serial functions like so:

Code: [Select]
#include <NewSoftSerial.h>

NewSoftSerial nss(2,3);

void setup()
{
  lcd.begin(16, 4);           
  pinMode(rxPin, INPUT);
  Serial.begin(9600);         // for the debugger
  nss.begin(9600);           // for the GPS on pins 2 and 3
}



johnwasser

I tracked down a copy of the SkyTraq S1315F (FLASH version of the S1315R ROM version)

It says 9600 baud.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

will2is

thanks for you replies,

Daneel, I will try what you said and update you as soon as it is finished

Go Up