# đ¤ SAGE Project: Phase 1 Hardware Validation
This is the initial hardware prototype for **SAGE** (Situational Awareness & Geolocation Entity). It demonstrates the core "nervous system" of our autonomous defense robot.
## đšī¸ Interactive Controls
1. **Start Simulation:** Click the green **Play** button.
2. **Obstacle Detection:** Click on the **HC-SR04** (Front or Rear) and move the slider to change distance.
3. **Human Detection:** Click the **PIR Sensor** and toggle the "Motion" state.
4. **Monitor Data:** Watch the **Serial Monitor** at the bottom to see how the agents interpret the data.
---
## đ§ System Architecture
We use a **Dual-Processor Bridge** to ensure zero-latency safety:
* **Arduino Uno:** The "Edge Processor" responsible for the **Navigator** and **Sentinel** agents.
* **ESP32:** The "Communication Gateway" that prepares data for **AWS IoT Core**.
### Active Agents
* **Navigator:** Monitors front and rear paths for obstacles.
* **Sentinel (EMBER):** Tracks human heat signatures for social interaction protocols.
* **Data Link:** Established via Serial (Pins 0/1) to pass sensor payloads between boards.
---
## đ ī¸ Components List
| Component | Purpose | Pins |
|-----------|---------|------|
| Arduino Uno | Logic & Sensing | - |
| ESP32 DevKit | IoT Gateway | 16 (RX), 17 (TX) |
| Ultrasonic (Front) | Navigation | 12 (Trig), 13 (Echo) |
| Ultrasonic (Rear) | Navigation | 10 (Trig), 11 (Echo) |
| PIR Sensor | Human Tracking | 2 (Digital Out) |
**Next Goal:** Integrating the L298N Motor Driver for autonomous movement in Phase 2.