I have an Arduino Leonardo and a GPS module "NEO 6M"
Pinout:
PPS->free
rxd->11
txd->10
gnd->gnd
vcc->5v
I'm running this code:
#include "SoftwareSerial.h"
SoftwareSerial gps(10,11);
void setup(){
Serial.begin(9600);
gps.begin(9600);
}
void loop(){
while (gps.available())
Serial.write(gps.read());
}
In serial monitor I'm getting random characters like this
Where am I going wrong?
I tried the same with an Arduino Mega but have the same result.
Greenonline
3,1527 gold badges36 silver badges48 bronze badges
asked Jan 17, 2017 at 8:28
1 Answer 1
Solved: GPS module was broken. Now I use another GPS module, same model. Sorry for my English.
answered Jan 17, 2017 at 9:54
-
How did you ascertain that the module was broken? Did you try it with a different GPS module and it then worked? Could you edit and expand your answer a little, as it could be useful for someone else who has the same issue...Greenonline– Greenonline2017年01月19日 12:06:44 +00:00Commented Jan 19, 2017 at 12:06
-
i used another GPS module and resolve all my problem :) sorry for late responseFrancesco Valla– Francesco Valla2017年02月01日 09:55:59 +00:00Commented Feb 1, 2017 at 9:55