Hola estimados!!
Como bien dice el asunto .. estoy teniendo problemas con la lectura del GPS:
Poseo Arduino Duo y conecte los pines de la siguiente manera:
Pines del GPS:
VCC----5V
Rx---- Pin 18 Tx1
Tx-----Pin 19 Rx1
GND
Simplemente programe esto:
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
Serial.println("uBlox Neo 6M");
// set the data rate for the SoftwareSerial port
Serial1.begin(9600);
}
void loop() // run over and over
{
if (Serial1.available())
Serial.write(Serial1.read());
}
Y el GPS me devuelve esto (no me est tirando valores correctos):
$GPGGA,171432.00,,,,,0,00,99.99,,,,,,64
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.9930
$GPGSV,1,1,0079
$GPGLL,,,,,171432.00,V,N48
$GPRMC,171433.00,V,,,,,,,,,,N7E
$GPVTG,,,,,,,,,N30
$GPGGA,171433.00,,,,,0,00,99.99,,,,,,65
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.9930
$GPGSV,1,1,0079
$GPGLL,,,,,171433.00,V,N49
$GPRMC,171434.00,V,,,,,,,,,,N79
$GPVTG,,,,,,,,,N30
$GPGGA,171434.00,,,,,0,00,99.99,,,,,,62
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.9930
$GPGSV,1,1,0079
$GPGLL,,,,,171434.00,V,N4E
$GPRMC,171435.00,V,,,,,,,,,,N78
$GPVTG,,,,,,,,,N30
$GPGGA,171435.00,,,,,0,00,99.99,,,,,,63
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.9930
$GPGSV,1,1,0079
$GPGLL,,,,,171435.00,V,N4F
$GPRMC,171436.00,V,,,,,,,,,,N7B
$GPVTG,,,,,,,,,N30
$GPGGA,171436.00,,,,,0,00,99.99,,,,,,60
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.9930
Alguien me puede ayudar?
Gracias