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.