Skip to content

superiorcave/SpatialManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spatial Management

Real-Time RSSI-Based Indoor Localization SystemOverview

This project is a high-precision indoor tracking system designed to monitor the real-time position of multiple tags within a 4x4m environment. Using a fleet of ESP32-C3 microcontrollers (XIAO and Super Mini) acting as anchors, the system leverages WiFi RSSI (Received Signal Strength Indication) and trilateration math to map coordinates.The system is optimized for stability through Kalman Filtering and Persistent State Tracking, ensuring smooth movement even when individual signals are lost or noisy. IMG_5868

IMG_5864 IMG_5867

The Tech Stack Hardware & Communication:

  • Anchors: ESP32-C3 (Super Mini) running as passive WiFi scanners.
  • Active Tags: ESP32-C3 (XIAO) acting as mobile beacons with integrated OLED status displays and PN532 NFC modules for interaction.
  • Passive Tags: ESP32-C3 Super Mini creating alternative beacons for long term storage that can be monitored with minimal battery wastage and a Danger Prevention System with a MPU-6050 Imu
  • MQTT (Mosquitto): Lightweight messaging protocol used to relay distance data from anchors to a central Mac server.WiFi: Native ESP32 radio used for both data transmission and signal strength measurements.
Screenshot 2026-04-12 at 4 46 58 AM Screenshot 2026-04-12 at 4 46 33 AM

Software & Processing:

  • Python 3: The central "Brain" running on macOS.
  • Localization: Least Squares Trilateration for coordinate calculation.
  • Signal Processing: Kalman Filter implementation via filterpy to predict trajectories and eliminate sensor noise.
Screenshot 2026-04-12 at 5 10 54 AM

Key Features

  • Persistent State Memory: The system maintains a "Memory Table" of the last known distances for every anchor-tag pair, preventing "flickering" if a single packet is dropped.
  • Intelligent Fallback: Automatically switches to 2-Point Estimation or Predictive Coasting if a tag moves behind an obstacle and loses line-of-sight with the required 3 anchors.
  • Hybrid Interaction: Beyond tracking, tags feature NFC Link Broadcasting (URL redirection to bluespace.fun) and visual status updates via SSD1306 OLED screens.
  • Scalability: Designed to handle multiple tags simultaneously by uniquely identifying device MAC addresses and tracking them in isolated Kalman instances.
Screenshot 2026-04-12 at 5 12 03 AM

How It Works

Scanning: Anchors perform high-speed passive WiFi scans to detect specific TAG_PREFIX SSIDs. Distance Modeling: RSSI values are converted to meters using the Log-Distance Path Loss Model.Relay: Distance data is published to an MQTT broker hosted on a central node. Trilateration: The Python engine gathers data from all 4 anchors to calculate the $(x, y)$ intersection.Smoothing: A Kalman Filter processes the raw $(x, y)$ coordinates to produce a fluid, real-time path.

Screenshot 2026-04-12 at 5 15 36 AM Screenshot 2026-04-12 at 5 15 25 AM Screenshot 2026-04-12 at 5 15 08 AM

AI USAGE

room_heatmap Screenshot_2026-04-11_230726 Screenshot_2026-04-12_004733 Screenshot_2026-04-12_025158 Screenshot_2026-04-11_230418 Screenshot_2026-04-11_230433 image-7 image-6 image-5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors