This guide explains how to connect the GrowSpace UWB Developer Tag to a Raspberry Pi 4 Model B and receive real-time position data using lec and lep commands. It also covers how to implement serial communication and parse received data using Python.

Materials Required

Environment Setup

OS: Debian GNU/Linux 11 (bullseye)

Python: 3.9.2

Required package: pyserial

Enabling UART Port

  1. Run the following in the terminal:

2. Navigate to:

3. Then reboot:

Serial Pin Configuration

The GrowSpace Developer Tag uses the left-side connector, which operates at 3.3V logic level, for UART communication with the Raspberry Pi’s Serial0 port.

Developer Tag PinRaspberry Pi PinGPIO
TXPin 10 (RXD)GPIO15
RXPin 8 (TXD)GPIO14
3.3VPin 1
GNDPin 6

주의: Note: TX ↔ RX must be crossed
Tag TX → Pi RX

Tag RX → Pi TX

Make sure to check the Raspberry Pi 40-pin GPIO layout.

📌Reference: Raspberry Pi GPIO Pinout Diagram

Below is the full pinout of the 40-pin header on the Raspberry Pi.

Make sure to identify the locations of TX0 (GPIO14, Pin 8), RX0 (GPIO15, Pin 10), 3.3V (Pin 1), and GND (Pin 6) accurately.

Use this diagram to ensure your serial connection with the GrowSpace Developer Tag is configured correctly.

Developer Tag Serial Port Voltage Levels

The GrowSpace Developer Tag provides two UART serial ports, and they are not just physically separate — they operate at different voltage levels.

In this tutorial, since the Raspberry Pi’s UART operates at 3.3V, you must connect to Port 1.
Connecting a 5V TX signal directly to the Pi’s GPIO may damage the board, so please ensure correct port selection.

Serial Communication Test Code (Python)

The above code runs two threads simultaneously within the main() function:

And if you enter the si command directly, the UWB tag will respond, confirming that the communication is successfully established.

Parsing Position Data (lec / lep)

LEP – Parse Position Only

LEC – Parse Distance + Position

Combined Serial Reading Loop

LEP Result
LEC Result

Conclusion

In this guide, we covered:

With this setup, you can build a lightweight RTLS testbed or integrate UWB positioning into your own smart system.

If you need support, feel free to reach out! 😊