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.

Required Components

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

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

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.

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

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)

LEC Parsing – Anchor Distances + Tag Position


Conclusion

With this guide, you’ve learned how to:

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