Modelling the Temperature Changes of a Hot Plate and Water in a Proportional, Integral, Derivative Control System

Similar documents
ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

2.004 Dynamics and Control II Spring 2008

Process Control, 3P4 Assignment 6

B1-1. Closed-loop control. Chapter 1. Fundamentals of closed-loop control technology. Festo Didactic Process Control System

Converter System Modeling via MATLAB/Simulink

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.02 Spring 2003 Experiment 17: RLC Circuit (modified 4/15/2003) OBJECTIVES

Experiment 1. Measurement of Thermal Conductivity of a Metal (Brass) Bar

Thermocouple Calibrations and Heat Transfer Coefficients

Example: DC Motor Speed Modeling

Temperature Controllers

Step Response of First-Order Systems

MECHATRONICS II LABORATORY Experiment #4: First-Order Dynamic Response Thermal Systems

Example: Modeling DC Motor Position Physical Setup System Equations Design Requirements MATLAB Representation and Open-Loop Response

Name Partner. Thermal Physics. Part I: Heat of Vaporization of Nitrogen. Introduction:

Analysis and Design of Control Systems in the Time Domain

Accurate Joule Loss Estimation for Rotating Machines: An Engineering Approach

RC Circuit (Power amplifier, Voltage Sensor)

Inductance. Slide 2 / 26. Slide 1 / 26. Slide 4 / 26. Slide 3 / 26. Slide 6 / 26. Slide 5 / 26. Mutual Inductance. Mutual Inductance.

Safety Barriers Series 9001, 9002 Standard Applications

Linear Control Design for a Plastic Extruder

Slide 1 / 26. Inductance by Bryan Pflueger

Chapter 7 Direct-Current Circuits

What happens when things change. Transient current and voltage relationships in a simple resistive circuit.

24 volts (0.25 amps current-limited)

Problem Weight Total 100

Experiment P43: RC Circuit (Power Amplifier, Voltage Sensor)

4. Heat and Thermal Energy

Specific Heat. Power Supply Beaker Beam Balance Conecting wires ice. Assembly

Three phase induction motor using direct torque control by Matlab Simulink

Specific Heat. Power Supply Beaker Beam Balance Conecting wires ice. Assembly

Summary Notes ALTERNATING CURRENT AND VOLTAGE

Energy. E d. Energy Power = time. E t P = E t = P

IGCSE Sample Examination Paper

CHM201 General Chemistry and Laboratory I Laboratory 7 Thermochemistry and Hess s Law May 2, 2018

MECHANICS AND CONTROL OF PUMPING A PLAYGROUND SWING AND ROBOTIC IMPLEMENTATION ABSTRACT INTRODUCTION NOMENCLATURE

Physics 142 Steady Currents Page 1. Steady Currents

Lecture 6: Control Problems and Solutions. CS 344R: Robotics Benjamin Kuipers

CHAPTER 6. Inductance, Capacitance, and Mutual Inductance

Process Control & Design

Harnessing the Power of Arduino for the Advanced Lab

EXAMPLE: MODELING THE PT326 PROCESS TRAINER

( ) ( ) = q o. T 12 = τ ln 2. RC Circuits. 1 e t τ. q t

National 5 Physics. Electricity and Energy. Notes

Designing a Thermostat Worksheet

Resistivity and Temperature Coefficients (at 20 C)

The (Fast) Fourier Transform

DOUBLE ARM JUGGLING SYSTEM Progress Presentation ECSE-4962 Control Systems Design

0 t < 0 1 t 1. u(t) =

ECE1750, Spring Week 11 Power Electronics

Continuous system simulation. Prof. S. Shakya

Design of Analog Integrated Circuits

Veerapong Kanchanawongkul*

SECTION 1.2. DYNAMIC MODELS

Energy Conversion in the Peltier Device

Lab 3: Quanser Hardware and Proportional Control

Temperature Project. Lab: Section K. Masahiro Inano Christopher Casey Adam Tigue

Feedback Control part 2

I. Introduction and Objectives

HIGHLY ACCURATE PENDULUM INSTRUMENT ECE-492/3 Senior Design Project Spring 2013

MATLAB SIMULINK Based Transient Exploration of RL Circuit

(Refer Slide Time: 1:42)

Anemometry Anemometer Calibration Exercise

Observation of the Superconductivity of High Temperature Superconductor, YBa Cu O δ

Farr High School NATIONAL 5 PHYSICS. Unit 1 Electricity and Energy. Exam Questions

Temperature Measurement and First-Order Dynamic Response *

Linear Circuits. Concept Map 9/10/ Resistive Background Circuits. 5 Power. 3 4 Reactive Circuits. Frequency Analysis

LECTURE 28. Analyzing digital computation at a very low level! The Latch Pipelined Datapath Control Signals Concept of State

SRV02-Series Rotary Experiment # 1. Position Control. Student Handout

1 Fig. 3.1 shows the variation of the magnetic flux linkage with time t for a small generator. magnetic. flux linkage / Wb-turns 1.

Course roadmap. Step response for 2nd-order system. Step response for 2nd-order system

LECTURE 6 MUTUAL INDUCTANCE

Thermocouple Dynamic Errors Correction for Instantaneous Temperature Measurements in Induction Heating. Krzysztof Konopka 1

Objective: To study P, PI, and PID temperature controller for an oven and compare their performance. Name of the apparatus Range Quantity

Analog Signals and Systems and their properties

MIL-STD-750D METHOD THERMAL RESISTANCE MEASUREMENTS OF GaAs MOSFET's (CONSTANT CURRENT FORWARD-BIASED GATE VOLTAGE METHOD)

NATIONAL 5 PHYSICS ELECTRICITY

MECH 1500 Final Part 2 Review

The LM741C Integrated Circuit As A Differential Amplifier Building The Electronic Thermometer

Joseph D. Galloway II Robotics and Motion Laboratory, Dept. of Mechanical Engineering San Antonio, TX, USA Gerardo Aaron Rios

Comparing 2-D Conduction Experiments with Simulation

Circuit topologies for Peltier effect anemometer

Comparison of Feedback Controller for Link Stabilizing Units of the Laser Based Synchronization System used at the European XFEL

Energy. This provides a practical measure of the usefulness of a machine. The useful energy transfer in a generator can be represented by:

8.1 Circuit Parameters

A Novel Three-phase Matrix Converter Based Induction Motor Drive Using Power Factor Control

Making Contact with Temperature

Exploring Physics and Math with the CBL System

1. Mark the correct statement(s)

Sensorless DTC-SVM of Induction Motor by Applying Two Neural Controllers

State Feedback Control of a DC-DC Converter for MPPT of a Solar PV Module

The output voltage is given by,

High Temperature Measurement System Design for Thermoelectric Materials In Power Generation Application

In-Process Control in Thermal Rapid Prototyping

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual

Lecture (07) Electric Current and Resistance By: Dr. Ahmed ElShafee Dr. Ahmed ElShafee, ACU : Spring 2015, Physics II

EXPERIMENT ET: ENERGY TRANSFORMATION & SPECIFIC HEAT

The implementation of an ideal photovoltaic module in Matlab/Simulink using Simpowersystems Toolbox

Department of Mechanical Engineering ME 96. Free and Forced Convection Experiment. Revised: 25 April Introduction

physics 4/7/2016 Chapter 31 Lecture Chapter 31 Fundamentals of Circuits Chapter 31 Preview a strategic approach THIRD EDITION

Pulsed Lasers Revised: 2/12/14 15: , Henry Zmuda Set 5a Pulsed Lasers

Transcription:

Modelling the Temperature Changes of a Hot Plate and Water in a Proportional, Integral, Derivative Control System Grant Hutchins 1. Introduction Temperature changes in a hot plate heating system can be modelled with a set of differential equations. These equations and data gathered from an actual Proportional, Integral, Derivative (PID) temperature controller setup are modelled in a way that predicts the future performance of this controller type. The system modelled has two temperature sensors: one on the heating coil and another in a cup of water on the coil. As power enters the system through the coil, the coil heats up. Some of this heat is drawn away by surrounding air and by the water in the cup. The water then gains heat from the coil and loses some heat to the air. The power level of the heater is then controlled by a PID system that analyzes the difference between temperature of the water in the cup and some predetermined set value. Two thermocouples are used to measure the temperatures of the hot plate and of the water. The voltages generated by these thermocouples are then amplified by a differential amplifier circuit and measured through an analog-to-digital converter onto a laptop setup. An algorithm will then produce an output that drives a relay that is wired into the power cord of the hotplate, rapidly switching it on and off using pulse wih modulation (PWM). The power input to the hot plate will be optimized so that it keeps the temperature of the water at the set value. The system is modelled with differential equations both in MATLAB and in Simulink and data is collected with MATLAB and its Digital Acquisition Toolbox. 2. Procedure (a) PID Control Proportional, Integral, and Derivative control is a powerful control scheme that allows for a good amount of tweaking. PID control works by analyzing three properties of the difference between the set value and the actual value, or error. First the Proportional control takes the value of the error and multiplies it by some gain to create a proportional effort. Next the Integral control keeps integrating the value and multiplies this amount by some other gain. Finally the Derivative controller analyzes the derivative of the error and multiplies this by a third gain. The three effort values are combined to form the output of the PID control mechanism. The Proportional portion of the controller tends to affect the rate at which the actual value approaches the set value, the Integral portion tends to ensure TEX Paper

that the final value as time increases tends more closely to the actual set value, and the Derivative portion tends to affect the amount of delay in the system, effectively changing the time constant τ of the actual value curve. (b) Modelling Heat Transfer This model assumes that the hot plate heats and cools such that Newton s Law of Heating should hold. Applying Newton s Law to model the change in hot plate coil temperature gives: ( dt c = P in + k ac T a dt ) ( c dtw + k wc dt ) c, (2.1) where P in is the power input to the hot plate, T c is the temperature of the hot plate coil, T a is the local air temperature, and T w is the temperature of the water. Usually Newton s Law would not include a power term. This has been added to account for the fact that electricity is heating the hot plate coil. k wc is a gain constant which accounts for how the relationship between the thermal masses of the water and the hot plate coil affects the transfer of heat from the water to the coil. Similarly, k ac accounts for the transfer of heat from the air to the hot plate coil. By the same process, the model for the temperature of the water is dt w ( dtc = k cw dt ) ( w + k aw T a dt ) w, (2.2) where k cw and k aw are the gain constants associated with how the coil heats the water and how the air heats the water, respectively. (c) Constant Selection The k values are related to the time it takes for the temperature to change by a factor of e 1. This amount of time is usually represented by τ. The values of k found are proportional to the inverse of the τ for each pair of bodies exchanging heat in the experiment. Approximations of the appropriate P in and k values were found by trial and error and adjusted based on the properties of the original curves. These values are hard-coded into the model along with initial conditions for the three temperatures. Each initial temperature is 20 degrees Celsius. (d) Generating Data The final model is a numerical approximation of the solution of a system of differential equations. This procedure solves differential equations by estimating new points based on the derivatives of given points. The step size of the independent variable is selected by the algorithm (ODE45 in MATLAB) to ensure that the error stays within a certain set value, in this case 1 10 6. The value of the output effort is limited to between 0 and 3.5. The hot plate cannot take a negative input power, and the constant 3.5 is a calibration figure for the amount of power observed when the hot plate is left on full power.

Another version of the model is prepared as a systems diagram. This model sets up the same systems of differential equations but has a graphical representation. This model is also solved by a differential equations system numerical approximation solver. The output effort is limited by a Saturation control. The saturation control limits the value to between 0 and 3.5, just as in the previous version of the model. Figure 1. Systems Diagram for PID-controlled Hot Plate Temperature System This diagram represents the relationship between a function and its derivative through the use of an integrator. The two integrators in Figure 1 are the boxes marked 1 s. The input of each integrator is the derivative of what is output. These output values in this model are the temperatures of the water and of the coil. These values, as well as the set temperature and air temperature (both constants) are fed back into the derivatives after passing through various summations that perform addition and subtraction and gains that perform multiplication. The paths in which these values travel and over which they change represent the differential equations for modelling the heat transfer. (e) Model Results Figures 2 through 5 show the results of the simulations. (f ) Data Collection Nicole Hori and I collected data to test the accuracy of this model. Two thermocouples measure the temperatures of both the hot plate coil and the water. This generates a voltage which is amplified through a differential amplifier with a gain of 100. This is algorithmically converted into a Celsius temperature measurement.

The algorithm analyzes the value, running integral, and instantaneous derivative of the water temperature and processes it through a PID algorithm as mentioned above. The gains used are shown in Table 1. The experiment gathered data for 30 minutes. The temperature data for the water and the hot plate coil are recorded in Figure 6. 3. Analysis The goal of the model was to assist in predicting how the experiment would run and which PID control gain constants to use. The results show that the actual experiment controlled the temperature more quickly than the model predicted. This is most likely because of inaccuracies in the model relating to how quickly the water cools. The temperature of the water does not overshoot the set value in the experiment, whereas there is a considerable amount of overshoot in the model. This overshoot is somewhat desirable because it shows that a system is critically damped. The experiment results appear to be underdamped. Perhaps more desirable values of the PID gains could generate a critically damped scenario that converges near the set temperature at a faster rate.

Model of Hot Plate and Water Heating and Cooling 400 Model Water 350 Model Hot Plate Temperature ( C) 300 250 200 150 100 50 0 0 500 1000 1500 2000 Time (s) Figure 2. Numerical Model Results Figure 3. Systems Diagram Model for Water Temperature

Figure 4. Systems Diagram Model for Hot Plate Coil Temperature Figure 5. Systems Diagram Model for Power Input to Hot Plate Proportional 2 Integral -.00012 Derivative 0 Table 1. PID Control gains

350 300 PID controlled Temperature of Water on a Hot Plate Water Hot plate 250 Temperature ( C) 200 150 100 50 0 50 0 200 400 600 800 1000 1200 1400 1600 1800 Time (s) Figure 6. Experiment Results