Serial Communication between ESP32 and GPS

Overview

The ESP32 and ESP32-S3 development boards come with three hardware serial ports, namely UART0, UART1, and UART2. UART0 is used for communication with the USB-to-serial converter for uploading programs and serial monitoring with the Arduino IDE. We can use UART1 and UART2 for communication with external hardware. Unlike Arduino, any GPIO can be used as transmit (TX) and receive (RX) pins for UART1 and UART2.

Components and Supplies

Total price:£17.00

Wiring

# GY-NEO6MV2 ESP32-S3
1 VCC 5V or 3.3V
2 GND GND
3 TX 1
4 RX 2

Result

Please take the GPS module to an open outdoor area with the antenna facing the sky. The first time you use the GPS module, it needs to download the almanac data (i.e., the orbital information of the satellites) from the satellites, which can take 5 to 30 minutes. Cloud cover can significantly affect the time required.

We open the Arduino IDE serial monitor, set the monitor’s rate to 9600bps, and observe the results:

Lonely Binary Lab Result

LONELY BINARY LEARNING CENTRE

Leave a comment

Your email address will not be published. Required fields are marked *

Please note, comments must be approved before they are published