Page 1 of 1

grove gps problem

Posted: Wed Jan 30, 2013 10:05 pm
by pazgal
Hi,

I've connected the GPS on my arduino UNO via the grove shield.
The following code doesn't send anything except the "Hello" message. Is it normal ?
I thought that the gps module need time to see the satellite so I've let it for 2 hours outside whit no result.

Code: Select all

#include <SoftwareSerial.h>
SoftwareSerial gps(2,3);
char data;
 
void setup()
{
  Serial.begin(9600);
  gps.begin(9600);
  Serial.println("Hello");
}
 
void loop()
{
  if(gps.available() > 0) {
    Serial.println("The GPS want to send something");
    data = gps.read();
    Serial.print(data);
  }
}
Thanks for help

Re: grove gps problem

Posted: Tue Feb 05, 2013 2:05 pm
by loovee
hi~ the code seems right... strange things :shock:

did it work fine before?

Re: grove gps problem

Posted: Sun Feb 10, 2013 3:40 am
by pazgal
Works fine today, maybe it couldn't found the satellites... Now it's ok.

Re: grove gps problem

Posted: Fri Feb 15, 2013 8:22 pm
by loovee
wow~ anyway, it's a good thing~ cheers~ :roll: