GrowSpace

[ESP32 Tutorial] GrowSpace UWB Tag Integration Guide – Receiving Position Data

Contents

This guide describes how to connect a GrowSpace UWB Developer Tag to an Arduino ESP32 board, send lec and lep commands, and receive and parse real-time location data.

Unlike the UNO, the ESP32 supports multiple hardware serial ports and is highly scalable with a compact footprint—making it ideal for lightweight test environments.

ESP32 Required Components

To begin serial communication, you’ll need the following:

  • Arduino ESP32 board (e.g., DevKitC)
ESP32 board wired to GrowSpace UWB Developer Tag
  • GrowSpace Developer Tag
ESP32 Arduino IDE board manager setup
  • Arduino IDE
  • Jumper wires (TX, RX, GND, 3.3V)

Installing Arduino IDE & ESP32 Board Support

  1. Install Arduino IDE
    Download the appropriate installer for your OS from the official Arduino website.
    ※ This guide assumes Windows (MSI Installer)
  2. Add ESP32 Board to Arduino IDE
  • Launch Arduino IDE → Go to File > Preferences
ESP32 UWB tag wiring diagram
  • In Additional Board Manager URLs, add:
ESP32 serial relay example output
  • Navigate to Tools > Board > Board Manager, search for ESP32, and install the package from Espressif Systems
ESP32 serial monitor showing lec lep data
  • Set your board to ESP32 Dev Module via Tools > Board
  • Select the correct port from Tools > Port
ESP32 LEP parsing tag position output

Wiring Configuration

GrowSpace Developer Tags have connectors on both sides.
In this tutorial, we’ll use the left-side connector, which operates at 3.3V.

ESP32 LEC parsing anchor distance output
Developer Tag PinESP32 Pin
TXGPIO 16 (RX2)
RXGPIO 17 (TX2)
3.3V3.3V
GNDGND

주의: TX ↔ RX must be cross-connected
Tag TX → ESP32 RX / Tag RX → ESP32 TX

Refer to your ESP32 DevKit pinout to confirm TX2 and RX2 positions.

Serial Relay Example Code

Upload the following code to verify communication between USB (PC) and Developer Tag (Serial2):

Serial Monitor Settings

  • Baud rate: 115200
  • Newline option: Enabled

Try sending the command si to receive system info from the tag.
If the response appears, the setup is successful.

Parsing Location Data (lec / lep)

We now go beyond simple echo checks and parse real location data:

lep: Outputs position only

lec: Outputs anchor distances + position

LEP Parsing – Tag Position (X, Y, Z)

  • Example Output

LEC Parsing – Anchor Distances + Tag Position

  • Example Output

Conclusion

With this guide, you’ve learned how to:

  • Connect the GrowSpace UWB Developer Tag to an ESP32 board
  • Send lec / lep commands
  • Parse and display real-time 3D location data via Arduino

Thanks to the ESP32’s flexibility and hardware serial ports, you can quickly build a testbed and verify UWB-based indoor positioning.

Prefer a Raspberry Pi setup instead? See our Raspberry Pi UWB tag integration guide for the same ESP32-style workflow.

PLANNING A DEPLOYMENT?

Which setup fits your site?

GrowSpace designs real-time location tracking (RTLS) around the conditions of your factory, warehouse or construction site — installation, integration with existing systems and ongoing operation handled by one team.

Explore UWB RTLSTalk to us

Share this post