#driver #module #band #ultra #esp32 #transceiver #dw3000

no-std dw3000-ng

A modernized driver for DW3000 Ultra Wide Band module

12 releases (5 breaking)

new 0.8.1 May 26, 2024
0.7.1 May 24, 2024
0.5.1 Mar 13, 2024
0.4.0 Dec 2, 2023
0.3.1 Nov 17, 2023

#123 in Hardware support

Download history 10/week @ 2024-02-18 11/week @ 2024-02-25 88/week @ 2024-03-10 12/week @ 2024-03-17 165/week @ 2024-03-31 49/week @ 2024-04-07 2/week @ 2024-04-14 177/week @ 2024-04-28 23/week @ 2024-05-05 118/week @ 2024-05-19

318 downloads per month

BSD-3-Clause

190KB
2.5K SLoC

Rust DW3000 Driver crates.io Documentation

Introduction

A modernized driver for the Decawave DW3000 UWB transceiver, written in the Rust programming language. We used the crate dw1000 developped for the DW1000 module and changed the registers access and spi functions, added fast command and implemented some high level functions.

Status

Both RTT methods (single and double sided) are working and giving good positioning values. PDoA and TDoA can be enabled optionally (Please read the docs as they require certain configurations!).

Compared to the old dw3000 crate we fixed the GPIOs and LEDs, also got rid of the old unmaintained ieee802154 crate and replaced it with smoltcp.

We mainly test on the ESP32 platform with embassy async framework.

Usage

Include this crate in your Cargo project by adding the following to Cargo.toml:

[dependencies]
dw3000-ng = "0.8"

Documentation

Please refer to the API Reference.

Please also refer to the DW3000 User Manual

Citation

If you are using this in your academic work, please cite it as follows:

@inproceedings{Jiang24hotmobile,
    author = {Jiang, Fan and Dhekne, Ashutosh},
    title = {Demo: uFiμ: An open-source integrated UWB-WiFi-IMU platform for localization research and beyond},
    year = {2024},
    isbn = {9798400704970},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    url = {https://doi.org/10.1145/3638550.3643628},
    doi = {10.1145/3638550.3643628},
    booktitle = {Proceedings of the 25th International Workshop on Mobile Computing Systems and Applications},
    pages = {156},
    location = {San Diego, CA, USA},
    series = {HOTMOBILE '24}
}

CHANGELOG

0.8.1

  • Fixed the STS register setup when calling config() with STS enabled

0.8.0

  • Renamed the num-traits feature to rssi to better indicate what it does
  • Added PDoA and TDoA support

0.7.0

  • Add field rx_quality to struct Message holding first path signal power by (@elrafoon)
  • Fixed STS config values by (@elrafoon)

0.6.1

  • Fixed read of the RX_RAWST register

0.6.0

  • Added the carrier recovery integrator register

0.5.1

  • Fix DTUNE register value

0.5.0

  • Migrated to embedded-hal 1.0
  • Removed explicit manipulations of the SPI CS pin

License

BSD-3-Clause

Dependencies

~6.5MB
~134K SLoC