LilyGO / TTGO-T-Beam

336 stars 111 forks source link

Can't get GPS data #36

Open guilhermesdas opened 4 years ago

guilhermesdas commented 4 years ago

Hi, I have a TTGO T22_V07 board and it's not receiving gps data. I'm running this code in Arduino IDE. I already tried to upload with these boards: TTGO Lora32-OLED V1, TTGO T1 and ESP32 Dev Module.

The GPS blue red is always turn on but the red led never flashes. I already tried to test in the window outside my house but nothing changes.

jpnoronhaa commented 4 years ago

I have the same problem, but my board is a T-Beam. I run the GPS code in the correct board and the output is:

No GPS data received: check wiring Latitude : 0.00000 Longitude : 0.0000 Satellites: 0 Altitude : 0.00M Time : 0:0:0

minusplusminus commented 4 years ago

same problem

gagliardi67 commented 4 years ago

TX IO34 RX IO12 : ESP 32 input

cvanaalst commented 4 years ago

I have the same problem (T-beam v1 with Neo-M8N GPS), I cannot get the gps to work - I have bought 2 - lora works, but I have tried everything - the GPS does not work on either of the two ...


No GPS data received: check wiring Latitude : 0.00000 Longitude : 0.0000 Satellites: 0 Altitude : 0.00M Time : 0:0:0 Speed : 0.00


In addition I tried the TinyGPS++ lib and this shows me that nothing is being read over the serial connection from the Neo-M8N GPS ....

minusplusminus commented 4 years ago

Figured out that the AXP192 has to be enabled. If not, gps won't be active. See this repo for more info: https://github.com/kizniche/ttgo-tbeam-ttn-tracker

rlpdavid commented 4 years ago

Did anyone ever make this work? Looks like the AXP PMU itself is the culprit. I2C devices are working when connected to 21/22 but these can't get recognized.

`#define AXP192_SLAVE_ADDRESS 0x34

define GPS_POWER_CTRL_CH 3

define LORA_POWER_CTRL_CH 2

define PMU_IRQ 35`

Sherlock-Homie commented 2 years ago

I have been using the ESP TTGO T-Beam V1.1 and found the examples from LilyGo, GlacierJay often initialize the GPS with different pin mappings to what my device requires (probably using a different version or flavour from LilyGO)

Ensure you are using Pin 34 for TX, and Pin 12 for RX.

your code should look something like - Serial1.begin(9600, SERIAL_8N1, 34, 12);

I just modified the example from GlacierJay and managed to get it to work: https://github.com/glacierjay/T_beam/tree/master/gps/tbeam_gps