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

Using library with DWM1000 #322

Open ishirgarg opened 3 years ago

ishirgarg commented 3 years ago

I tried using this library with the DWM1000 module, however the Tag and Anchor programs did not seem to work upon upload: no communication occurred between the tag and anchor. I know for sure that the modules function properly as I am able to run my own test programs. Are there any modifications needed to this code so that it will work with the DWM1000, given that the tag/anchor programs are quite old?

viaSeunghyun commented 3 years ago

No, This Library is work. I tested DWM1000 and Atmega328p.

Are you test DW1000Ranging_ANCHOR to DW1000Ranging_Tag or RangingAnchor to RangingTag?

sharifsagar80 commented 3 years ago

I am also using trying to use the library but not working. I am using Arduino Uno and DWS1000 Arduino Shield. I tried both DW1000Ranging_ANCHOR to DW1000Ranging_Tag and RangingAnchor to RangingTag. I can get the device information in the serial monitor such as device mode and channel number like these.

No, This Library is work. I tested DWM1000 and Atmega328p.

Are you test DW1000Ranging_ANCHOR to DW1000Ranging_Tag or RangingAnchor to RangingTag?

Chrisrdouglas commented 2 years ago

@sharifsagar80 I'm having a similar problem right now. did you ever get yours working? I'm able to get to the point where it prints the device address and ### ANCHOR ### or ### TAG ###

sharifsagar80 commented 2 years ago

@Chrisrdouglas I changed the Arduino board with Nucleo f429zi. Now it is working well. you also need to redefine the reset and IRQ pin based on your microcontroller.

Chrisrdouglas commented 2 years ago

Oh dang, so you didn't get it to work with the arduino uno at all?

I've set the IRQ pin to be on pin 2 and the reset to be on pin 3

ZakariaPZ commented 2 years ago

@Chrisrdouglas Were you able to fix yours, and get it to work on the Uno?

Chrisrdouglas commented 2 years ago

No, I got super busy with work and haven't had the time to work on it in a while :/

Are you having similar problems? And did you try calibrating the antennas?

ZakariaPZ commented 2 years ago

@Chrisrdouglas I haven't actually started my project yet, but I've gotten some Unos and DWM1000s on order. I'm planning on following a certain tutorial setup, so I'm hoping it works out. Do you know how to calibrate the antennas?

sharifsagar80 commented 2 years ago

@ZakariaPZ Please refer to the DW1000 user manual v2. They give you a comprehensive description of the antenna delay calibration part.

ZakariaPZ commented 2 years ago

@sharifsagar80 Did you use this DW1000 library with the Nucleo?

sharifsagar80 commented 2 years ago

@sharifsagar80 Did you use this DW1000 library with the Nucleo?

Yes. I have used the DW1000 library with Nucleo