MaUWB_DW3000 with ESP32S3 AT Command
Introduction
Ultra-wideband (UWB) is a short-range wireless communication protocol operating via radio waves that enables secure and reliable ranging and precise sensing, creating a new dimension of the space environment for wireless devices. However, in practical application, the most problem of UWB is the signal mutual conflicts/interference, that when there multiple anchor& tags exists. So Makerfabs solved the problem by creating the MaUWB.MaUWB module integrates MCU and all RF circuits, antennas, power management and clock circuits. This module can be quickly configured and used by AT command,supports max 8 Anchors + 64 tags in application, to create a multi-anchor multi-tag positioning system, and supports antenna delay settings for tags and anchors.
Model:MAUWBS3CA1
Features
- Comply with IEEE802.15.4-2011 ultra-wideband standard.
- Easy to integrate without additional RF design.
- Support CH5 (6489.6MHZ) RF band.
- Strong resistance to multi-path fading.
- Two modes of data transmission rate of 850kbps and 6.8Mbps.
- The maximum packet length is 1023 bytes, which meets the application requirements of high data volume exchange.
- The system supports 8 Anchors 64 tags.
- The module supports free configuration of refresh rate, up to 100Hz.
- Module serial port communication baud rate 115200.
- Module (Tag) deep hibernation working current as low as 35uA, working current 34mA.
- Support AT command.
- Board USB supply voltage range: 4.8~5.5V, 5.0V Typical.
- Board Battery supply voltage range: 3.4~4.2V, 3.7V Typical.
Arduino IDE preparations
1.Install the Arduino IDE V1.8.10/V1.8.19.
2.Install the ESP32 board package.
All projects are based on the ESP32-S3 development board, guaranteeing higher compatibility and stability.If you haven't installed the ESP32 Board SDK yet, follow the steps in this guide to get started quickly.
3.Install "SSD1306" library(Version2.5.10).
Arduino has its own library manager, and for some authenticated third-party libraries, it can be searched in the library manager. Click install. Common libraries such as SSD1306.
- Select "Sketch > Include Library > Manage Libraries", search ssd1306 and click Install.
- If the following page appears, click"Install all".
install successfully.
Usage
The ESP32S3 controller can get the UWB arranging result simple by AT commands.
1. One Anchor + one Tag
This is the example to get the distance and signal strength value from Tag0 to Anchor0.
Set the board to Tag0
Open the Set to Tag0 by Arduino IDE.
Use Type-C USB cable to connect the board and PC, and select the development board "ESP32S3 Dev Module" and the port.
- Select "Tools > board:"xxx" > ESP32 Arduino > ESP32S3 Dev Module".
- Select "Tools > Port",Select the port number of the board.
Verify the code and upload.
- Click this icon to upload to the board.
Set the board to Anchor0
The steps are the same as Set the board to Tag0.
Open the Set to Anchor0 by Arduino IDE.
Use Type-C USB cable to connect the another board and PC, and select the development board "ESP32S3 Dev Module" and the port.
Verify the code and upload.
When it is successful,open the Arduino IDE serial monitor, and you can see the distance and signal strength value from Tag0 to Anchor0.
2. Multi Anchor + Multi Tag
This is the example to get the distance and signal strength value from multi Tag to multi Anchor.
Set the board to Anchor X or Tag X.
Open the Set to Tag0 and Set to Anchor0 by Arduino IDE.
Modify code to get the Anchor or Tag that you want to define.
//For example 0, 1, 2..
#define UWB_INDEX 0
Use Type-C USB cable to connect the board and PC, and select the development board "ESP32S3 Dev Module" and the port.
Verify the code and upload.
Repeat to set up multiple Anchor and multiple Tag.
When it is successful,open the Arduino IDE serial monitor, and you can see the the distance and signal strength value from multi Tag to multi Anchor.
Firmware update method
-
Connect ST-Link to PC.
-
Open STM32 ST-LINK Utility.
- Open "Target/Settings", it should display ST-Link Serial Number.
-
Close the window, back to main page.
-
Connect ST-Link and MaUWB.
-
And use TypeC cable power on MaUWB, the power of ST-Link is not enough.
Like this:
ST-LINK | 3v3 | gnd | clk | dio |
---|---|---|---|---|
UWB_AT | 3.3v | gnd | swclk | swdio |
- Click "connect to target", it should be display device type. And click "Program verify".
Select hex file, click "START" to download.
FAQ
You can list your questions here or contact techsupport@makerfabs.com for technology support. Describing your problem in detail will help solve your problem.