« View all new features in Mathematica 9  previous  |  next 
New in Mathematica 9Enhanced Control Systems

Design a PID Room Temperature Controller 

Design a PID controller that maintains room temperature near 22 °C even with fluctuations of the outside temperature, modeled as a disturbance.

Enter the models.

In[1]:=
Click for copyable input
X
In[2]:=
Click for copyable input
X
In[3]:=
Click for copyable input
X

Obtain the controller.

In[4]:=
Click for copyable input
X

The disturbance to output transfer function.

In[5]:=
Click for copyable input
X
Out[5]=

Get the outside temperature history for a particular location.

In[6]:=
Click for copyable input
X

The temperature as a continuous function of time.

In[7]:=
Click for copyable input
X
In[8]:=
Click for copyable input
X

Compute the regulated room temperature and sample it every minute.

In[9]:=
Click for copyable input
X
In[10]:=
Click for copyable input
X

Plot the room temperature and the outside temperature.

In[11]:=
Click for copyable input
X
In[12]:=
Click for copyable input
X
In[13]:=
Click for copyable input
X
Out[13]=