HYDRA: HYbrid Dynamic Realtime Automation


Team

Table of Contents

  1. Introduction
  2. Solution Architecture
  3. Hardware & Software Designs
  4. Testing
  5. Detailed budget
  6. Conclusion
  7. Links

Introduction

Urban congestion is one of the defining challenges of modern cities. Traditional traffic control systems rely on static, fixed-timer logic that is blind to real-world conditions. A traffic light stays red even when the road is empty, while kilometers of cars sit idling on the cross-street. This inefficiency leads to billions of dollars in wasted fuel, increased carbon emissions, and severe delays.

HYDRA (HYbrid Dynamic Realtime Automation) is an intelligent traffic management system that replaces static timers with dynamic, sensor-driven logic. It integrates Heavy Vehicle Detection (to extend green times for trucks) and Rain Sensors (to increase safety margins), creating a responsive, organic traffic flow.


Solution Architecture

High level diagram

HYDRA follows a Centralized-Edge Topology:


Hardware and Software Designs

Hardware Components

Software Components


Testing

We validated the system through three core scenarios:

  1. Green Wave: A platoon released from Intersection A arrived at B exactly as the light turned Green.
  2. Heavy Vehicle Override: Dropping a weighted model car over the Piezo sensor successfully triggered an extended Green time.
  3. Safety Mode: Spraying water on the rain sensor successfully increased the Yellow Light duration.

Detailed budget

All items and costs

Item Quantity Unit Cost Total
Raspberry Pi 4 Model B (Central Brain & MQTT Broker) 1 24,000 LKR 24,000 LKR
SD Card 32GB (Required for OS) 1 1,500 LKR 1,500 LKR
ESP32 DevKit V1 (Edge Nodes - N, S, E, W) 4 1,450 LKR 5,800 LKR
LEDs 5mm (4 Red, 4 Yellow, 4 Green) 12 10 LKR 120 LKR
Resistors 220Ω (LED Protection) 12 5 LKR 60 LKR
Project Boxes - Small (Housing for LEDs) 4 250 LKR 1,000 LKR
PVC Pipes / Dowels 2ft (Signal Poles) 4 150 LKR 600 LKR
Ultrasonic Sensor HC-SR04 (Vehicle Detection) 4 350 LKR 1,400 LKR
IR Break Beam Sensors (Queue Length Detection) 16 150 LKR 2,400 LKR
Piezo Vibration Sensor (Heavy Vehicle Detection) 4 200 LKR 800 LKR
Rain Sensor Module (Weather Detection) 4 250 LKR 1,000 LKR
Capacitive Touch TTP223 (Pedestrian Button) 4 100 LKR 400 LKR
5V 5A Power Adapter (Centralized Power) 1 2,500 LKR 2,500 LKR
Power Distribution Board/Rails 1 500 LKR 500 LKR
Portable WiFi Router (Dedicated MQTT Network) 1 4,500 LKR 4,500 LKR
Plywood Board 4ft x 3ft (Structure Base) 1 1,500 LKR 1,500 LKR
Control Boxes - Base (Enclosures for ESP32s) 4 350 LKR 1,400 LKR
Wires & Consumables (Jumper wires, solder, tape) 1 2,000 LKR 2,000 LKR
TOTAL ESTIMATED BUDGET - - 49,980 LKR

Conclusion

HYDRA demonstrates how adaptive algorithms and IoT connectivity can solve the persistent problem of traffic congestion. By prioritizing real-time responsiveness and emergency transit, HYDRA not only improves daily commute efficiency but also saves lives—making our roads safer, smarter, and more efficient.