Skip to content

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

image.png

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.

image.png

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.

image.png

ssd1306.png

  • If the following page appears, click"Install all".

if.png

install successfully.

ssd1306OK.png

Usage

image.png

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.

t.png

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".

t0.png

  • Select "Tools > Port",Select the port number of the board.

port.png

Verify the code and upload.

  • Click this icon to upload to the board.

Download.png

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.

MaUWB_DW3000_with_STM32S3_AT_Command_20240607140752.jpg

one1.png

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. A012.jpg

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.

muti,openA1.png

Firmware update method

  • Connect ST-Link to PC.

  • Open STM32 ST-LINK Utility.

u1.jpg

  • Open "Target/Settings", it should display ST-Link Serial Number.

u2.jpg

  • 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

u3.jpg

  • Click "connect to target", it should be display device type. And click "Program verify".

u4.jpg

Select hex file, click "START" to download.

u5.jpg

u6.jpg

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.

Resources