The increasing adoption of Electric Vehicles (EVs) has created a demand for efficient and reliable Battery Management Systems (BMS) to ensure battery safety, performance, and lifespan. This paper presents a microcontroller-based BMS using PIC16F877A as the main controller and ESP32 for Wi-Fi communication. The system monitors battery voltage using a voltage divider circuit and temperature and humidity using a DHT11 sensor. It uses two external loads which is controlled by relay for battery discharge monitoring. The system estimates the State of Charge (SOC) and State of Health (SOH) and displays battery parameters on a 16×4 LCD. A buzzer provides alerts for low battery, full charge, and high temperature, while an automatic cooling fan helps prevent overheating. Wi-Fi communication enables wireless monitoring of battery information. The proposed system aims to provide an efficient and cost-effective solution for battery monitoring, charging management, and protection in electric vehicles.
Introduction
The study focuses on the design and implementation of an IoT-based Battery Management System (BMS) for Electric Vehicles (EVs) using the PIC16F877A microcontroller and ESP32 Wi-Fi module. Electric vehicle batteries require continuous monitoring and protection because improper charging, over-discharging and excessive temperature can reduce battery life and affect vehicle safety. The proposed system aims to improve battery performance, reliability and safety through real-time monitoring, automatic charging control and thermal protection.
The literature review highlights existing battery management techniques involving microcontrollers such as Arduino and STM32, State of Charge (SOC) and State of Health (SOH) estimation, cell balancing, wireless monitoring and thermal management. The proposed system integrates these essential functions into a single embedded platform using PIC16F877A and ESP32.
The system consists of a PIC16F877A microcontroller, ESP32 Wi-Fi module, 12.7V lithium-ion battery, DHT11 temperature sensor, voltage divider circuit, relays, buzzer, cooling fan and 16 × 4 LCD display. The voltage divider measures battery voltage, while the temperature sensor monitors battery temperature. The microcontroller processes the sensor readings and controls the charging system, battery load, buzzer and cooling fan. The ESP32 enables wireless monitoring of battery parameters, while the LCD displays real-time operating conditions.
The experimental results demonstrate the following performance:
Battery voltage under normal operation: 12.7V.
Battery temperature: 26°C.
Cooling fan status: OFF under normal conditions.
Load status: ON under normal conditions.
Low-voltage protection: Activated at 7V.
Cooling fan activation: At approximately 36–37°C.
During low-voltage conditions, the system activates the buzzer, disconnects the load and initiates charging. Once the battery reaches its fully charged condition, charging is stopped. When the temperature exceeds the specified limit, the cooling fan is activated to control overheating. The ESP32 provides Wi-Fi-based remote monitoring, and the LCD displays battery voltage, temperature and system status.
References
[1] Microchip Technology Inc., \"PIC16F87XA Data Sheet,\" Microchip Technology. Official datasheet?.
[2] Espressif Systems, \"ESP32 Series Datasheet,\" Espressif Systems. ESP32 technical documentation?.
[3] D. Andrea, Battery Management Systems for Large Lithium-Ion Battery Packs, Artech House, 2010.
[4] G. L. Plett, \"Extended Kalman Filtering for Battery Management Systems of LiPB-Based HEV Battery Packs: Part 1. Background,\" Journal of Power Sources, vol. 134, no. 2, pp. 252–261, 2004.
[5] M. A. Hannan et al., \"Battery Electric Vehicles: Looking at the Battery Demand and Recycling Trends,\" IEEE Access, vol. 7, pp. 153489–153505, 2019.
[6] Texas Instruments, \"Battery Management System (BMS) Technical Resources,\" Texas Instruments. Battery management documentation?.