Use of GPS with Lora 32 board?


I’d like to use a GPS (BN-220) with the ESP32 Lora board. I was thinking to use the UART0 that looks to be the only one avalaible (U1 is not wired, and U2 is used for onboard features). Unhappy I’m unable to get any datas from GPS module when wired on it. The LEDs on the GPS confirms me it has well a GPS position but nothing coming in the ESP. I discovered UART0 is used also for flash/debug so is it the problem ? and if so does it mean I can’t use that UART and so no way to use such serial GPS board with that ESP32 device ??
Will it be same issue with Cubecell 1/2AA ??

Thanks for clarifications,



UART0 is occupied by USB.

you can use Pin redefinition.

Ah thanks for confirmation for UART0 ! Unhappy code I use for GPS communication states to use HardwareSerial function that works only with chip UART GPIOs so I guess I can’t do that with the Lora32 Board as it has no UART wired avalaible ? :frowning:

Hi Vincen,
actually trying the same thing - and having a hard time accessing the GPS Module via Serial - hardwareSerial or Softwareserial. How did you solve your problem?

I gave up on that shitty hardware and manufacturer ! Went an other company with better products and support not like Heltec that has outdated repos everywhere (unable to close them and maintain only one with proper and updated infos…)


In fact, this can be achieved. you can use another UART.

I will post the example later.


i have finished the example. GPS module is AIR530. I will post the code after sorting it out.

here is picture:

1 Like

Thanks a lot!!! - that was very helpfully - For all other searchers - this is the essence you may looking for

  // Serial1.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)
  // Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)
  // The txPin & rxPin can set to any output pin
  Serial1.begin(115200, SERIAL_8N1, 2, 17);
  Serial2.begin(115200, SERIAL_8N1, 22, 23);


I have sorted out the code.

please refer this link:

1 Like