PC BASED PID TEMPERATURE CONTROLLER



Similar documents
J.Instrum.Soc.India 30(1)29-34 PROGRAMMABLE CONTROL OF TEMPERATURE: A SIMPLE AND VERSATILE METHOD. N. Asha Bhat and K. S. Sangunni.

Measuring Temperature withthermistors a Tutorial David Potter

Basic RTD Measurements. Basics of Resistance Temperature Detectors

Temperature Sensors. Resistance Temperature Detectors (RTDs) Thermistors IC Temperature Sensors

Conversion Between Analog and Digital Signals

Using Thermocouple Sensors Connecting Grounded and Floating Thermocouples

Microcontroller to Sensor Interfacing Techniques

Microcontroller-based experiments for a control systems course in electrical engineering technology

Interfacing Analog to Digital Data Converters

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

MAS.836 HOW TO BIAS AN OP-AMP

# 2. Selecting and Using Thermistors for Temperature Control

Lab 7: Operational Amplifiers Part I

Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)

Analog Signal Conditioning

PID Control. Proportional Integral Derivative (PID) Control. Matrix Multimedia 2011 MX009 - PID Control. by Ben Rowland, April 2011

Low Cost, Precision IC Temperature Transducer AD592*

Isolated AC Sine Wave Input 3B42 / 3B43 / 3B44 FEATURES APPLICATIONS PRODUCT OVERVIEW FUNCTIONAL BLOCK DIAGRAM

HITACHI INVERTER SJ/L100/300 SERIES PID CONTROL USERS GUIDE

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Evaluating AC Current Sensor Options for Power Delivery Systems

Digital to Analog Converter. Raghu Tumati

Op Amp Circuit Collection

Cold-Junction-Compensated K-Thermocoupleto-Digital Converter (0 C to C)

APPLICATION NOTES DEFINITIONS NTC Thermistor 101

Pressure Transducer to ADC Application


SAMPLE CHAPTERS UNESCO EOLSS DIGITAL INSTRUMENTS. García J. and García D.F. University of Oviedo, Spain

Using NTC Temperature Sensors Integrated into Power Modules

Voltage/current converter opamp circuits

SINGLE-SUPPLY OPERATION OF OPERATIONAL AMPLIFIERS

ADC-20/ADC-24 Terminal Board. User Guide DO117-5

Micro-Step Driving for Stepper Motors: A Case Study

High Voltage Power Supplies for Analytical Instrumentation

dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Welcome to this presentation on Driving LEDs Resistors and Linear Drivers, part of OSRAM Opto Semiconductors LED Fundamentals series.

J TB/TW Temperature limiter, temperature monitor

Implementing PID Temperature Control Using LabVIEW. Abstract. Introduction

Section 3. Sensor to ADC Design Example

Alphasense Application Note AAN DESIGNING A POTENTIOSTATIC CIRCUIT

Voltage Output Temperature Sensor with Signal Conditioning AD22100

Application Note 142 August New Linear Regulators Solve Old Problems AN142-1

Modeling and Analysis of DC Link Bus Capacitor and Inductor Heating Effect on AC Drives (Part I)

ILX Lightwave Corporation

NTE923 & NTE923D Integrated Circuit Precision Voltage Regulator

Current vs. Voltage Feedback Amplifiers

Considerations When Specifying a DC Power Supply

Temperature Controller CD401/CD901/CD701/CD501/CD100/CD101 Instruction Manual

Description. 5k (10k) - + 5k (10k)

INSTRUMENTATION AND CONTROL TUTORIAL 3 SIGNAL PROCESSORS AND RECEIVERS

How To Power A Power Control Microprocessor (Power Control) Microprocessor 2 (Power) (Power Power) (Control) (Repower) Microcontroller (Power/Reflow) (Mini) (Microprocessor) (Wired) (Wire

ENEE 307 Electronic Circuit Design Laboratory Spring A. Iliadis Electrical Engineering Department University of Maryland College Park MD 20742

LM118/LM218/LM318 Operational Amplifiers

CPA PC-Programmable Current/Voltage and RTD/Thermocouple Limit Alarm Trips

Application Note AN- 1118

Model AD558J AD558K AD558S 1 AD558T 1 Min Typ Max Min Typ Max Min Typ Max Min Typ Max Units

Analog/Digital Conversion. Analog Signals. Digital Signals. Analog vs. Digital. Interfacing a microprocessor-based system to the real world.

THERMAL ANEMOMETRY ELECTRONICS, SOFTWARE AND ACCESSORIES

Using Current Transformers with the 78M661x

Digital to Analog and Analog to Digital Conversion

UNDERSTANDING POWER FACTOR AND INPUT CURRENT HARMONICS IN SWITCHED MODE POWER SUPPLIES

How To Close The Loop On A Fully Differential Op Amp

Constant Voltage and Constant Current Controller for Adaptors and Battery Chargers

More Op-Amp Circuits; Temperature Sensing

Keysight Technologies Quickly Identify and Characterize Thermal Measurement Points

28V, 2A Buck Constant Current Switching Regulator for White LED

Advanced Monolithic Systems

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

Solar Energy Conversion using MIAC. by Tharowat Mohamed Ali, May 2011

Process Control Primer

Switch Mode Power Supply Topologies

OPERATIONAL AMPLIFIER

10 BIT s Current Mode Pipelined ADC

OPERATIONAL AMPLIFIERS

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

IC Temperature Sensor Provides Thermocouple Cold-Junction Compensation

Welcome to this presentation on Driving LEDs AC-DC Power Supplies, part of OSRAM Opto Semiconductors LED Fundamentals series. In this presentation we

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

HIGH RELIABILITY POWER SUPPLY TESTING

Temperature Accuracy of Thermistors and RTDs Application Notes

AP-1 Application Note on Remote Control of UltraVolt HVPS

Chapter 19 Operational Amplifiers

XC series BD board for special functions. Operate Manual

ELECTRICAL ENGINEERING

Evaluation copy. Build a Temperature Sensor. Project PROJECT DESIGN REQUIREMENTS

Speed Control Methods of Various Types of Speed Control Motors. Kazuya SHIRAHATA

LM1084 5A Low Dropout Positive Regulators

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

Scaling and Biasing Analog Signals

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

TEMON 8-C. Doc. N MO-0370-ING TEMPERATURE MONITOR DEVICE TYPE TEMON 8-C OPERATION MANUAL. Microener - Copyright 2010 FW 2.2 Date Rev.

ENGINEERING COMMITTEE Interface Practices Subcommittee AMERICAN NATIONAL STANDARD ANSI/SCTE Test Method for AC to DC Power Supplies

CALIBRATION OF A THERMISTOR THERMOMETER (version = fall 2001)

W a d i a D i g i t a l

A Study of Speed Control of PMDC Motor Using Auto-tuning of PID Controller through LabVIEW

Experiment 6 ~ Joule Heating of a Resistor

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

Temperature Transmitter TTX300

Transcription:

PC BASED PID TEMPERATURE CONTROLLER R. Nisha * and K.N. Madhusoodanan Dept. of Instrumentation, Cochin University of Science and Technology, Cochin 22, India ABSTRACT: A simple and versatile PC based Programmable temperature controller employing an add-on ADC/DAC card has been implemented and tested successfully. The use of a computer improved the accuracy of the system and makes it user friendly with on line tuning. The major difference in the approach between any conventional method and the present one is the replacement of elaborate control circuitry of the former by any easily programmable algorithm with control equations. This gives one flexibility in selecting and programming the control functions such as set point control and controlled heating/cooling through software. The paper deals with the design and constructional features of a computer based temperature controller. In this experimental setup we have used a nichrome wire as the heater coil, which is wound over a copper block whose temperature is to be measured and controlled. The system is to be integrated with a temperature dependent ac conductivity measurement set up. The system achieves an accuracy of 1 0 C. KEYWORDS: Programmable control, PID control, Signal detection, Temperature controller INTRODUCTION The most widely measured phenomena in the process control environment is temperature. Common elements such as Resistance temperature detectors (RTD), thermistors, thermocouples or diodes are used to sense absolute temperatures as well as changes in temperatures. The platinum RTD temperature-sensing element is the most accurate and stable over time and temperature. RTD element technologies are constantly improving, further enhancing the quality of the temperature measurement. Typically, a data acquisition system conditions the analog signal from the RTD sensor, making the analog translation of the temperature usable in the digital domain.a temperature controller accepts an input from a temperature sensor and has an output that is connected to a control element such as a heater or fan. To accurately control process temperature without extensive operator involvement a temperature control system relies upon a controller. It compares the actual temperature to the desired control temperature or set point and provides an output to a control element. The controller is one part of the entire control system and the whole system should be analysed in selecting the proper controller. The following particulars should be considered when selecting a controller (a) (b) (c) (d) Type of input sensor and temperature range. Type of output required Control algorithm needed Type of output 16

In the present paper we report the design and implementation of a PC based temperature controller using four wire lead techniques that reduces the error caused due to lead wire resistance. I. INSTRUMENTATION A. Principle of working A platinum RTD sensor is used as the temperature sensor whose output is appropriately modified using a signal conditioner. A constant current source is used to excite the RTD. The output of the signal conditioner which is a analog voltage is digitized using an ADC in the Digital I/O card and is read by the computer. This voltage is read in the PID program and converted to corresponding temperature. The system compares this temperature with the set point temperature and computes the error. This error is fed to the PID algorithm [1]. The controller algorithm is stated below: If E is the present error, where Proportional output, Pout K p is the proportional constant K p E (1) According to the principles of PID control, the proportional gain should multiply all the three terms [1]. where where Esum Esum E, E sum is the sum of previous error Integral output, Ki is the Integral constant Now, for derivative output, E1 EE0 E0 E E 0 is the previous error K d is the derivative constant Then, PID output is given by PIDout Iout K p xk i xesum (2) Derivative output, Dout K p xk d xe1 (3) Pout Iout Dout (4) PID controller combines proportional control with integral and derivative control, which helps the unit automatically compensate for change in the system. The proportional, integral and derivative terms must be individually adjusted or tuned to a particular system using trial and error. It provides 17

the most accurate and stable control and is best used in system, which have a relatively small mass, those which reset quickly to changes in the energy added to the process. This type of control is recommended in system where the load changes often and the controller is expected to compensate automatically due to frequent change in set point, the amount of energy available or the mass to be controlled.at any point of time the current value of PID output depends on the present and previous errors, the time interval and the constants K p, Ki and K d. The output of the controller is a digital value, which is fed to the DAC of the Digital I/O card. The DAC converts it to a corresponding voltage and feds it to the heater circuit that will control the current passing through the heater and hence the temperature. Hardware and software details The block diagram for the entire set up is shown in Fig.1. The temperature sensor used is a platinum-100 (Pt-100) RTD. RTDs operate on the principle of changes in the electrical resistance of pure metals and are characterized by a linear positive change in resistance with temperature. Typical elements used for RTDs include nickel (Ni) and copper (Cu), but platinum (Pt) is by far the most common because of its wide temperature range, excellent stability, good accuracy, and repeatability. They exhibit the most linear signal with respect to temperature of any electronic temperature sensor. RTDs are also relatively immune to electrical noise and therefore well suited for temperature measurement in industrial environments, especially around motors, generators and other high voltage equipment. Since RTD is a passive measurement device it require an excitation current. To avoid self-heating, which is caused by current flowing through the RTD, the excitation current should be as minimum as possible. Fig. 1. Block Diagram of PC Based Temperature Controller The following relation gives the relation between temperature and resistance of the platinum wire 18

R 2... t R0 1 AT BT (5) Neglecting second and higher order terms, the equation becomes Rt R0 1 AT The signal conditioning circuit is employed for converting RTD resistance to a suitable voltage. It is shown in Fig: 2. A constant current source [2] of 1mA is designed using operational amplifiers to excite the RTD. A four-wire measurement technique is used for reducing the lead wire resistance errors. So one set of lead wire is used for current carrying purpose and another set for sensing application. A constant current source is designed using two operational amplifiers and a voltage reference. This is accomplished by applying a precision voltage reference to R14 of the circuit. Since R14 is equal to R13 and the non-inverting input to U2 is high-impedance, the voltage drop across these two resistors is equal. The voltage is gained by 1 R1 R5 to the output of the amplifier and the top of reference resistor, Rref. The voltage at the output of U2 is equal to: Vout U 2 1 R1 R5 Vref V R14 (7a) Since R1 R5, Vout U 2 2 V ref V R14 (7b) The voltage at the output of U 5 Vout U V ref V R V (8) 5 14 R13 This same voltage appears at the inverting input of U 5 and across to the non-inverting input of U 5. Solving these equations, the voltage drop across the reference resistor, R ref is equal to: VR ref VR ref (9a) V out U V out 2 U 5 V (9b) 2 V ref V R V ref V R 14 14 R13 VR ref V ref (9c) The current through Rref is equal to: (6) 19

Irtd Vref Rref (10) When this current passes through the temperature sensor Pt-100, it produces differential voltage given by the relation V1mA Resistance of Pt100 (11) This voltage drop across the RTD element is sensed and amplified in the 0-10Vrange using an instrumentation amplifier designed using operational amplifiers to increase the sensitivity of the system.here we are using ALS-PC-02, ADC/DAC Digital I/O card designed to use with XT/AT compatible I/O channel bus. This card provides 12-bit A/D and D/A conversion facility. The ADC has a conversion speed of 25secs. The DAC has a fast settling time of less than 3secs. Both the ADC and DAC are used in the unipolar mode. The voltage generated at the output of the DAC is fed to the heater circuit [3]. The heater circuit is shown in Fig: 3 20

Fig. 3. Heater Circuit The heater circuit is composed of operational amplifier and discrete transistor booster circuit including T1 tot3. The voltage swing capability is increased from 10 to 50V by transistorst1, T2 and transistort3 enhances the current capability. RH is the heater whose temperature is to be controlled. The power amplifier can deliver 100W to the load; T3 has adequate heat sink. Heavy dc feedback employed in this circuit ensures high stability and prevents ripple in the +50vsupply from appearing across the heater. The necessary software is designed to realize the following. (a) To acquire temperature of copper block as voltage through the ADC of the Digital I/O card. (b) To convert the voltage read to corresponding temperature. (c) To compute the error. 21

(d) To solve the PID equations. (e) To generate a voltage from the DAC. (f) To display the measured and set point temperature, error, PID output etc. WORKING OF THE SYSTEM The temperature of the copper block whose temperature is to be measured is sensed using Pt-100, RTD. The voltage drop across the RTD is sensed and amplified in the 0-10V range using the signal conditioning circuit constructed with operational amplifiers. This voltage is fed to the ADC input of the ADC/DAC card. The voltage is read by the PC using the PID program. In the PID program this voltage is converted to corresponding temperature and is compared with the set point. The error is calculated. Depending upon the error, the program outputs a voltage to the input of the DAC.The voltage from the output of the DAC is fed to the heater circuit. This voltage controls the current passing through the heater and hence the temperature. The software is written in C language. The software makes the system user friendly. It provides online tuning of the PID parameters. The temperature data can be stored in the file name given by the user at the beginning of the program or at any time. RESULTS AND DISCUSSIONS Fig. 4(a) and (b) shows the temperature response of the PID controller. Fig. 4(a) 22

Fig. 4(b) Fig 4. Response of the PID controller for set point (a) 60 0 C and (b) 90 0 C It is found that the controller is able to control the temperature of copper block within 1 0 C.The PID controller gives a good transient as well as steady state control. It offers rapid proportional response to error, while having an automatic reset from the integral part to eliminate residual error. The derivative section stabilizes the controller and allows it to respond to the rapid changes or transients in error. However the actual stability, that has been attained in the present case depend on various factors such as the sensor sensitivity and thermal insulation of the heater etc. Usage of better sensor and proper insulation of the heater can play a significant role in accomplishing the theoretical limit of stability. CONCLUSION A PC based temperature controller is developed and successfully tested on a copper block wound with nichrome coil. The system is designed to be integrated in an ac conductivity set up. The controller is capable of maintaining the set temperature constant within 1 0 C.The PC based temperature controller is able to bring the temperature of the copper block to the desired value within 2 to 3 minutes of time. The system is quite successful in measuring and controlling the temperature. Its ability to perform different control functions without the use of any control circuits makes it versatile to be adapted in variety of application without much change. The control equations employed gives one the flexibility in programming and producing the different control 23

signals for set-point control. Best control can be obtained by properly adjusting the PID parameters. REFERENCES [1] Curtis Johnson, Process Control Instrumentation Technology, 4th Ed., N.J., Prentice Hall, 1993, pp. 459-470. [2] Bonnie C Baker, Precision Temperature-Sensing With RTD Circuits, AN687, Microchip Technology Inc. [3] Johney Issac, Jacob Philip, A low cost high precision PID temperature controller, Indian journal of pure and applied physics 29, 195, (1991). 24