Esp32 + neo 6m gps module not working but the led in neo is blinking

i am creating a buses tracking project. For that i am using esp32 + neo 6m gps module. the connections that i done are neo's rx and tx pins to esp32's tx2 and rx2 pins

"My CODE is"

#define GPSTX 16 // Pin number for TX output from ESP32 - RX into GPS
#define GPSRX 17 // Pin number for RX input into ESP32 - TX from GPS
#define GPSserial Serial2 // Define GPSserial as ESP32 Serial2

void setup()
{
Serial.begin(115200); // Initialize serial communication with the computer
Serial.println("GPS_Echo_ESP32 Starting");

GPSserial.begin(9600, SERIAL_8N1, GPSRX, GPSTX); // Initialize GPS serial communication
}

void loop()
{
while (GPSserial.available())
{
Serial.write(GPSserial.read()); // Forward GPS data to the computer
}
}

Are you using a Nano ESP32 ?

@ajaysaagar
Please explain what is yours "module not working" mean?

ACTUALLY IT IS WORKING WITH OTHER OPERATIONS BUT WHEN I CONNECT WITH NEO 6M GPS MODULE BY USING THE CODE THAT I GAVE ITS JUST SHOWING IN SERIAL

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1448
load:0x40078000,len:14844
ho 0 tail 12 room 4
load:0x40080400,len:4
load:0x40080404,len:3356
entry 0x4008059c
GPS_Echo_ESP32 Starting

ITS MEAN STARTING BUT ITS NOT GIVING ANY GPS DATA EVEN THE NEO 6M GPS MODULE LED IS BLINKING

do you test it indoor or outdoor?

Did you try swapping the GPS TX and RX pins ?

I asked about whether you are using an Nano ESP32 as this is a forum for the Nano ESP32.

If you use a Serial2 - these pins are mixed up. The correct pins RX - 16, TX -17

Could you show a full picture of your connections - that include a ESP32 and NEO module?

You Mean this...

yeah

I checked everywhere

On your picture you connected RX TX according to labels on ESP, but swapped the pins in the code.

You need either swap wires on breadboard, or change defines that way:

Do either first or second, but not both!

just a minute i check

thanks its giving some output. but the output is like

st:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

configsip: 0, SPIWP:0xee

clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00

mode:DIO, clock div:1

load:0x3fff0030,len:1448

load:0x40078000,len:14844

ho 0 tail 12 room 4

load:0x40080400,len:4

load:0x40080404,len:3356

entry 0x4008059c

GPS_Echo_ESP32 Starting
��������?�����������������������������������������������������������������������������

i am a beginner thats why its confusing

I moved your topic to a more appropriate forum category @ajaysaagar.

The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

Thanks in advance for your cooperation.

All before the line:

are diagnostic messages of ESP32 chip, not from NEO module, so you can safely ignore it.

The string

may mean a different baudrates between the ESP and Neo.

Try various speed values (19200, 38400 and 115200) in this line

ok.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.