-
Step 2: How to Use UWB Positioning
12/27/2023 at 08:04 • 0 comments1.No python environment required
- Use Type-C USB cable to connect the A0 and PC.
- Power other devices with 3.7V lithium batteries,and adjust the positions of A1, A2 and A3 so that they form a square of 10 metres with A0.
- Open position.exe, and you can see the red dots on the canvas move according to your position.
2.Python environment required
- Open position.py, and you can change the positioning range by modifying the A0, A1, A2, A3 pixel coordinates(unit cm).
A0X, A0Y = 0, 0 A1X, A1Y = 1000, 0 A2X, A2Y = 1000, 1000 A3X, A3Y = 0, 1000
- Use Type-C USB cable to connect the A0 and PC. Power other devices with 3.7V lithium batteries, and adjust the positions of A1, A2 and A3 so that they can adapt to pixel coordinates.
- Choose the python interpreter, enter the address of your python software.
- Run the project, and you can see the red dots on the canvas move according to your position.
And more detailed information such as how to prepare python and pycharm you can check here.
-
Step 1: UWB Module Configuration
12/27/2023 at 08:03 • 0 comments1.Configure Anchor0
- Open the get_range.ino by Arduino IDE. This program parses the AT instructions into JSON format and uploads them through the serial port.
- 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.
2.Configure other devices
- Open the esp32_at_t0.ino 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.
- Change module settings
#define UWB_INDEX 0 //Device ID(Anchor 0-7,Tag 0-31) #define TAG // #define ANCHOR //Device Role(Tag or Anchor) #define FREQ_850K // #define FREQ_6800K //Equipment communication rate(850K or 6800k)
- Verify the code and upload.
Note configure at least three Anchors for positioning.
More information, such as pre-preparation of the arduino environment and how to download the code into the module, can be found here.