thotro / arduino-dw1000

A library that offers functionality to use Decawave's DW1000 chips/modules with Arduino.
Apache License 2.0
516 stars 288 forks source link

TriLateration #152

Open AliSiddiqui4 opened 7 years ago

AliSiddiqui4 commented 7 years ago

Using the DW1000 Anchor and Tag code, I am only getting ranges from 3 anchor even though 4 anchors are connected.

Furthermore does anyone know how to send these ranges data to MATLAB so I can do Trilateration there?

jmta commented 7 years ago

You might be better off using a different programming language to work with these values as a quick google makes it seem like you can't have a serial input on matlab. I know C# does.

You'll also be looking into doing triLATeration as opposed to triangulation, as these give you a distance not an angle, you can also trilaterate with 3 anchors.

berkerbatur commented 7 years ago

@AliSiddiqui4 you could try following if Java works for you: https://github.com/lemmingapex/trilateration

AliSiddiqui4 commented 7 years ago

I will try it but for now I seem to be having the problem of getting Range readings on the tag from all three anchors. It gives me the range reading from 2 but very rarely gives the reading from the 3rd one.

berkerbatur commented 7 years ago

You could exceed the reset period if you use DW1000Ranging_ANCHOR/TAG example. if your anchor count is fixed, modifying RangingAnchor/Tag examples and iterating through each anchor one by one could give you better sampling rates, you don't need to do Blink in this. But you have to add destination id in to your data (or another solution) to make RangingAnchor/Tag sketches work with multiple anchors.

AliSiddiqui4 commented 7 years ago

@berkerbatur can you please elaborate on this, I am very new to this and I have no idea whats in the code I just uploaded it on the arduino pro mini and ran it. Can you please explain step by step what I need to do?

christos-h commented 7 years ago

Has anyone succeeded in 2D Trilateration using this library? How can you do TDoA Trilateration without a SYNC pin (since I am assuming you are using the DWM1000 modules which have a GPIO7 pin instead). Furthermore if someone has gotten the Trilateration to work, what is the measurement error for LOS conditions and what is the effective range? (I am considering researching this area for my Masters using this library).

Rotzbua commented 7 years ago

Please move the information about TDoA to the wiki. Thanks. duplicates #47 #77 #108 #128 #130 #152

wangwangguoguo commented 7 years ago

@AliSiddiqui4 Have you successed in get 3 ranges and in the TriLateration. If so, could you share your programm of the TriLateration?

werty37 commented 6 years ago

I have been able to get trilateration working. I used ESP to pass the data to a localization engine which i wrote using processing, albeit still in its early stages. I am getting decent trilateration results. I am using lemmingapex java library for the same.