Hi
Does anyone know is there is a version of the TWR code ported to esp-idf? I have the Arduino version running but would like to develop the code in native esp-idf framework.
Thanks
Hi
Does anyone know is there is a version of the TWR code ported to esp-idf? I have the Arduino version running but would like to develop the code in native esp-idf framework.
Thanks
Isn’t Arduino ESP32 just a wrapper on top of esp-idf ?
I’d imagine you could take the arduino libraries and port them across fairly easily.
I just ported the DW3000 driver to ESP-IDF. While it’s not intended to be open-sourced I can give you some advices/things I’ve found :
This way you’ll be able to keep
POLL_RX_TO_RESP_TX_DLY_UUS
pretty low (around 550~600 if used w/ wifi, 450 w/out but on DW3000 it may differ).
Good luck !
If you means PANS v2 ported to ESP32, yes, we do.
It’s not open source though.
Can I purchase a license to use it?
Hi! I recently implemented a driver for ESP32 with ESP-IDF GitHub - br101/dw3000-decadriver-source: Multiplatform Driver for Qorvo/Decawave DW3000
hi, thanks for building the cool library. Can you please provide an example IDF project where it merely connects to the chip and gets the device ID? I can’t get it to build.
Hi! I don’t have an example ready, but you need to add
set(EXTRA_COMPONENT_DIRS components/decadriver/platform/esp-idf)
to your main CMakeLists.txt file, then define in your sdkconfig:
CONFIG_DW3000_GPIO_IRQ=34 // change to your GPIO pin number
CONFIG_DW3000_GPIO_RESET=27 // change to your GPIO pin number
CONFIG_DW3000_GPIO_WAKEUP=32 // change to your GPIO pin number
CONFIG_DW3000_SPI_MOSI=23 // change to your GPIO pin number
CONFIG_DW3000_SPI_MISO=19 // change to your GPIO pin number
CONFIG_DW3000_SPI_CLK=18 // change to your GPIO pin number
CONFIG_DW3000_SPI_CS=4 // change to your GPIO pin number
CONFIG_DW3000_CHIP_DW3000=y