Open SneezeWeeze opened 4 years ago
Serial2 in Heltec LoRa v2 are 17 and 16.
From my understanding, GPSSerial.begin(9600, SERIAL_8N1,23,17) reassigns Serial2, so that should not matter. 23 corresponds to RX on the GPS module. 17 corresponds to TX. "SERIAL_8N1" symbolizes a UART address I think.
There are 4 jumper cables connecting the Heltec board to the GPS module. One is 3.3v. Another ground. The other two are RX and TX. These are the two pins I need to read through serial communication.
@SauloAislan I originally tried hardware pins 16 and 17 but with no success before moving on to reassign the default hardware pins for Serial2.
I tested the GPS module with an Uno using SoftwareSerial and it worked like a charm on pins 2 & 4.
Because SoftwareSerial is not supported on the Heltec LoRa v2, I have to use an alternative. There are samples of using the GPS module including those for hardware serial and ic2.
I figured I'd be able to use Serial2 to make it work. Here is the sketch I made. But it doesn't seem to receive any data. I'm either doing something terribly wrong or there are very specific pins that should be used with hardware serial. @Heltec-Aaron-Lee Is it possible that the Heltec LoRa v2 is incompatible with this GPS module.
Here is my sketch: