-
Notifications
You must be signed in to change notification settings - Fork 64
Error with Two Way Ranging Initiator and Responder and Help with TWR Example #185
Comments
Can you try this version? https://github.com/F-Army/arduino-dw1000-ng/releases/tag/0.3 I suggest you proceed in steps, first try to make basic sender and receiver work. Let me know if the stable release works (a lot of code was merged in between and maybe something broke) |
Hi @maeenk, |
We have used the internal voltage regulator of the NodeMCU 1.0 and the Main Anchor connected via computer USB. |
Yes @maeenk, we have made the same connections but whitout pull-down resistor on IRQ. |
Hello again, it seemed as if I posted in the wrong post last time. Below includes the conversation from the recent post. I wanted to make sure just how exactly do I actually get the same device mode. Does re-downloading the zip file do this? If so, which version should I download? I had switched to an Arduino Uno because I was having difficulty with the NodeMCU. With the Arduino, I was able to get the basic receiver and sender to work. But the two way ranging is still giving me issues. I made sure that I was utilizing 5 volts on the Arduino to use SPI and a bunch of resistors to drop down this voltage to 3.3 volts. However, it doesn't seem to work as I hoped. |
Hi @maeenk , check the DEFAULT_CONFIG structs at the beginning of Arduino examples. |
I have made sure that the both serial monitors were printing out the device mode when not using the voltage divider method when testing the two way initiator and responder. Thank you again. I used the two way responder example code; but I do want to point out that in the arduino-dw1000-ng-0.3 version that both the irq and reset pins were commented out, so I uncommented them when running them. I have been following the setup with Arduino Uno below, but used resistors instead of a voltage regulator. Once I used the method with voltage dividers, as Arduino's SPI operates then, I got this from the responder's serial monitor. And this is wrong as I should've seen some range. Maybe it is in something I did but can't seem to find out yet. I decided to see what exactly was being sent and received, and this was the responder's serial monitor. This shows that nothing is being sent nor received by the responder because of the "0" at the end of each line. Would you provide recommendations? Which zip file should I include instead? |
hey @maeenk |
Yes, when all F appears at the beginning during the reading of configuration committed to the DWM1000, there is a problem with SPI communication. I had the same problems a the beginning of this project due to the breadboards and soldering mistakes w(゚Д゚)w. |
Thank you for the response. I too believe that it has something to do with my wiring. I will move to soldering everything instead of breadboarding. I do want to make sure about the power to the dwm1000. Would I connect a 100 uF capacitor from the VCC to VDDAON, VDD3V3 (in the schematic above)? Just want to make sure the connections to delay this any further. |
Hi Maeenk,
You cannot connect to the DWM1000 without using SPI, and this library always tries to do so. The default SPI pins are used on the nodemcu, which are D5 D6 and D7, D8 is often used as CS. Maybe somebody else can help you debug your scope pictures |
Hi everyone, sorry Maeenk but I don't remember anything about SPI protocol. |
By any chance, was there any flashing needed on the decawave chip or the dw1000 chip themselves? If so, do you guys know how to do that or provide me steps on flashing? Can't seem to replicate the examples. |
Nothing like that, any flashing needed. |
Try adding a 3 second delay at the setup. It seems to help me with the SPI issues. Perhaps the ESP8266 may not have start-up properly and the SPI setup may not be done properly because of that. (I am not sure of the exact reason but it seems to have helped me) Also using D5/GPIO15 as a CS seems to cause some boot issues -> esp8266/Arduino#2466. Connect a 4.7k (i saw from other forums that using anything between 1k and 5k should do the trick, I personally used 5k) resistor from GND to D5 which should solve the boot issues. Hope this helps |
Hello Guys, I am having some trouble when running both the Two Ranging Codes (Initiator and Responder) and also with the 2-D Main Anchor and Tag Implementation codes. I am new to this and want to replicate this system but I've come across some difficulties. Currently, I am using a Node MCU 1.0 ESP 12-e chip that is wired with a DWM1000. I have around people recommending external power, but I a connected my Node MCU to a laptop port. The Basic Receiver and Basic Sender had also had issue as I got bunch of "Question Marks" in the Serial Monitor from the Basic Receiver's Serial Monitor while the Basic Sender is continuously transmitting the packet.
Basic Receiver
Basic Sender
For the Two Ranging Initiator and Responder. Once I implemented the changes for "Fix ISR #181", the Two Way Responder started to output the following although I believed the changes would help bypass this problem. The Two Way Initiator runs the same edited "Fix ISR #181" changes.
(Using the example code provided printed a bunch of hex values, and really implementing that changed reduced it. )
Could you shed some light on the matter?
Along with this, I am also having difficulty with implementing the Standard RTLS Project. Whenever these codes are uploaded, sometimes the Serial Monitor is blank or it outputs the basic setup string statements but never the ranging. The RTLS project utilizes the original src libraries and not the "Fix ISR #181" changes (that was used only in the Two Way Responder and Initiator).
Tag's Serial Monitor.
Anchor B and C
And Anchor Main is usually blank with no range values and once with the printed strings in the setup function.
Sometimes the output from the tag and anchors' serial monitors may not come out until several minutes or ever (nothing even after 10 minutes). Would you please shed some light to this matter as well. What fixes can I implement?
Thank you in advance!
The text was updated successfully, but these errors were encountered: