This guide explains how to connect a GrowSpace UWB Developer Tag to an Arduino Mega 2560 via serial communication, send lec / lep commands, and parse real-time location data using example code.

It is designed to provide developers with a practical, step-by-step reference for handling UWB position data within an Arduino environment.

1. Required Components

Note: The Arduino UNO board only has one serial port and is not stable at 115200 bps.
In contrast, the Mega 2560 supports multiple hardware serial ports (Serial1~3), allowing faster and more stable communication.

2. Installing the Arduino IDE

  1. Download the installer compatible with your operating system from the official Arduino website
  2. Proceed with the installation (this guide assumes MSI installer on Windows)

Why Use Mega 2560 Instead of UNO?

Most users are familiar with Arduino UNO, but it only has a single serial port.
To communicate with the GrowSpace UWB Tag at 115200 bps, UNO requires SoftwareSerial, which often results in data loss or instability.

The Arduino Mega 2560 provides 4 hardware serial ports (Serial0 to Serial3), making it far more suitable for UWB data handling.

3. Board Connection and IDE Settings

1. Connect the Arduino Mega 2560 to your PC via USB

2. Open the Arduino IDE and apply the following settings:

4. Hardware Pin Connections

This example uses the right-side connector on the Developer Tag, powered by 5V, and communicates via Serial1.

UWB Tag PinArduino Mega Pin
TXRX1 (Pin 19)
RXTX1 (Pin 18)
5V5V
GNDGND

⚠️ TX ↔ RX must be crossed
Connect the tag’s TX to Arduino RX1, and RX to Arduino TX1

The diagram below shows the full pin layout of the Arduino Mega 2560 board.
For this guide, we are using the Serial1 port, so please refer to the connection points for TX1 (Pin 18) and RX1 (Pin 19).

5. Basic Serial Relay Code

Upload the code and open the Serial Monitor (115200 bps).
If the si command returns system info, the connection is working!

6. Parsing lec / lep Data

Below is a full example for parsing lec and lep responses in Arduino code.

Key Features:

Enter "lec" or "lep" in the Serial Monitor to see the output as shown below.

lep 실행결과

lec 실행결과

Conclusion

In this tutorial, you’ve learned how to:

This provides a solid starting point for: