0% found this document useful (0 votes)
51 views4 pages

Exp04 SBHS

The document describes an experiment on temperature control of a single board heater system using PID control. The experiment setup includes a heater assembly, temperature sensor, microcontroller and fan. The objective is to track a set point temperature by adjusting the PID controller parameters K, Ti, and Td. Graphs are plotted of temperature, heater current and error over time both without and with PID control. With PID control, the set point temperature can be achieved by tuning the PID parameters.

Uploaded by

Rishika Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views4 pages

Exp04 SBHS

The document describes an experiment on temperature control of a single board heater system using PID control. The experiment setup includes a heater assembly, temperature sensor, microcontroller and fan. The objective is to track a set point temperature by adjusting the PID controller parameters K, Ti, and Td. Graphs are plotted of temperature, heater current and error over time both without and with PID control. With PID control, the set point temperature can be achieved by tuning the PID parameters.

Uploaded by

Rishika Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Name: Akshay Markana Roll No.

: 20BEE004
Experiment No: - 04
Temperature control of single board heater system using PID control
strategy.
Course Outcome 3: Perform hands-on experiments to verify the PID control strategies.

Introduction: -

From the Single Board Heater System (SBHS) kit one can understand how the heating system
works, how to sense the temperature of the substance, how to interconnect the SBHS kit
(Physical system) with the computer and how to control the heating of substance via different
types of controllers.
Figure 1 shows the photograph of SBHS kit on which the experiment will be performed.

Figure 1: Single board heater system

 The setup consists of a heater assembly, fan, temperature sensor, microcontroller and
associated circuitry.
 Heater assembly consists of an iron plate placed at a distance of about 3.5 mm from the
nichrome coil.
 A 12 V computer fan positioned below this heater assembly is meant for cooling the
assembly.
 The temperature sensed by the temperature sensor, AD 590, after suitable processing is
fed to the microcontroller.
 The microcontroller ATmega16 is the heart of the setup. It provides an interface
between the process and the computer.
 The LCD display mounted above the microcontroller displays the heated plate
temperature, heater, and fan inputs and also the commands communicated via serial
port.
 The setup is powered by 12 V, 8 A SMPS.
 We have used Scilab with Scicos as an interface for sending and receiving data. This
interface is shown in Fig.2.

Figure 2: Scicos interface for this experiment

 Heater current and fan speed are the two inputs for this system. They are given in PWM
units. A provision is made to set the parameters related to PID controller (K, Ti, Td) in
Scicos. In this experiment we are keeping the Fan speed constant.
 The output temperature profile, as read by the sensor, is also plotted.
 The data acquired in the process is stored on the local drive and is available to the user
for further calculations.

Step for Perform this Experiment: -


 To perform this experiment connect the SBHS kit via USB with CPU, switch ON the
SBHS kit and note down the "Com port" used for serial communication.
 Then start Scilab 4.1.
 First change directory of working as "DSBHS Step-Test”.
 Open the file "step-testser_init.sce" to initialize the per-ambles for the serial
communication. In this the "Com port" for the communication must be same as it
was installed earlier.
 Now "Execute Load into Scilab" this file and go on main command window of
Scilab. It will show the message Com port open or not. If it show the message "Com
port can’t open" then check the connection or check port address (change it if
required) or restart the kit.
 After the port open message open the file "scilab & scicos_codes_PID pid_bda.sci
" and execute it.
 Now,again come to command window and then go to "ApplicationsScicos" and
load " scilab & scicos_codes_PID pid.cos”.
 First Simulate, Compile, Evaluation and Then Run and you get three graphs.
 Our objective is to track set point temperature by changing the values of K, Ti and
Td.
 Try to see the variation in temperature by changing the values of K, Ti, and Td one
by one and achieve the set point temperature.
 Note down the values of K, Ti, and Td for which the set point can be tracked.
 For the same values of K, Ti, and Td other set point temperature also can be
achieved.
Code:

clc; clear
all
close all;
load mydata.matsubplot(3,1,1)
plot(time,temperature,'r','MarkerSize',12,'Linewidth',3)
xlabel('Time, Sec')
ylabel('Temperature, C')
title('Time vs Temperature')grid on
hold on
subplot(3,1,2)
plot(time,heater_current,'b','MarkerSize',12,'Linewidth',3)
xlabel('Time, Sec') ylabel('Heater
Current, PWN, C')title('Time vs Heater
Current') grid on
hold on
subplot(3,1,3)
plot(time,error,'g','MarkerSize',12,'Linewidth',3)
xlabel('Time, Sec')
ylabel('Tracking error')
title('TIme vs Error') grid on

 Without PID
 With PID

Conclusion:
In this experiment we have analyzed and observed temperature control od Single
Board Heater System with PID control and without PID controller. All the
parameters like temperature, fan speed and heater output have been observed from
the graph plotted. PID controller is preferred the most as it tunes the required
values in such a way that output becomes maximum.

You might also like