Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Example TwoWayRanging is not work. #139

Closed
tdh8316 opened this issue Jan 24, 2019 · 8 comments
Closed

Example TwoWayRanging is not work. #139

tdh8316 opened this issue Jan 24, 2019 · 8 comments

Comments

@tdh8316
Copy link

tdh8316 commented Jan 24, 2019

Step 1: What do you want?

  • TwoWayRangingInitiator and TwoWayRangingResponder do not work. therefore I want them to work.

Step 2: Describe your environment

  • Arduino IDE version or Toolchain: Arduino IDE 1.8.7
  • Arduino device: Arduino Uno R3
  • Used adapter board: None

Step 3: Describe the problem

Affected file(s) or example(s):

  • TwoWayRangingResponder.ino
  • TwoWayRangingInitiator.ino

Observed Results:

twowayranging-failed
It seems not to work!

Thus I tried Basic Connectivity Test.
basicconnectivitytest
I'm not sure it's correct output because I'm a beginner of Arduino and DWM1000.
But I don't think there is any noticeable problem.

And then I uploaded Basic Sender/Receiver to Arduino.
basic-sender-receiver

I still have no clue about this, but it seems to work fine.

EDIT: thotro/arduino-dw1000
I tried also thotro's library.
thotro
The device is removed immediately after it is added.

Why are BasicSender and Receiver working but TwoWayRanging not working?

Expected Results:

  • Jaja, I expected they work.

Wiring

wire
real

@tdh8316
Copy link
Author

tdh8316 commented Jan 26, 2019

Completely resolved after adding a 10K pull-up resistor according to this datasheet.

@tdh8316 tdh8316 changed the title Example TwoWayRanging is not work. (This may be hardware problem) Example TwoWayRanging is not work. Feb 5, 2019
@Leylan24
Copy link

Leylan24 commented Sep 4, 2019

Where did you put the 10K resistor ? I am having the same issue my Basic Receiver and Basic Sender is working but the Two Way Ranging example doesnt work

@tdh8316
Copy link
Author

tdh8316 commented Sep 6, 2019

@lgr9603

@Sonic0
Copy link
Contributor

Sonic0 commented Sep 6, 2019

Where did you put the 10K resistor ? I am having the same issue my Basic Receiver and Basic Sender is working but the Two Way Ranging example doesnt work

I think that the @tdh8316 's solution is relative to section 5.2.2 inside DWM1000 datasheet

@lgr9603
Copy link

lgr9603 commented Sep 8, 2019

@Leylan24 I'm a coworker of @tdh8316 .
Well, we put the 10K resistor on pin 2 to remove noises flowing through it.
And drop the voltage of digital pins from 5V to 3.3V. Dwm1000 can work between 2.4V and 3.75V. (Along to datasheet on decawaver.com)
As I said, arduino uno digital pins use 5V, but DWM1000 sends output signals in 3.3V. So we should increase voltage of DWM1000 signal from 3.3V to 5V.
describing_PICTURE
This is how we worked. I hope it can be help.

@Leylan24
Copy link

Leylan24 commented Sep 8, 2019

Thanks for you reply. I'm using the ESP8266 Nodemcu and get very inaccurate ranges no idea why

@Leylan24
Copy link

This is a bit of a stupid question.

But does the ranges only print when the IRQ pin gets pulled high?

@Sonic0
Copy link
Contributor

Sonic0 commented Sep 23, 2019

This is a bit of a stupid question.

But does the ranges only print when the IRQ pin gets pulled high?

With this library, the IRQ pin is not required. There are two different init processes, with or without Interrupt pin.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants