Coder Social home page Coder Social logo

Comments (6)

Sonic0 avatar Sonic0 commented on July 20, 2024

Hi @jrstubbington,
We have used a very similar breakout board, so probably ok. The pinout is equal to ours, with a 10k pull-down resistor though.
Did you try other examples like StandardRTLSTag_TWR.ino and StandardRTLSAnchorMain_TWR.ino?
Use the latest code in Master branch.

from arduino-dw1000-ng.

tisaia avatar tisaia commented on July 20, 2024

Hello @jrstubbington, aside from @Sonic0 suggestion, perhaps there's also another possibility in the ESP handling of interrupt?
I've tried to do some quick search and found that quite a few people have had trouble with "ISR not in IRAM" issue.
For example: https://forum.arduino.cc/t/using-interrupts-with-a-node-mcu/591995/4

from arduino-dw1000-ng.

julianblanco avatar julianblanco commented on July 20, 2024

Did you ever get this working? I had similar issues with rcv and send working but ranging did not

from arduino-dw1000-ng.

Yashvardhan-A avatar Yashvardhan-A commented on July 20, 2024

I was getting error in my program when i didn't use ICACHE_RAM-ATTR for interrupts.

As the line:
DW1000Ng::initialize(PIN_SS, PIN_IRQ, PIN_RST); uses the function
attachInterrupt(digitalPinToInterrupt(_irq), interruptServiceRoutine, RISING);
The function interruptServiceRoutine is called which needs to be in the RAM and not in FLASH and has to be manually defined by the user as per new update. So when you update the function declaration as
void ICACHE_RAM_ATTR interruptServiceRoutine() in the file DW1000Ng.cpp

the error is resolved

from arduino-dw1000-ng.

Yashvardhan-A avatar Yashvardhan-A commented on July 20, 2024

Hey @Sonic0 I have been trying to understand this library, coding is not my strong pursuit. The examples with interrupts are not working for me (I am using noeMCU1.0 and DWM1000). The other examples for anchors and tag is working as it doesn't incorporate interrupts. I wanted to know if you have any draft API for this library as that should make it a lot easier to implement programs. I want to calculate distances between modules with accuracy. Thank you

from arduino-dw1000-ng.

Sonic0 avatar Sonic0 commented on July 20, 2024

Hi @Yashvardhan001109,
I know, examples with interrupts don't work well. You can use the DW1000Ng::initializeNoInterrupt(<PIN_SS>) method without problems with NodeMCU1.0.
I think that programs implementation with DW1000 without minimum know-how isn't a simple goal to reach out to. In this library, there are all methods you need to create medium complex programs and DW1000NgRTLS abstraction (or single methods used) could be a good starting point. Probably, now (after 2 years) I would need a little time to understand what we did.
With the right setup and antenna calibration, you can obtain good accuracy of about 2/3 centimeters.

from arduino-dw1000-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.