grove gps problem

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, salmanfarisvp, jeremy882, crail.lyu969

Post Reply
pazgal
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Sun Oct 28, 2012 12:21 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: CUI32Stern

grove gps problem

Post by pazgal » Wed Jan 30, 2013 10:05 pm

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

User avatar
loovee
Elementary-3
Elementary-3
Posts: 352
Joined: Fri Nov 02, 2012 9:15 am

Re: grove gps problem

Post by loovee » Tue Feb 05, 2013 2:05 pm

hi~ the code seems right... strange things :shock:

did it work fine before?

pazgal
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Sun Oct 28, 2012 12:21 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: CUI32Stern

Re: grove gps problem

Post by pazgal » Sun Feb 10, 2013 3:40 am

Works fine today, maybe it couldn't found the satellites... Now it's ok.

User avatar
loovee
Elementary-3
Elementary-3
Posts: 352
Joined: Fri Nov 02, 2012 9:15 am

Re: grove gps problem

Post by loovee » Fri Feb 15, 2013 8:22 pm

wow~ anyway, it's a good thing~ cheers~ :roll:

Post Reply