I'm using TinyGPS+ and SoftwareSerial library.
The serial connection is initialized with
- Code: Select all
SoftwareSerial ss(RX_PIN, TX_PIN);
where
- Code: Select all
#define RX_PIN A4
#define TX_PIN A5
The GPS is an U-BLOX NEO-6M mounted on a board called GY-GPS6MV2. It has been tested on a computer by using a Serial-To-Usb chip and a logic level converter (cause the module works at 3.3v)
The GPS and the Gamebuino are connected using one of the I2C ports of the Gamebuino, the port closest to the C button which has this pinout
GND VCC A4 CLK
I have connected the A4 pin to the TX pin on the GPS board.
I've sniffed the communication between TX and A4 and it contains usual NMEA sentences with latitude and longitude (That is, with the location correctly fixed)
This is the code. It's very straight-forward cause I'm only showing the date collected by the Tinygps++ library. That's why I think that the problem is that I'm not correctly using this library. Do you know what I'm doing wrong?
https://github.com/maesoser/Gamebuino_GPS