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:
martin 2025-08-19 18:50:38 +02:00
commit a89215b7ff
10 changed files with 806 additions and 0 deletions

56
src/config.h Normal file
View file

@ -0,0 +1,56 @@
#ifndef CONFIG_H
#define CONFIG_H
// Hardware Pin Definitions for ESP32-S3
#define RESET_PIN 16
#define IO_RXD2 18
#define IO_TXD2 17
#define I2C_SDA 39
#define I2C_SCL 38
// UWB Configuration
#ifndef UWB_INDEX
#define UWB_INDEX 0
#endif
#ifndef NETWORK_ID
#define NETWORK_ID 1234
#endif
// System Configuration
#define MAX_DEVICES 10
#define MAX_ANCHORS 8
#define UWB_TAG_COUNT 64
// Timing Configuration
#define DISPLAY_UPDATE_INTERVAL 500
#define DEVICE_TIMEOUT 5000
#define SLEEP_DURATION 5000
// Display Configuration
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
#define SCREEN_ADDRESS 0x3C
// Serial Configuration
#define SERIAL_BAUD 115200
// Debug Configuration
#ifdef DEBUG_ENABLED
#define DEBUG_PRINT(x) Serial.print(x)
#define DEBUG_PRINTLN(x) Serial.println(x)
#define DEBUG_PRINTF(x, ...) Serial.printf(x, __VA_ARGS__)
#else
#define DEBUG_PRINT(x)
#define DEBUG_PRINTLN(x)
#define DEBUG_PRINTF(x, ...)
#endif
// WiFi Configuration (optional)
#ifdef OTA_ENABLED
#define WIFI_SSID "YOUR_WIFI_SSID"
#define WIFI_PASSWORD "YOUR_WIFI_PASSWORD"
#endif
#endif // CONFIG_H