Closed Kihoon-Shin closed 1 year ago
I don't see an obvious problem. What happens when you set up the installation and run the code?
the output x, y position of the tag is not correct. I set it up as shown in the above picture and uploaded the code, is there anything wrong?
I don't know what you mean by "not correct". Post examples, and describe what you expected, and why you think it is not correct.
Think about how the X and Y axes are related to the coordinate system defined by those anchors. Please draw and post picture of those axes, with the anchors located on the diagram as points.
Incidentally, it is not a good idea to have the anchors so close together. The coordinate error is about 0.1 m, and your anchors are not much further apart than that. For my tests, I put the anchors on four corners of a room, about 5m x 5m.
For the 5x5 m test, just use the code you have, and make sure to put the correct coordinates of the anchors in the tag code, including the Z values. Are the Z values below actually correct for your earlier test? If not, that is a problem.
{0.0, 0.0, 0.97}, //Anchor labeled #1
{-0.3, -0.3, 1.14},//Anchor labeled #2
{0.3, -0.3, 0.6}, //Anchor labeled #3
I recommend recalibrating the anchors using 5m distance.
Hello jremington. Thank you for your reply. I'm doing a "UWB-based human following robot" project. Like picture below, There is a human with Tag and a robot with three Anchors(Red). I want to know the relative position of a human with Tag on reference frame(Blue). With that relative position, I'll make robot follow human using PID control. The problem is I don't know how to set addresses of 3 anchors.
// leftmost two bytes below will become the "short address"
char anchor_addr[] = "81:00:5B:D5:A9:9A:E2:9C"; //#1
Is "81:00:5B:D5:A9:9A:E2:9C" the MAC address of a anchor? I know the Mac address is 48bit, but why is it 64bit? And Why did you use short address instead of full MAC address? And leftmost two bytes must be "81:00" for 1st anchor, "82:00" for 2nd anchor, "83:00" for 3rd anchor? I'm sorry I have so many questions in one comment.
Thanks for the reply. What did you use between Two-way ranging (TWR) or Time Difference Of Arrival (TDOA) for UWB positioning?
I used the default method in the DW1000 library and saw no need to experiment with the other options.
Hello, I'm doing tag2D_3A example with UWB I'm wondering if i'm doing it right what i want to do is to know the x, y position of tag. So, this is my main anchor setup code
And this is my b anchor setup code
And this is my c anchor setup code
And this is part of my ESP32_UWB_tag2D_3A code
I'm wondering if the anchor addresses and current_tag_position matrix are set correctly