Home Creators Posts Import Register Favorites Logout

Content

Hi folks!

As mentioned in my last post, I've spent quite some time recently experimenting with "Ultra WideBand Realtime Location Systems" - i.e. a way to accurately track the position and movement of any object or person in a defined area of space. Sounds great, huh?!

I actually became aware of this technology a few years ago, but at the time the hardware seemed pretty expensive. Then I came across a much more reasonably-priced board that used the same Decawave DW-1000 chip incorporated into an ESP32 development board (https://www.tindie.com/products/makerfabs/esp32-uwbultra-wideband/), so I bought a bunch and tried them out.

BUT, before you rush out and hit the purchase button, you might want to watch the video.... tl;dr? It's interesting tech, and *maybe* it can achieve the results it claims, but I certainly couldn't get it to produce usable, reliable readings that I'd want to use in a production environment. This is obviously disappointing, because I'd invested quite some time trying, but I couldn't honestly recommend them at this point. 

However, I've tried to document the approach I took, and I've uploaded all the code I used for both the ESP32 and the Unity project I demonstrate to my GitHub account at https://github.com/playfultechnology/UWBRTLPS - perhaps someone can use this as a basis from which to carry on researching and extending the project. But, if not, hopefully you can still learn something from this tutorial and the associated code, which also demonstrates sending JSON-encoded data via a UDP socket connection over Wi-Fi, which is a useful way of sending a stream of sensor data and I might revisit that again in the future.

Otherwise, hopefully I've saved you some time and money from purchasing these units (as I did) in the hope of creating a simple indoor location tracking system! 

Files

Ultra Wideband Realtime Location System using ESP32 and Unity

In this video, I'll demonstrate my experience of attempting to create a Real-Time Location System using the Decawave DW-1000 Ultra-Wideband transceiver. I'll be using an ESP32 dev board made by MakerFabs, which you buy from https://www.tindie.com/products/makerfabs/esp32-uwbultra-wideband/ If you'd like to create your own boards, you can view the PCB schematic of the board at: https://github.com/Makerfabs/Makerfabs-ESP32-UWB/tree/main/hardware The DW1000 chip will work with an Arduino or any other microprocessor with an SPI interface. The advantage of using the ESP32 is to take advantage of the built-in WiFi for transmitting data from the tag to a server. The server is running a Unity project that opens a socket and listens for incoming UDP connections, then reads distance data sent from the UWB tag, encoded as JSON. It uses trilateration to determine the position of the tag and displays that in a visual interface. You can access the ESP32 code and Unity project I demonstrate in this video at https://github.com/playfultechnology/UWBRTLPS And my modified version of the DW-1000 library can be found at athttps://github.com/playfultechnology/arduino-dw1000 Ultimately, I think it's an interesting tech demo but, unfortunately, I wouldn't be prepared to put this device to any production use right now. If you have any advice to help resolve the issues I have with accuracy, range, and robustness then I'd love to hear! Timings --- 00:00:00 - 00:02:57 Introduction 00:02:58 - 00:05:55 Explanation of the UWB system 00:05:56 - 00:09:12 Testing the ranging accuracy between tag and anchor 00:09:13 - 00:11:03 Measuring and compensating for errors 00:11:04 - 00:31:41 ESP32 Code in the Arduino IDE 00:31:42 - 00:43:49 Unity Project for visualisation 00:43:50 - 00:45:04 Demonstration 00:45:05 - 00:48:12 Conclusions, wrapup, and disappointment!