Skip to content

About

Comparison of P, PI, PD, and PID controllers for washing machine water temperature control using mathematical modeling and MATLAB simulations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Comparison of P, PI, PD, and PID Controllers for Washing Machine Temperature Control

A control engineering project focused on modeling and comparing four classical controllers—P, PI, PD, and PID—for regulating water temperature in a domestic washing machine.

Project Overview

Accurate water temperature control is an important requirement in washing machines. The selected temperature directly affects washing quality, fabric protection, energy consumption, and the overall performance of the appliance.

In this project, the mathematical model of the washing machine water heating system is first developed. Four classical feedback controllers are then designed and evaluated:

  • Proportional Controller (P)
  • Proportional-Integral Controller (PI)
  • Proportional-Derivative Controller (PD)
  • Proportional-Integral-Derivative Controller (PID)

The controller parameters are adjusted, and the performance of each controller is analyzed through MATLAB simulations.

Project Objectives

  • Develop a mathematical model of the water temperature system
  • Design P, PI, PD, and PID controllers
  • Adjust the parameters of each controller
  • Compare the transient and steady-state responses
  • Evaluate controller performance under disturbances
  • Reduce steady-state error
  • Reduce overshoot
  • Improve response time
  • Maintain the desired washing water temperature
  • Improve energy efficiency and washing quality

System Description

The washing machine temperature control system consists of:

  • A desired temperature setpoint
  • A temperature sensor
  • A feedback controller
  • A water heating element
  • The thermal dynamics of the water and washing chamber
  • Environmental and operational disturbances

The controller compares the measured water temperature with the desired temperature and generates the required control signal for the heating element.

Mathematical Modeling

The thermal system is modeled based on the relationship between:

  • Heater input power
  • Water temperature
  • Ambient temperature
  • Thermal resistance
  • Thermal capacitance
  • Heat losses
  • Water volume

The resulting mathematical model is used to obtain the system transfer function and analyze its dynamic response.

Controllers

P Controller

The proportional controller generates a control signal based on the current error.

It generally improves the system response speed but may not completely eliminate the steady-state error.

PI Controller

The PI controller combines proportional and integral actions.

The integral component helps eliminate steady-state error, although it may increase overshoot or settling time.

PD Controller

The PD controller combines proportional and derivative actions.

The derivative component improves damping and transient response but does not independently eliminate steady-state error.

PID Controller

The PID controller combines proportional, integral, and derivative actions.

It provides a balance between response speed, steady-state accuracy, damping, and disturbance rejection.

Evaluation Criteria

The controllers are compared using the following performance criteria:

  • Rise time
  • Settling time
  • Overshoot
  • Steady-state error
  • Stability
  • Disturbance rejection
  • Control effort
  • Response speed

MATLAB Simulation

MATLAB is used to:

  • Define the system transfer function
  • Design the controllers
  • Adjust controller parameters
  • Generate step responses
  • Compare controller performance
  • Analyze transient and steady-state behavior
  • Evaluate system response under disturbances

Results

According to the simulation results, the PID controller provides the best overall performance among the evaluated controllers.

The PID controller combines the advantages of proportional, integral, and derivative actions and provides:

  • Faster response
  • Elimination of steady-state error
  • Reduced overshoot
  • Improved stability
  • Better disturbance rejection
  • More accurate temperature regulation

The final results demonstrate that the PID controller is the most suitable classical controller for the modeled washing machine water temperature system.

Technologies and Tools

  • MATLAB
  • Classical Control Theory
  • Feedback Control
  • Transfer Functions
  • Mathematical Modeling
  • P Controller
  • PI Controller
  • PD Controller
  • PID Controller
  • Step Response Analysis

Repository Structure

About

Comparison of P, PI, PD, and PID controllers for washing machine water temperature control using mathematical modeling and MATLAB simulations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages