hello, I have been trying connected gps neo 6m to the arduino mega but this thing have been impossible receive any data from gps module.
I was trying with many codes but I couldn't get it.
someone could help me?
here I post one of the first code that I used, and also, I don't know why this code does not work with arduino mega.
#include <SoftwareSerial.h>
SoftwareSerial gps(10,11);//rx,tx
char dato=' ';
void setup()
{
Serial.begin(115200);
gps.begin(9600);
Serial.println("conectado");
}
void loop()
{
if(gps.available())
{
dato=gps.read();
Serial.print(dato);
}
}