NEO-6M GPS Module and ESP 32 Pico Kit V4.1 Serial port information not displaying in Arduino IDE
Posted: Thu May 27, 2021 6:48 am
NEO-6M GPS Module and ESP 32 Pico Kit V4.1 Serial port information not displaying in Arduino IDE
Hi, I've been trying to use simple sample code found online to display GPS information via the NEO-6M Gps module and it communication with the serial port of my ESP32 Pico Kit.
I am only getting a blank screen when I try to open the serial monitor in the Arduino IDE.
I made sure I'm using the right baud rate and that the correct pins are connected.
I'm making sure I have 3.3V being supplied to the GPS module.
I'm providing power via the 3V3 pin of the ESP32 Pico Kit module.
The power to the module is coming from the USB connection from the PC.
I tried scouring the internet for ESP32 Pico Kit or even ESP32 connecting with a NEO-6M GPS module but can't find anything.
I initially tried to use hardware serial and tried to use pins 9,10 for serial communication, but everything shows as blank on the serial monitor. Same thing happens with software serial. Pins 9,10 seem to be the RX, TX pins based on the ESP32 PICO KIT pinouts info. on the Espressif site.
Can anyone provide insight as to what may be wrong? Thanks.
Hi, I've been trying to use simple sample code found online to display GPS information via the NEO-6M Gps module and it communication with the serial port of my ESP32 Pico Kit.
I am only getting a blank screen when I try to open the serial monitor in the Arduino IDE.
I made sure I'm using the right baud rate and that the correct pins are connected.
I'm making sure I have 3.3V being supplied to the GPS module.
I'm providing power via the 3V3 pin of the ESP32 Pico Kit module.
The power to the module is coming from the USB connection from the PC.
I tried scouring the internet for ESP32 Pico Kit or even ESP32 connecting with a NEO-6M GPS module but can't find anything.
I initially tried to use hardware serial and tried to use pins 9,10 for serial communication, but everything shows as blank on the serial monitor. Same thing happens with software serial. Pins 9,10 seem to be the RX, TX pins based on the ESP32 PICO KIT pinouts info. on the Espressif site.
Can anyone provide insight as to what may be wrong? Thanks.
Code: Select all
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
static const int RXPin = 9, TXPin = 10;
static const uint32_t GPSBaud = 9600;
// The TinyGPS++ object
TinyGPSPlus gps;
// The serial connection to the GPS device
SoftwareSerial ss(RXPin, TXPin);
void setup(){
Serial.begin(9600);
ss.begin(GPSBaud);
}
void loop(){
// This sketch displays information every time a new sentence is correctly encoded.
while (ss.available() > 0){
gps.encode(ss.read());
if (gps.location.isUpdated()){
Serial.print("Latitude= ");
Serial.print(gps.location.lat(), 6);
Serial.print(" Longitude= ");
Serial.println(gps.location.lng(), 6);
}
}
}