Assignment - Implementing Control
Assignment - Implementing Control
Objective
Design, simulate, and tune a PID controller using MATLAB Simulink to regulate the in-
ternal temperature of a smart greenhouse. The aim is to maintain the temperature at a
desired setpoint despite external fluctuations.
Background
Greenhouses create controlled environments for plant growth. Temperature regulation is
crucial, and this can be achieved using feedback control. PID controllers are widely used
for this purpose due to their simplicity and effectiveness.
System Dynamics
The thermal dynamics of the greenhouse can be modeled by the following differential
equation:
dTin (t) 1 K
= − (Tin (t) − Tout (t)) + u(t)
dt τ τ
Where:
• Tin (t): Internal temperature [°C]
• Tout (t): External ambient temperature [°C]
• u(t): Control input (heating/cooling power), u(t) ∈ [−100, 100]
• τ : Time constant (e.g., 200 seconds)
• K: System gain (e.g., 0.5)
Students Gymkhana
1
IIT Bombay, Powai
Bombay 76
Tasks
1. System Modeling in Simulink
• Implement the system using Simulink blocks (Integrator, Gain, Sum, Signal Genera-
tor).
• Simulate sinusoidal external temperature input.
4. Reporting
• Include block diagram screenshots, PID parameter values, and performance plots.
• Comment on the controller effectiveness, tuning process, and observations.