arduino-dw1000 icon indicating copy to clipboard operation
arduino-dw1000 copied to clipboard

Building a Receiver for a System of 3 Anchors and 1 Tag

Open Archeresque opened this issue 7 years ago • 8 comments

I have a system of 3 anchors that are tracking one tag. The problem with this system is that the tag is wired to my computer and I'd like it to be wireless. I decided to build a receiver that would then communicate with the tag and push the distance data from the tag through the serial port of my computer. I tried implementing the send and receive examples into the code of my tag and receiver but I am receiving a garbled output. My system uses Arduino Pro Mini and the latest version of the Arduino IDE as well as the latest release of this library. Any ideas on how I should move forward to program my receiver?

Archeresque avatar Oct 26 '17 20:10 Archeresque

I will try the same thing next week. I have multiple anchors wich have to send the data to one master anchor wich is connected to my computer or wifi. when I succeed I will shared my code with you.

please keep me updated

r-schouten avatar Oct 28 '17 18:10 r-schouten

@r-schouten I haven't completely solved the problem but I was able to mitigate a temporary solution. Since I was able to send the data packet out amongst a garbled mess, I simply programmed the receiver to ignore and random characters and only read the data I'm looking for. My receiver output looks like this: 1,1.19 liufliwuefhuefhpu cwieufhvoiweufhvi viweufhiweufhviuef

So I just had it look for the anchor ID and parse from there.

Archeresque avatar Oct 28 '17 20:10 Archeresque

can you upload that code?

r-schouten avatar Oct 31 '17 10:10 r-schouten

@r-schouten Here is a screenshot of the function that will read the packet. It's very basic. If you have your sending unit format its output as a string, just use an ID number, a delimiter, and then the data and you'll have an easy to read packet. screenshot 87

Archeresque avatar Oct 31 '17 16:10 Archeresque

1 2

TAG.zip

Use above code in tag. Before use it, you should change anchor values to static (eg. 1 2 and 3). In order to do so , you have to edit dw1000device.cpp and dw1000ranging.cpp files. refer the attached images to edit them.

hdineth avatar Nov 06 '17 12:11 hdineth

@hdineth Very clean tag code and good explanation of the anchor addressing.

Archeresque avatar Nov 09 '17 18:11 Archeresque

@Archeresque I will be doing the same implementation, but I'm still kind of stuck at getting three anchors to work at the same time. Did you use something like the token ring protocol?

Rhodes187 avatar Feb 12 '18 22:02 Rhodes187

1 2

TAG.zip

Use above code in tag. Before use it, you should change anchor values to static (eg. 1 2 and 3). In order to do so , you have to edit dw1000device.cpp and dw1000ranging.cpp files. refer the attached images to edit them.

How can i implement this library for multiple anchors and tags? I could not find deltaTime and frame length option. I also checked all issues in this repository. Can you explain in more detail?

anthony211212 avatar May 11 '24 15:05 anthony211212