This project is an IoT-based predictive thermal monitoring system designed to improve EV battery safety using external temperature sensing and Thermal Stress Index (TSI) prediction.
The system continuously monitors battery surface temperature and predicts overheating risk using rate-of-temperature-rise analysis, then triggers local and cloud-based alerts.
- Real-time battery temperature monitoring
- Thermal Stress Index (TSI) calculation
- Predictive overheating detection (Safe / Warning / Danger states)
- LED and buzzer alerts
- LCD display showing live status
- Cloud monitoring and data logging using ThingSpeak
- Offline-first safety operation (local alerts work even without internet)
- Python (Raspberry Pi OS)
- Raspberry Pi 4
- DS18B20 temperature sensor
- ThingSpeak (cloud dashboard)
- MQTT / HTTP for data upload
- Basic IoT and embedded systems concepts
- Raspberry Pi 4
- DS18B20 temperature sensor (for battery surface temperature)
- LEDs (status indication)
- Buzzer (audio alerts)
- 16x2 LCD display (system status)
- Connecting wires, resistors, EV battery pack (test setup)
- Read temperature from the DS18B20 sensor attached to the EV battery surface.
- Calculate the rate of temperature rise over time.
- Compute the Thermal Stress Index (TSI) based on temperature behavior.
- Classify battery status as Safe / Warning / Danger and trigger LED, buzzer, and LCD alerts.
- Upload temperature and TSI data to ThingSpeak for remote monitoring and visualization.
- Response time: 180 ms
- Processing speed: 1.2 Hz (updates per second)
- Low false-positive rate for overheating detection
- Reliable real-time alerts in both local and cloud modes
Ev-code.py– Main Python script running on Raspberry PiSample Data.csv– Example dataset of temperature and TSI valuesImplementation_details.pdf– Detailed implementation documentInvention_overview.pdf– High-level project and innovation overviewTechnical_description.pdf– Technical explanation of system design and TSI logicSafe Mode.png,Warning Mode.png,Danger Mode (1).png– Output screenshotsRaspberry Pi setup.png,Running Circuit.png,LCD Display.png,ThingSpeak Dashboard.png– Hardware and dashboard images
- Clone the repository
git clone https://github.com/Kathireshwar-V/EV-Battery-Thermal-Monitoring.git
cd EV-Battery-Thermal-Monitoring- Install required Python libraries
Install the libraries used in Ev-code.py (for example):
pip install RPi.GPIO requests(Add any other libraries you have used, such as paho-mqtt, numpy, etc.)
- Hardware setup
- Connect DS18B20 sensor to Raspberry Pi GPIO pins as per your circuit diagram.
- Connect LEDs, buzzer, and LCD to the appropriate GPIO pins.
- Configure ThingSpeak channel and update the API key and channel ID in
Ev-code.py.
- Run the code
python Ev-code.pyThe script will start reading temperature, computing TSI, updating the LCD, activating alerts, and sending data to ThingSpeak.
Detailed reports and explanations are available in the PDF files in this repository:
Implementation_details.pdfInvention_overview.pdfTechnical_description.pdf
Add your demo video link here (Google Drive / YouTube):
[Demo Video Link]
- AI-based battery health and lifetime prediction
- Mobile app integration for user notifications
- GPS-based emergency tracking in case of thermal runaway
- Custom PCB design for compact deployment
- Kathireshwar V
- Shakeer Ahmed K
- M Gunal
- Giridharan M G