GPS Neo 6M not working with ESP32

ragavvignes
Posts: 1
Joined: Fri Sep 27, 2024 6:19 pm

GPS Neo 6M not working with ESP32

Postby ragavvignes » Fri Sep 27, 2024 6:22 pm

I am beginner to this tech and i wanted to use ESP32 with Neo6M (GY-GPS6MV2) model but i can not connect it.

This is my connections :
VCC -----> 3.3v from esp32
GND ----> GND of esp32
Rx -------> GPIO 17
Tx -------> GPIO 16

This is my code :

Code: Select all

#include <SoftwareSerial.h>

SoftwareSerial gps(16,17);
void setup()
{
 Serial.begin(115200); 
 gps.begin(57600); 

}

void loop()
{
 if (gps.available())  Serial.write(gps.read());
}
I also tried many codes and tried printing gps.avaliable(). I got false and i read in forums that to wait for some time. so I waited patiently for around 30mins but still i get gps.avaliable() as false and still got no data in my serialmonitor.

PS : Initially i connected the vcc of the gps to 5v output from the esp32 and i have a confusion in this also

Please help me

MicroController
Posts: 1605
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: GPS Neo 6M not working with ESP32

Postby MicroController » Sat Sep 28, 2024 1:38 pm

a) Make sure you're using the correct baudrate (9600 by default)
b) Try using a hardware serial port instead of SoftwareSerial.

Who is online

Users browsing this forum: No registered users and 72 guests