Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,6 +10,88 @@ pinned: false
|
|
| 10 |
license: mit
|
| 11 |
short_description: Range safety calculator simulating realistic EV behaviour
|
| 12 |
---
|
|
|
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 10 |
license: mit
|
| 11 |
short_description: Range safety calculator simulating realistic EV behaviour
|
| 12 |
---
|
| 13 |
+
# Range Safe Mode Prototype
|
| 14 |
|
| 15 |
+
## Overview
|
| 16 |
+
Range Safe Mode is an early functional prototype developed for **Project 2** in
|
| 17 |
+
*Design and Deployment of AI/ML Systems*.
|
| 18 |
+
The prototype helps EV drivers quickly determine whether they have enough battery
|
| 19 |
+
to safely complete a trip using a simple **Safe / Marginal / Unsafe** indicator.
|
| 20 |
+
|
| 21 |
+
This prototype is designed to test user understanding of multi factor energy
|
| 22 |
+
prediction not to provide exact real world accuracy.
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## What the Prototype Does
|
| 27 |
+
The system estimates trip energy using:
|
| 28 |
+
|
| 29 |
+
- Distance (km)
|
| 30 |
+
- Elevation gain (m)
|
| 31 |
+
- Average speed (km/h)
|
| 32 |
+
- Temperature (°C)
|
| 33 |
+
|
| 34 |
+
Then compares the required energy against:
|
| 35 |
+
|
| 36 |
+
- Available battery (kWh)
|
| 37 |
+
- Reserve buffer (kWh)
|
| 38 |
+
|
| 39 |
+
The output includes:
|
| 40 |
+
|
| 41 |
+
- **SAFE TO PROCEED**
|
| 42 |
+
- **MARGINALLY SAFE**
|
| 43 |
+
- **CHARGING REQUIRED**
|
| 44 |
+
|
| 45 |
+
A short explanation and a confidence bar are also provided.
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
## Why the Margin Threshold is 5 kWh
|
| 50 |
+
A **5 kWh safety margin** was chosen for the prototype because:
|
| 51 |
+
|
| 52 |
+
- Most EVs consume **0.15–0.22 kWh per km**, so 5 kWh = ~25–30 km buffer.
|
| 53 |
+
- It accounts for unexpected factors: sudden speed changes, weather shifts, detours.
|
| 54 |
+
- Many OEMs recommend keeping a 5-10% buffer for battery health and uncertainty.
|
| 55 |
+
- It prevents a route from being labeled “safe” when the margin is razor thin.
|
| 56 |
+
|
| 57 |
+
This number is not meant to be exact, it is a **reasonable, user-friendly buffer**
|
| 58 |
+
for a prototype that communicates the idea of confidence vs. risk.
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
## How to Use
|
| 63 |
+
1. Enter the battery and trip parameters.
|
| 64 |
+
2. Click **Submit**.
|
| 65 |
+
3. Read the safety classification and explanation.
|
| 66 |
+
4. Adjust inputs to test different scenarios.
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
## Limitations
|
| 71 |
+
This prototype does **not** include:
|
| 72 |
+
|
| 73 |
+
- Real map routing
|
| 74 |
+
- Live elevation APIs
|
| 75 |
+
- Weather or traffic data
|
| 76 |
+
- Battery aging / degradation
|
| 77 |
+
- Regenerative braking
|
| 78 |
+
- Real EV calibration
|
| 79 |
+
|
| 80 |
+
Energy estimates are **simulation-based** and meant for conceptual testing only.
|
| 81 |
+
|
| 82 |
+
---
|
| 83 |
+
|
| 84 |
+
## Tech Stack
|
| 85 |
+
- Python
|
| 86 |
+
- Gradio UI
|
| 87 |
+
- Lightweight simulated EV energy model
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
## Future Extensions
|
| 92 |
+
- Integrate elevation API (OpenElevation)
|
| 93 |
+
- Add visual "range bubble" map overlay
|
| 94 |
+
- Recommend fallback chargers
|
| 95 |
+
- Combine with team features (queue prediction, congestion forecasting)
|
| 96 |
|
| 97 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|