# TTGO V1 no GPS

**URL:** <https://www.thethingsnetwork.org/forum/t/ttgo-v1-no-gps/42422>\
**Category:** Uncategorized\
**Created:** [December 25, 2020, 12:57pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-v1-no-gps/42422 "2020-12-25T12:57:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isaac\_af](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/isaac_af/32/25844_2.png) [@Isaac\_af](https://www.thethingsnetwork.org/forum/u/Isaac_af)\
**Post date:** [December 25, 2020, 12:57pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-v1-no-gps/42422/1 "2020-12-25T12:57:00Z")

</div>

Hey Folks, merry Christmas to all of you. I am encountering the following problem. I habe a TTGo board V1 and i tried compiling this code on it

```auto
#include <TinyGPS++.h>
#include <axp20x.h>

TinyGPSPlus gps;
HardwareSerial GPS(1);
AXP20X_Class axp;

void setup()
{
  Serial.begin(115200);

  Wire.begin(21, 22);
  if (!axp.begin(Wire, AXP192_SLAVE_ADDRESS)) {
    Serial.println("AXP192 Begin PASS");
  } else {
    Serial.println("AXP192 Begin FAIL");
  }
  axp.setPowerOutPut(AXP192_LDO2, AXP202_ON);
  axp.setPowerOutPut(AXP192_LDO3, AXP202_ON);
  axp.setPowerOutPut(AXP192_DCDC2, AXP202_ON);
  axp.setPowerOutPut(AXP192_EXTEN, AXP202_ON);
  axp.setPowerOutPut(AXP192_DCDC1, AXP202_ON);
  GPS.begin(9600, SERIAL_8N1, 34, 12); //17-TX 18-RX
}

void loop()
{
  Serial.print("Latitude : ");
  Serial.println(gps.location.lat(), 5);
  Serial.print("Longitude : ");
  Serial.println(gps.location.lng(), 4);
  Serial.print("Satellites: ");
  Serial.println(gps.satellites.value());
  Serial.print("Altitude : ");
  Serial.print(gps.altitude.feet() / 3.2808);
  Serial.println("M");
  Serial.print("Time : ");
  Serial.print(gps.time.hour());
  Serial.print(":");
  Serial.print(gps.time.minute());
  Serial.print(":");
  Serial.println(gps.time.second());
  Serial.print("Speed : ");
  Serial.println(gps.speed.kmph()); 
  Serial.println(" **********************");

  smartDelay(1000);

  if (millis() > 5000 && gps.charsProcessed() < 10)
    Serial.println(F("No GPS data received: check wiring"));
}

static void smartDelay(unsigned long ms)
{
  unsigned long start = millis();
  do
  {
    while (GPS.available())
      gps.encode(GPS.read());
  } while (millis() - start < ms);
}
```

I can see that the GPS LED is blinking so it means that i’m getting fixes but i still see “No Gps” on the serial interface, did anyone have the same problem and could be able to solve it?

---

<div class="post-metadata">

**Author:** ![Isaac\_af](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/isaac_af/32/25844_2.png) [@Isaac\_af](https://www.thethingsnetwork.org/forum/u/Isaac_af)\
**Post date:** [January 11, 2021, 1:59pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-v1-no-gps/42422/2 "2021-01-11T13:59:58Z")

</div>

so could anyone help with this topic?

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [January 11, 2021, 3:26pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-v1-no-gps/42422/3 "2021-01-11T15:26:28Z")

</div>

Searching gets this:

> [@TTGO T-Beam v1.0 ESP32 with GPS NEO-6M](https://www.thethingsnetwork.org/forum/t/ttgo-t-beam-v1-0-esp32-with-gps-neo-6m/34766):
>
> Hi Does anyone have a example sketch to read GPS coordinates using TTGO T-Beam v1.0 ESP32 with GPS NEO-6M? thank you

Any good?

Perhaps a definitive part number - TTGO v1 covers a multitude of possibilities.

Which documentation are you looking at?

Where did you get the code from?

---

<div class="post-metadata">

**Author:** ![Isaac\_af](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/isaac_af/32/25844_2.png) [@Isaac\_af](https://www.thethingsnetwork.org/forum/u/Isaac_af)\
**Post date:** [January 11, 2021, 3:57pm UTC](https://www.thethingsnetwork.org/forum/t/ttgo-v1-no-gps/42422/4 "2021-01-11T15:57:19Z")

</div>

I have seen this thread but it didn’t help solving my problem, I’m using the T-Beam and i got the code from another forum.  
The documentation is the one of the TTGO as many has mentioned the change of Tx and Rx pins which i have changed in the code.
