Community project

ESP32 GNSS Wiring Diagram

Photo of ESP32 GNSS Wiring Diagram
Generated with AI

koffi assogba

Published November 24, 2026

This guide shows how to build a portable GNSS receiver using an ESP32 microcontroller and a SparkFun GPS-RTK2 ZED-F9P breakout board. The system runs on a single 18650 Li-ion cell stepped up to the required voltage through a boost converter, making it suitable for field applications that need precise positioning data.

The guide includes a complete wiring diagram, a detailed parts list, and step-by-step assembly instructions. Firmware is provided to establish serial communication between the ESP32 and the GNSS receiver at 38400 baud, allowing position data to be read and logged. Builders will learn how to safely configure the boost converter output, connect the receiver to the correct UART pins, and verify the system before deployment.

Wiring diagram

Wiring diagram for ESP32 GNSS Wiring Diagram
Loading diagram…

Gather all the parts

QtyComponent
1

18650 Li-ion Cell

Protected 18650, 3.7 V, 2500 mAh; built-in overcurrent and undervoltage protection

18650 lithium-ion cell, nominal 3.7 V, ~2500 mAh. Common for higher-capacity portable / battery-bank style projects; needs a holder and protection / charger circuit.

1

18650 Holder

Single-cell 18650 holder, sized for protected cell

Generic holder for one or two removable 18650 Li-ion cells. It is a mechanical/electrical power holder, not a charger or protection circuit; pair with a charger/BMS and regulator appropriate to the cell count.

1

Boost Converter

MT3608 boost module, adjusted to 5.0 V; at least 1 A output at battery voltage

Small adjustable MT3608-style DC-DC boost converter module for stepping a lower DC input up to a higher rail such as 5V, 9V, or 12V. It is a power-path module with VIN/VOUT terminals, not a GPIO peripheral.

1

SparkFun GPS-RTK2 ZED-F9P breakout (GPS-15136)

3.3 V-powered RTK receiver; UART1 uses 3.3 V logic. Keep DSEL open. Maker: https://learn.sparkfun.com/tutorials/gps-rtk2-hookup-guide/all

Assemble it in 4 steps

1. Fit the protected battery

Use one protected 18650 with built-in short-circuit and low-voltage cutoff, in a single-cell holder. Red positive goes to boost VIN+; black negative goes to VIN-.

  • Never reverse the cell or solder directly to it. The boost module is not a battery charger. Remove the cell for charging in a suitable external Li-ion charger.

2. Set the boost output first

With the ESP32 disconnected, use a multimeter and adjust the boost module to 5.0 V. Remove the battery before adding wires. Connect red VOUT+ to ESP32 VIN (5V), and black VOUT- to ESP32 GND.

  • An incorrectly adjusted converter can destroy the ESP32. Disconnect boost VOUT+ before plugging in ESP32 USB to prevent power backfeeding.

3. Connect the receiver

On the SparkFun GPS-RTK2 breakout, connect 3V3 (VCC) to ESP32 3V3 with red wire; GND to ESP32 GND with black wire. Connect UART1 TX/MISO to GPIO16 (RX2), and UART1 RX/MOSI to GPIO17 (TX2) with blue wires. Leave DSEL open.

  • Use UART1 TX/RX on the GNSS, not its correction UART2 pins. These are 3.3 V signals, so no level shifter is needed.
  • This 3.3 V supply connection is for the selected breakout, not every UM982 carrier board. Check the ESP32 3.3 V regulator can supply the receiver's additional 130 mA without overheating.

4. Check before powering

Check polarity, common ground, and crossed TX/RX connections before reinserting the battery. A GNSS antenna and clear view of the sky are needed for position reception; RTK precision also needs a correction source, neither is included in this wiring-only build.

Review all connections

1. Connections between "battery" and "ESP32"

FunctionbatteryESP32
power+V → 18650 Holder BAT+EXT
groundGND → 18650 Holder BAT-EXT

2. Connections between "holder" and "ESP32"

FunctionholderESP32
powerBAT+ → Boost Converter VIN+EXT
groundBAT- → Boost Converter VIN-EXT

3. Connections between "boost" and "ESP32"

FunctionboostESP32
powerVOUT+ → Red: regulated 5 V to ESP32 VIN (5V)VIN
groundVOUT- → Black: common groundGND

4. Connections between "gnss" and "ESP32"

FunctiongnssESP32
power3V3 → Red: GNSS VCC (3.3 V)3V3
groundGND → Black: GNSS groundGND
uartTX → Blue: GNSS UART1 TX to ESP32 RX2GPIO 16
uartRX → Blue: GNSS UART1 RX from ESP32 TX2GPIO 17

Deploy the firmware

#include <Arduino.h>
// UART1 on the GNSS breakout connects to UART2 on ESP32.
constexpr int GNSS_RX = 16;
constexpr int GNSS_TX = 17;
constexpr unsigned long GNSS_BAUD = 38400;
void setup() {
  Serial.begin(115200);
  Serial2.begin(GNSS_BAUD, SERIAL_8N1, GNSS_RX, GNSS_TX);
  Serial.println("GNSS serial monitor: UART2 RX=16 TX=17, 38400 baud");
}
void loop() {
  while (Serial2.available()) Serial.write(Serial2.read());
  while (Serial.available()) Serial2.write(Serial.read());
  delay(1);
}

Remix this project

Make it yours in one click

Open a full copy of this project in your own Schematik workspace, diagram, code, parts, and assembly steps included. Swap the sensor, add features, or redesign the whole thing with AI. The author's original stays untouched.

Open in Schematik