How does it work?
UWB 2 Click is based on the DWM3000, an IEEE 802.15-z UWB transceiver module from Qorvo. The DWM3000 module is based on Qorvo DW3110 IC and integrates an antenna, RF circuitry, power management, and clock circuitry. It can be used in 2-way ranging or TDoA location systems to locate assets to a precision of 10cm and supports data rates of 850Kbps up to 6.8Mbps. The module features programmable transmitter output power, low power consumption, and integrates MAC support features. The maximum packet length for high data throughput applications is 1023 bytes.
The DWM3000 module has an Always-on (AON) memory, which can retain the DWM3000 configuration data during the lowest operational states when the on-chip voltage regulators are disabled. The data upload and download are automated, and AON memory is configurable. You can read the on-chip voltage and its temperature by the software. Besides AON, a 128×32-bit one-time programmable (OTP) memory is used to store per-chip calibration information. There are six user-programmable GPIOs, three on both sides of the DWM3000 module. Two blue LEDs, RX and TX, are here to present data transmission visually.
UWB 2 Click uses a standard 4-Wire SPI serial interface to communicate with the host MCU. The DWM3000 module can be reset over the RST pin and woke up over the WUP pin. The external device-enabled ON pin can be used to control external DC-DC converters or other circuits of the DW3110 IC. Several interrupt events can be configured to drive the INT interrupt pin.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. Also, it comes equipped with a library containing functions and an example code that can be used as a reference for further development.
Specifications
Type
UWB
Applications
Can be used for for developing precision real-time location systems (RTLS) using two-way ranging or TDoA schemes in various markets, location-aware wireless sensor networks (WSNs), and more
On-board modules
DWM3000 – IEEE 802.15-z UWB transceiver module from Qorvo
Key Features
Ultra-wideband transceiver supporting UWB channels 5, and 9, fully aligned with FiRaTM PHY, MAC, and certification development, IEEE 802.15.4-2015 and IEEE 802.15.4z BPRF compliant, programmable transmitter output power, fully coherent receiver for maximum range and accuracy, low power consumption, integrated MAC support features, and more
Interface
SPI
Feature
ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on UWB 2 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
RX | RX | – | RX LED Indicator |
TX | TX | – | TX LED Indicator |
UWB 2 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Centre Frequency CH5/CH9 | – | 6489.6/7987.2 | – | MHz |
Channel Bandwidth | – | 500 | – | MHz |
Data rates | 850 | – | 6800 | kbps |
Software Support
We provide a library for the UWB 2 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for UWB 2 Click driver.
Key functions
-
uwb2_read_reg_32bit
This function reads 32-bit data from the selected register by using SPI serial interface. -
uwb2_send_message
This function write a desired number of data bytes to the TX buffer, sets the TX message size, starts transmission and waits for a TX frame sent event. -
uwb2_read_message
This function activates the reception and then waits for a frame with a good FCS/CRC then reads up to len number of data bytes from the RX buffer and adjust the len parameter with the number of data bytes actually read.
Example Description
This example demonstrates the use of an UWB 2 Click board™ by showing the communication between the two click boards.
void application_task ( void )
{
#ifdef DEMO_APP_TRANSMITTER
static uint8_t tx_msg_cnt = 0;
uint8_t tx_buffer[ 128 ] = { 0 };
uint16_t tx_msg_size = 0;
tx_buffer[ 0 ] = tx_msg_cnt; // Message number.
strcpy ( &tx_buffer[ 1 ], DEMO_TEXT_MESSAGE );
tx_msg_size = strlen ( DEMO_TEXT_MESSAGE ) + 2; // Message size + null-terminated + tx_msg_cnt
if ( UWB2_OK == uwb2_send_message ( &uwb2, tx_buffer, tx_msg_size ) )
{
log_printf ( &logger, " Message sent #%urnn", tx_buffer[ 0 ] );
tx_msg_cnt++; // Increment message number (modulo 256).
}
Delay_ms ( 1000 );
#else
uint8_t rx_buffer[ 128 ] = { 0 };
uint16_t rx_msg_size = sizeof ( rx_buffer );
if ( UWB2_OK == uwb2_read_message ( &uwb2, rx_buffer, &rx_msg_size ) )
{
log_printf ( &logger, " Message received #%u: %srnn",
( uint16_t ) rx_buffer[ 0 ], &rx_buffer[ 1 ] );
}
#endif
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.UWB2
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.