Design of a Cooling System for a Motor Controller in an Electric Car Using Fuzzy Logic Method

The motor controller in an electric vehicle generates significant heat during operation. This project presents an adaptive cooling system based on a fuzzy logic controller that dynamically regulates the pump and cooling fan speeds according to real-time temperature measurements — maintaining an optimal operating temperature while reducing energy consumption compared to conventional cooling systems.

Motor controller Cooling System Fuzzy Logic Energy Efficiency
Poster ringkasan sistem pendingin kontroler motor logika fuzzy
44–45°C
Stable controller temperature under fuzzy logic control
9,15 W
Average power consumption with fuzzy control
↓ 25%
Energy savings compared to a system without intelligent control
0,90
Highest OCPI value, indicating the best cooling performance
01

Pendahuluan

Motor controllers in electric vehicles generate significant heat during operation. If not properly managed, excessive temperatures can reduce efficiency, accelerate component aging, and affect overall system reliability.

Most conventional cooling systems operate at a fixed speed or use simple ON–OFF control, resulting in unnecessary energy consumption under varying thermal conditions. In this project, the conventional cooling system consumes an average of 12.25 W during normal operation.

To address this issue, this project presents a fuzzy logic–based cooling system that dynamically adjusts the pump and cooling fan speeds according to real-time temperature measurements. The proposed system maintains the controller within its optimal operating temperature while reducing energy consumption and improving cooling performance.

Problem Statement & Objectives

  • How can energy efficiency be improved in a motor controller cooling system?
  • How can an adaptive cooling system maintain the controller within its optimal operating temperature?
  • Objective: Develop a fuzzy logic–based cooling system that minimizes energy consumption while maintaining effective cooling performance.
  • Scope: The study focuses on the motor controller cooling system, with energy efficiency evaluated based on the cooling system's power consumption.
02

Metodologi

The system consists of two main components: a plant model that simulates the motor controller's heat generation using a PTC heater, and a controller model based on an ESP32 with a fuzzy logic algorithm and PWM driver to regulate the water pump and cooling fan.

01 · Data Acquisition

Temperature & Current Sensor

DS18B20 sensors measure the water block & radiator temperatures, while an INA219 sensor monitors the system's current consumption.

02 · Fuzzifikasi

Temperature Classification

The measured temperature is classified into four linguistic variables: Safe, Normal, Hot, and Critical

03 · Inferensi

Fuzzy Inference Engine

The fuzzy controller applies four IF–THEN rules to determine the appropriate control output based on the current temperature condition

04 · Defuzzifikasi

PWM Control

The centroid method converts the fuzzy output into PWM signals to regulate the pump and cooling fan speeds

Diagram alur interaksi arsitektur sistem
System architecture illustrating the interaction between the thermal plant model and the ESP32-based fuzzy logic controller
Diagram blok sistem pendingin
Closed-loop control system for regulating the cooling pump and radiator fan using fuzzy logic
Desain mekanik prototipe
Physical implementation of the cooling system prototype and hardware layout
Input TemperatureRange
Safe0–40 °C
Normal30–70 °C
Panas60–90 °C
Kritis85–100 °C
PWM OutputRange
Low0–75
Mid50–150
High120–220
Full205–255
Safe → Low Normal → Mid Panas → High Kritis → Full

Hardware Components

  • ESP32 – Main controller executing the fuzzy logic algorithm and PWM control
  • DS18B20 – Temperature sensors for the water block and radiator
  • INA219 – Current and power monitoring sensor
  • PC817 + TIP122 – PWM driver circuit for the pump and cooling fan
  • Water Pump & Radiator Fan – Cooling actuators regulated by the fuzzy controller
  • PTC Heater – Heat source used to emulate the thermal behavior of a motor controller
  • OLED Display – Real-time monitoring of temperature and current measurements
03

Hasil & Pembahasan

The prototype was experimentally evaluated through sensor validation, thermal model verification, and performance testing under both normal and disturbance conditions. The proposed fuzzy logic controller was compared with conventional cooling methods, including fixed-speed operation and ON–OFF control.

Thermal Model Validation

The prototype's thermal response closely matched the first-order thermal model developed in MATLAB. During the 30-minute heating test, both responses exhibited similar dynamic characteristics, resulting in a Mean Absolute Error (MAE) 0,936°C dan a Root Mean Square Error 1,227°C, confirming the accuracy of the proposed thermal model.

Grafik perbandingan respon suhu prototipe dengan simulasi
Prototype and simulation responses show excellent agreement, reaching steady-state after approximately 13 minutes

Normal Operating Condition

The three cooling strategies were evaluated under normal operating conditions to compare temperature stability, overshoot, and energy consumption. While the ON–OFF controller achieved the lowest power consumption, it introduced significant temperature oscillations. The proposed fuzzy logic controller maintained the target temperature of 44–45°C with only 0.81°C overshoot, providing a better balance between cooling performance and energy efficiency.

Grafik respon suhu ON-OFF tanpa gangguan
Conventional systemsOvershoot 0,03 °C
Grafik respon suhu ON-OFF tanpa gangguan
ON‑OFF ControlOvershoot 12,0 °C
Grafik respon suhu fuzzy tanpa gangguan
Fuzzy Logic ControlOvershoot 0,81 °C

Thermal Disturbance Condition

The cooling strategies were further evaluated under sudden thermal disturbances. The ON–OFF controller exhibited a large temperature overshoot of 29.12°C due to its binary switching behavior. In contrast, the fuzzy logic controller adapted smoothly to the changing thermal conditions, limiting the overshoot to 10.94°C and gradually restoring the controller temperature to the desired operating range.

Grafik respon suhu ON-OFF tanpa gangguan
Conventional systemsOvershoot 7,88 °C
Grafik respon suhu ON-OFF dengan gangguan
ON‑OFF ControlOvershoot 29,12 °C
Grafik respon suhu fuzzy dengan gangguan
Fuzzy Logic ControlOvershoot 10,94 °C

Overall Cooling Performance Index (OCPI)

The Overall Cooling Performance Index (OCPI) combines cooling effectiveness, temperature overshoot, and energy efficiency into a single performance metric. Under normal operating conditions, the proposed fuzzy logic controller achieved the highest OCPI score, demonstrating the best balance between thermal stability and energy efficiency.

Conventional systems
0,84
ON‑OFF Control
0,64
Fuzzy Logic Control
0,90
OCPI under normal operating conditions (0–1 scale; higher values indicate better overall cooling performance)
Performance MetricConventional systemsON‑OFFFuzzy Logic
Normal Condition — Average Power12,25 W6,46 W9,15 W
Normal Condition — Overshoot0,03 °C12,00 °C0,81 °C
Normal Condition — OCPI0,840,640,90
Disturbance Condition — Average Power12,35 W7,56 W9,22 W
Disturbance Condition — Overshoot7,88 °C29,12 °C10,94 °C
Disturbance Condition — OCPI0,870,560,83
04

Kesimpulan

The proposed fuzzy logic–based cooling system maintained the motor controller within the target operating temperature of 44–45°C while reducing average cooling system power consumption by approximately 25% compared with the conventional cooling method.

Compared with the ON–OFF controller, the fuzzy controller achieved a better balance between thermal stability and energy efficiency, obtaining the highest OCPI value (0.90) and demonstrating reliable performance under both normal and disturbed operating conditions.