1. Introduction
The AI-Thinker BU03-Kit is a versatile Ultra-Wideband (UWB) development board designed for high-precision indoor ranging and positioning applications. Based on the BU03 UWB module and an STM32 microcontroller, it integrates an onboard antenna, RF circuitry, and power management. This manual provides essential information for setting up, operating, and maintaining your BU03-Kit, enabling you to leverage its capabilities for various projects requiring accurate location data.

2. Product Overview
The BU03-Kit is developed by Shenzhen Anxin Technology Co., Ltd. It is engineered to support bidirectional ranging and positioning, utilizing both Two-Way Ranging (TWR) and Phase Difference of Arrival (PDOA) algorithms. It achieves a high positioning accuracy of up to 10 centimeters and supports data rates up to 6.8 Mbps. The board is suitable for a wide range of applications including Internet of Things (IoT), mobile devices, wearable technology, and smart home systems.


3. Specifications
| Parameter | Value |
|---|---|
| Model | BU03-Kit |
| Package | DIP-40 |
| Size | 35.56 * 55.00 (±0.2) mm |
| Module Antenna Type | Onboard Ceramic Antenna |
| Center Frequency Point | CH5 (6489.5MHz), CH9 (7987.2MHz) |
| Operating Temperature | -40°C ~ 85°C |
| Storage Environment | -40°C ~ 125°C, <90%RH |
| Power Supply Range | USB Type-C or pin header 3.3V or 5V. Supply current ≥ 500mA |
| Supported Interfaces | UART, I2C, SPI |
| Available IO Quantity | 20 |

Module Power Consumption
| Mode | Min | Avg | Max | Unit |
|---|---|---|---|---|
| CH5 Transmit, Rate 0.85Mbps | - | 17.03 | - | mA |
| CH5 Transmit, Rate 6.81Mbps | - | 15.06 | - | mA |
| CH9 Transmit, Rate 0.85Mbps | - | 24.85 | - | mA |
| CH9 Transmit, Rate 6.81Mbps | - | 22.6 | - | mA |
| CH5 Receive, Rate 0.85Mbps | - | 39.81 | - | mA |
| CH5 Receive, Rate 6.81Mbps | - | 40.01 | - | mA |
| CH9 Receive, Rate 0.85Mbps | - | 49.23 | - | mA |
| CH9 Receive, Rate 6.81Mbps | - | 48.05 | - | mA |
| Startup Instantaneous Current | - | 174 | - | mA |
| Deep Sleep | - | 179 | - | nA |
Note: The following power consumption data is measured based on a 3.3V power supply and an ambient temperature of 25°C.

Dimensions

4. Pin Definitions
The BU03-Kit development board features 40 pin headers. The pin functions are defined as follows:
| Pin No. | Name | Function Description |
|---|---|---|
| 1 | PB12 | PB12, SPI2_NSS/I2C2_SMBAI/USART3_CK/TIM1_BKIN |
| 2 | PB13 | PB13, SPI2_SCK/USART3_CTS/TIM1_CH1N |
| 3 | PB14 | PB14, SPI2_MISO/USART3_RTSTIM1_CH2N |
| 4 | PB15 | PB15, SPI2_MOSI/TIM1_CH3N |
| 5 | EXTON | EXTON_PA8 |
| 6 | TX1 | UART1_TX |
| 7 | RX1 | UART1_RX |
| 8 | WAKEUP | PA0WKUP, PA0_WKUP/USART2_CTS(9)/ADC12_IN0/TIM2_CH1_ETR |
| 9 | LED_RUN | PA1_LED_RUN |
| 10 | PA15 | JTDI, TIM2_CH1_ETR/PA15/SPI1_NSS |
| 11 | PA3 | PA3, USART2_RX/ADC12_IN3/TIM2_CH4 |
| 12 | PB4 | JNTRST, TIM3_CH1/PB4/SPI1_MISO |
| 13 | PB8 | PB8, TIM4_CH3, I2C1_SCL/CANRX |
| 14 | PB9 | PB9, TIM4_CH4, I2C1_SDA/CANTX |
| 15 | V-BAT | V-BAT |
| 16 | GND | GND |
| 17 | SWDIO | SWDIO |
| 18 | SWCLK | SWCLK |
| 19 | 3V3 | 3V3 Power Supply |
| 20 | 5V | 5V Power Supply |
| 21 | 3V3 | 3V3 Power Supply |
| 22 | GND | GND |
| 23 | PC13 | PC13-TAMPER-RTC, PC13, TAMPER-RTC |
| 24 | NRST | NRST |
| 25 | I2C1_SCL | I2C1_SCL/PB7 |
| 26 | I2C1_SDA | I2C1_SDA/PB7 |
| 27 | DW_RSTN | RSTN |
| 28 | I2C3_SDA | PB11, I2C2_SDA/USART3_RX, TIM2_CH4 |
| 29 | I2C2_SCL | PB10, I2C2_SCL/USART3_TX, TIM2_CH3 |
| 30 | PA2 | PA2, USART2_TX/ADC12_IN2/TIM2_CH3 |
| 31 | PA3 | PA3, USART2_RX/ADC12_IN3/TIM2_CH4 |
| 32 | SPI1_CSN | SPI1_CSN |
| 33 | SPI1_MOSI | SPI1_MOSI |
| 34 | SPI1_MISO | SPI1_MISO |
| 35 | SPI1_CLK | SPI1_CLK |
| 36 | DW_IRQ | DW_IRQ/GPIO8 |
| 37 | IO4 | IO4/EXTPA |
| 38 | IO5 | IO5/EXTTXE/SPIPOL |
| 39 | IO6 | IO6/EXTRXE/SPIPHA |
| 40 | IO7 | DW_SYNC |


5. Buttons and Indicator Lights
The BU03-Kit features several buttons and indicator lights to provide visual feedback and control. Refer to the diagram below for their locations and functions:
- POWER Indicator Light: Red light, illuminates when powered on.
- RUN Indicator Light: Illuminates steadily after successful operation.
- UWBTX Communication Indicator Light 1: Flashes when data is transmitted.
- UWBRX Communication Indicator Light 2: Flashes when data is received.
- Undefined Function LED.
- Undefined Function LED.
- Pin Header, STM32 Serial Port BOOT Control.
- BOOT Control Button.
- RESET Button.
- Positioning Ranging Data Interface.
- Serial Port: Supports burning and AT command interaction.
Note: The development board comes with a jumper cap. BOOT1 and BOOT0 are pulled low by default. Pressing the button and the jumper cap jumping to high level have the same effect, controlling the serial port burning.

6. Setup
To begin using your BU03-Kit development board, follow these general setup steps:
- Power Supply: Connect the BU03-Kit to a power source using a Type-C USB cable or by supplying 3.3V or 5V via the pin headers. Ensure the power supply can provide at least 500mA.
- Driver Installation: Depending on your operating system, you may need to install specific USB-to-serial drivers for the board to be recognized. Refer to the official AI-Thinker documentation or community resources for driver downloads.
- Development Environment: Set up your preferred development environment (e.g., Keil, IAR, or a custom IDE) and ensure the necessary toolchains for STM32 microcontrollers are installed.
- Firmware Upload: Use the serial port (UART) and BOOT control pins/button to upload your desired firmware to the STM32 microcontroller. Consult the programming guide for detailed instructions on entering bootloader mode and flashing firmware.
- Peripheral Connections: If using external peripherals (e.g., display screens, sensors), connect them to the appropriate I2C, SPI, or UART interfaces as per your project requirements.
7. Operation
Operating the BU03-Kit involves programming the STM32 microcontroller to utilize the UWB module for ranging and positioning tasks. The board supports both TWR (Two-Way Ranging) and PDOA (Phase Difference of Arrival) algorithms.
- TWR Ranging: Implement the TWR algorithm in your firmware to measure distances between two UWB modules. This typically involves sending and receiving UWB packets and calculating the time-of-flight.
- PDOA Positioning: For more advanced positioning, especially in multi-anchor setups, utilize the PDOA algorithm. This requires multiple UWB anchors and a tag, where the phase difference of received signals is used to determine the tag's position.
- Data Output: Positioning and ranging data can be accessed via the serial port or other configured interfaces. If your kit includes a display screen, data can be viewed directly on it.
- AT Command Interaction: The serial port also supports AT command interaction for configuring the UWB module's parameters, such as transmit power, channel, and data rate.
8. Application Scenarios
The BU03-Kit is suitable for a variety of high-precision indoor positioning and ranging applications:
- Warehouse Logistics: Precise tracking and management of goods and handling equipment to improve efficiency and accuracy, reducing loss and misplacement.
- Indoor Positioning and Navigation: Guiding users to specific locations in large venues like shopping malls, museums, and libraries, or for indoor store navigation and exhibition guidance.
- Parking Management: Accurate vehicle positioning and guidance to help drivers quickly find empty parking spaces, improving parking lot utilization and management, and enabling automatic billing.
- Hospital Management: Positioning medical staff, patients, and equipment to optimize workflow, improve medical service quality and efficiency. In emergencies, quickly locate relevant personnel and devices.
- Elderly and Child Monitoring: Wearable UWB modules for real-time monitoring of location and activity, preventing loss or accidents, such as understanding the location and health status of the elderly in nursing homes.
- Tunnel Traffic: Real-time positioning and tracking of personnel and vehicles in tunnels, providing hazard warnings and emergency rescue location information, and facilitating equipment scheduling and collaborative operations.

9. Maintenance
Proper maintenance ensures the longevity and reliable operation of your BU03-Kit development board:
- Handle with Care: Avoid dropping or subjecting the board to physical shock.
- Static Discharge: Always handle the board in a static-safe environment to prevent damage to sensitive electronic components.
- Cleanliness: Keep the board free from dust, dirt, and moisture. Use a soft, dry brush or compressed air for cleaning. Avoid using liquids.
- Storage: When not in use, store the board in an anti-static bag in a cool, dry place within the specified storage temperature and humidity ranges (-40°C ~ 125°C, <90%RH).
- Power Supply: Always use a stable and appropriate power supply (3.3V or 5V, ≥500mA) to prevent damage from overvoltage or undervoltage.
10. Troubleshooting
If you encounter issues with your BU03-Kit, consider the following troubleshooting steps:
- No Power Indicator: Check your USB Type-C cable and power source. Ensure the power supply meets the voltage and current requirements.
- Board Not Recognized by PC: Verify that the correct USB-to-serial drivers are installed. Try a different USB port or cable.
- Firmware Upload Failure: Ensure the board is in bootloader mode (check BOOT control pin/button). Verify your development environment settings and cable connections.
- No Ranging/Positioning Data: Double-check your UWB module configuration (channel, data rate, transmit power). Ensure all modules in your setup are powered and communicating correctly. Verify antenna connections if applicable.
- Inaccurate Positioning: Calibrate your UWB system according to the specific algorithm (TWR/PDOA) and environment. Ensure clear line-of-sight between modules where required.
- Communication Issues: Check serial port settings (baud rate, parity, stop bits). Ensure no conflicts with other peripherals on I2C or SPI.
11. User Tips
- Understand Package Differences: The BU03-Kit is available in different packages. The base 'type1' is the development board itself. Other types (e.g., 'type2' PDOA Follow-up Package, 'type3' TWR Distance Measurement Package, 'type4' TWR Positioning Package) include additional components like the BU04-Kit, Type-C data cables, and 0.96-inch display screens. Ensure you have the correct package for your intended application.
- Start with Examples: If you are new to UWB or STM32 development, begin with simple example code provided by AI-Thinker or the community to familiarize yourself with the basic functionalities before implementing complex applications.
- Community Support: Engage with online forums and communities dedicated to UWB technology or STM32 development. Many common issues and solutions are often shared there.
- Environmental Considerations: UWB performance can be affected by the environment. Test your setup in the actual deployment environment to optimize accuracy and reliability.
12. Package Contents
The standard BU03-Kit package typically includes:
- 1x BU03-Kit Development Board
Other packages may include additional items. For example, the PDOA Follow-up Package includes:
- 1x BU03-Kit
- 1x BU04-Kit
- 2x Type-C Data Cables
- 2x 0.96-inch Display Screens (shipped with screws and copper pillars)
Data information can be viewed intuitively through the display screen if included in your package.

13. Warranty and Support
For specific warranty information and technical support, please refer to the official AI-Thinker website or contact your vendor. Keep your purchase records for any warranty claims. Online resources, community forums, and documentation are often available to assist with development and troubleshooting.