Initial commit: ESP32-S3 UWB positioning system
- Added anchor and tag implementations for MaUWB modules - Configured for 6.8Mbps communication with range filtering - Support for multiple tags (tag/tag2 environments) - OLED display integration for real-time measurements - Simplified code without sleep mode and OTA functionality - Complete UWBHelper library for AT command interface
This commit is contained in:
commit
a89215b7ff
10 changed files with 806 additions and 0 deletions
65
platformio.ini
Normal file
65
platformio.ini
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
; PlatformIO Project Configuration File
|
||||
; Build options: build flags, source filter
|
||||
; Upload options: custom upload port, speed, etc.
|
||||
; Library options: dependencies, extra library storages
|
||||
; Advanced options: extra scripting
|
||||
|
||||
[platformio]
|
||||
default_envs = anchor
|
||||
|
||||
; Common configuration for both anchor and tag
|
||||
[env]
|
||||
platform = espressif32
|
||||
board = esp32-s3-devkitc-1
|
||||
framework = arduino
|
||||
monitor_speed = 115200
|
||||
monitor_filters = esp32_exception_decoder
|
||||
build_flags =
|
||||
-DCORE_DEBUG_LEVEL=3
|
||||
-DARDUINO_USB_CDC_ON_BOOT=1
|
||||
|
||||
; Library dependencies
|
||||
lib_deps =
|
||||
adafruit/Adafruit GFX Library@^1.11.7
|
||||
adafruit/Adafruit SSD1306@^2.5.7
|
||||
adafruit/Adafruit BusIO@^1.14.4
|
||||
bblanchon/ArduinoJson@^6.21.3
|
||||
|
||||
; Anchor device configuration
|
||||
[env:anchor]
|
||||
build_src_filter = +<*> -<main_tag.cpp>
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DDEVICE_TYPE_ANCHOR=1
|
||||
-DUWB_INDEX=0
|
||||
-DNETWORK_ID=1234
|
||||
|
||||
; Tag device configuration
|
||||
[env:tag]
|
||||
build_src_filter = +<*> -<main_anchor.cpp>
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DDEVICE_TYPE_TAG=1
|
||||
-DUWB_INDEX=1
|
||||
-DNETWORK_ID=1234
|
||||
|
||||
; Tag device 2 (copy and modify UWB_INDEX for multiple tags)
|
||||
[env:tag2]
|
||||
build_src_filter = +<*> -<main_anchor.cpp>
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DDEVICE_TYPE_TAG=1
|
||||
-DUWB_INDEX=2
|
||||
-DNETWORK_ID=1234
|
||||
|
||||
; Development environment with debugging
|
||||
[env:debug]
|
||||
build_src_filter = +<*> -<main_tag.cpp>
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-DDEVICE_TYPE_ANCHOR=1
|
||||
-DUWB_INDEX=0
|
||||
-DNETWORK_ID=1234
|
||||
-DDEBUG_ENABLED=1
|
||||
debug_tool = esp-prog
|
||||
debug_init_break = tbreak setup
|
||||
Loading…
Add table
Add a link
Reference in a new issue