You are on page 1of 4

Lab Handout #9: Temperature Control

Instructor: Engr. Veer Bhan


Name: _________________________
CMS ID: _______________________
Department of Electrical Engineering
ELE-321: Linear Control Systems for BE-VI, Spring 2022
Rubrics for Marks Breakdown
Report Structure and
Methods, Results & Formatting, Figures and Total (Out of 10)
Discussion Captioning
70 % 30 % 100 %

Instructions:
1. The lab report has to be uploaded on the LMS (in pdf format) within a week.
2. Each lab report should have a title. Whereas, each task should be properly numbered and
have a method, results, and discussion sections.
3. An appropriate picture of the block diagram or both with text (of suitable length) should
be used in the methods section.
4. Pictures (e.g., front panel or the hardware or both), tables, and graphs with appropriate
text should be used in the results section.
5. The discussion section only should be used when deemed necessary ( e.g., the
explanation of the results).
Rubrics for Lab Reports
S. Criteria Beginning Developing Competent Outstanding
No. (40%) (60%) (80%) (100 %)

1. Methods, The student has Partial/incomplete A major portion of Methods have been
Results, and used incorrect methods, results, the methods, clearly outlined,
Discussion methods, provided their interpretation, results, important trends and
incorrect results, or interpretations or data comparisons have
(70%) their interpretation, comments/discussi comments/discussi been interpreted
or on have been on has been correctly and
comments/discussi provided by the provided. However, discussed, a good
on. This indicates a student. the section can be understanding of
lack of further improved results is conveyed
understanding. by putting more along with good
information. discussion.
2. Report Figures, tables, Figures, graphs, The figure, tables, Figures, tables, and/or
Structure and/or graphs were and/or tables were and/or graphs were graphs were nicely
(30%) poorly (i.e., blurry, fine but contained good-looking and presented with
no captions, no errors. The overall the overall report complete captions and
figure number) format was broken format was good the format was
constructed and and contained but still need some amazing.
contained errors. grammatical and improvements.
The overall format contextual errors.
was out of order,
contained many
grammatical and
contextual errors.
Learning Outcomes
After completing this session, you should be able to interface multiple sensors/devices with
myRIO and write a LabVIEW code to implement a temperature control (feedback/close loop)
system.

Introduction
A temperature control system automatically controls the temperature of an object or an area (like
in air conditioners and refrigerators), where the temperature is automatically adjusted as per the
reference input. To implement a temperature control system, we need a temperature sensor, a
controller, and a cooling device (like a fan) or a system.
In this lab, we will use a thermistor as a feedback element, a dc motor as the fan, the inverse of
the difference between the desired and actual temperature as the simple components. This lab
aims to automatically adjust the fan speed by detecting the surrounding temperature.
The dc motor requires a high current, consequently cannot be directly connected with the
myRIO. H-bridge module, shown in figure 2, is a circuit used generally to interface a DC motor.
The speed of a DC motor is controlled through pulse wave modulation (PWM). Perform the
following steps to interface a thermistor and a DC motor with the myRIO.

Figure 2 LN298 Pin configuration


Figure 1 Voltage divider circuit

 Connect VDD and VT of the voltage divider circuit to appropriate myRIO pins.
 Connect the battery to the appropriate pins of the H-bridge module. Interconnect the ground
of the H-bridge, myRIO, and the battery.
 Use the PWM block of the myRIO module and then connect it with the H-bridge ENA pin.
 Use two digital input-output (DIO) blocks and connect them with the H-bridge (IN1 and IN2)
pins.
 Connect the motor with OUT1 and OUT2 pins of the H-bridge.
Figure 3 Block diagram of the main VI.

Figure 4 Block diagram to convert thermistor resistance to temperature in centigrade.


Tasks

1. Interface the components with myRIO and run the VIs provided.
2. What could be the possible purpose of the case structure used in the main VI?
3. What is the effect desired temperature (when it is below and higher than the measured
temperature) on the speed and direction of the motor?

You might also like