Skip to content

MaUWB_DW3000 with STM32 AT Command

Introduction

This module integrates MCU and all RF circuits, antennas, power management and clock circuits. The module can be quickly configured and used by AT command. The latest UWB module that solves multiple anchors& tags mutual conflicts, 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:MAUWBCA1

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 8Anchor32 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

  1. Install "SSD1306" library(Version2.3.0)

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", and search libraries that you need.

image.png image.png

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

image.png

Usage

image.png

The ESP32 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 "ESP32 Dev Module" and the port.

Verify the code and upload.

Set the board to Anchor0

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 "ESP32 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 the distance and signal strength value from Tag0 to Abchor0.

979c1f570e69e26eb03be957cc7873a3.jpeg

39927ab1b65f0c4b74899329e2675ed5.png

Note AT command details please check Makerfabs_UWB_AT_Module_AT_Command_Manual(v1.0.6).pdf

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 by Arduino IDE.

Modify code to get the Anchor or Tag that you want to define.

sendData("AT+SETCFG=0,0,0,1", 2000, 1);
display.println(F("T0"));

You can set the basic module parameters using "AT+SETCFG=(x1),(x2),(x3),(x4)"

x1:Device ID(Anchor 0-7,Tag 0-31)
x2:Device Role(0:Tag / 1:Anchor)
x3:Equipment communication rate(0:850K/1:6.8M,Default:6.8M)
x4:Range filtering is enabled(0:Close / 1:Open)

Here are some examples.

//A0
AT+SETCFG=0,1,0,1

//A1
AT+SETCFG=1,1,0,1

//A2
AT+SETCFG=2,1,0,1

//A3
AT+SETCFG=3,1,0,1

//T0
AT+SETCFG=0,0,0,1

//T1
AT+SETCFG=1,0,0,1

//T2
AT+SETCFG=2,0,0,1

//T3
AT+SETCFG=3,0,0,1

//T4
AT+SETCFG=4,0,0,1

//T5
AT+SETCFG=5,0,0,1

Use Type-C USB cable to connect the board and PC, and select the development board "ESP32 Dev Module" and the port.

Verify the code and upload.

Repeat to set up multiple Anchor and multiple Tag. IMG_20231024_101311_Burst03.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.

image.png

How to achieve four-point positioning, you can refer to this article.

result.png

FAQ

You can list your questions here or contact techsupport@makerfabs.com for technology support. Detailed descriptions of your question will be helped to solve your question.

Q: How can we know the X-Y position of a tag if ESP32 UWB is supporting only 1 Tag with 1 Anchor?

A: 1 anchor can not position 1 tag, at least 3 anchors are needed, we have a blog for that.

Resources