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
}
}
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
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.