1

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

Screenshot of serial monitor

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

1

Solved: GPS module was broken. Now I use another GPS module, same model. Sorry for my English.

dda
1,5951 gold badge12 silver badges17 bronze badges
answered Jan 17, 2017 at 9:54
2
  • 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... Commented Jan 19, 2017 at 12:06
  • i used another GPS module and resolve all my problem :) sorry for late response Commented Feb 1, 2017 at 9:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.