PoleGuard

About Project

System overview and architecture

What PoleGuard does

PoleGuard monitors electricity distribution poles in real time. Each pole carries an ESP32 edge node reading tilt angle, IR break-beam wire sag detection and load current. The node streams samples to the platform, which evaluates them against configurable thresholds and raises warning or critical alerts, delivered in-app and over Telegram.

Hardware

  • ESP32-WROOM-32 controller with WiFi uplink
  • ADXL345 accelerometer for tilt angle (2-axis)
  • IR break-beam sensor for wire-sag / intrusion detection
  • ACS712 current sensor for overcurrent detection

Platform architecture

  • React 19 + TypeScript on Vite, TanStack Router file-based routing
  • TanStack Query for server state, URL search params for view state
  • Typed server functions as the single data contract — live ESP32 telemetry via Supabase where reported, mock data elsewhere
  • Tailwind v4 semantic design tokens with shadcn UI primitives
  • Recharts for telemetry visualisation, Leaflet for the geospatial view