E102 LAB

20
E102 LAB Temperature Control of Heated Block

description

E102 LAB. Temperature Control of Heated Block. Temperature Controller Specifications. Design, simulate and test a control system for temperature control of a heater block to satisfy the following specifications: - PowerPoint PPT Presentation

Transcript of E102 LAB

Page 1: E102 LAB

E102 LAB

Temperature Control of Heated Block

Page 2: E102 LAB

Temperature Controller Specifications

Design, simulate and test a control system for temperature control of a heater block to satisfy the following specifications:

1. Heat the block from room temperature to 60C in less than three minutes with less than 1C overshoot and zero steady state error.

2. While operating at 60C, the control system must recover from a step disturbance in voltage input to the heater in less than two minutes with zero steady state error.

Page 3: E102 LAB

Test Facility P2381 (45-1-23)

Page 4: E102 LAB

Heater and Sensor Board

Page 5: E102 LAB

Power Amp

Power Op Amp

Page 6: E102 LAB

Data Acquisition

Terminal Block

4 wires

go to

breadboard

Page 7: E102 LAB

Data Acquisition

Ground (green)

Temperature output (blue)

6V supply (red)

Volt input(white)

Page 8: E102 LAB

MATLAB Interface

Page 9: E102 LAB

A. Connection Setup1. Ensure the board is connected to ground(green), the 6V power supply (red), the temperature

signal output (blue) and the voltage input (white) as described in the previous slides. 2. Check that the power amp is connected with the banana plugs to the HP DC power supply (+/-

20V and common). 3. Turn on power supply and check that it is reading 20V and about 0.05A.

B. Computer Setup

1. Log on to either ENG-ECF-2 or ENG-ECF-13 in the test facilityUser Name e102labPassword e102lab

2. Open E102Lab on the desktop.

3. Open heatercontrolmodel.mdl

Testing and Data Acquisition with Real Time Windows Target (RTWT)

Page 10: E102 LAB

heatercontrol.mdl

wstep

1

w

0

rstep

60

r

0

oC /V

1/.032

Scope

SaturationP

10

Manual

Switch 1

Manual

Switch

Integrator

1s

I

0

Derivative

du /dt

D

0

Anti -Windup

in1

in2out

Analog OutputNational Instruments

PCI -6014 [auto ]

Analog

Output

Analog InputNational Instruments

PCI-6014 [auto ]

Analog

Input

Page 11: E102 LAB

C. Controller Design and Test

1. Open heatercontrol.mdl. Set the setpoint manual switch to 0. Set the disturbance manual switch to 0. Enter your controller design values for P, I and D. Open Scope block

2. Choose menu Simulation=>Connect to Target. The MATLAB workspace will show “Model heatercontrol loaded”

3. Choose menu Simulation=>Start Real Time Code. The Scope block should display the control voltage input and the temperature output sampled at 1 s intervals. After about a minute to record ambient temperature, set the setpoint input switch

to 60C. You should see the step voltage input on the scope and the DC power supply will register about 0.5A as the heating block switches on. As the control takes effect, the power supply will show a decreasing power input . Record the data until the output reaches steady state (about 5 minutes if your control design is working) *

Testing and Data Acquisition with Real Time Windows Target (RTWT)

*RTWT is a bit buggy and occasionally crashes or sends you undecipherable error messages without any reason. Just restart the computer if this happens. It usually gets over its bad behavior. In the unlikely event that you get the following error message “checksum mismatch: Target code needs to be rebuilt”, choose menu Tools=>Real-Time Workshop=>Build Model. The command window will fill up with verbosity until you see “Successful Completion of Real Time Workshop build procedure”. Then continue with connecting to target as before.

Page 12: E102 LAB

C. Controller Design and Test (cont.)

4. Without changing the setpoint, set the disturbance manual switch to 1. You should see the voltage input drop on the scope and the power input drop from the power supply. Continue recording the data until the control system has recovered from the disturbance (about 2 minutes if your control design is working)*

5. On completing the disturbance test, set both the manual switches back to 0. Choose menu Simulation =>Stop Real Time Code. Your results will be stored in TemperatureVoltData in the MATLAB workspace.

6. Save your experimental results. (You may like to run the m-file TempVoltexport.m which creates a text file controldata.txt that you can save)

7. Switch off the power supply and log out.

Testing and Data Acquisition with Real Time Windows Target (RTWT)

*Your time limit for running the total simulation is 1500s (25 min). After this all your recorded data in the MATLAB workspace is lost and the simulation starts recording data again starting at time 0.

Page 13: E102 LAB

Optional: Build your own board

Page 14: E102 LAB

E102 Lab Kit1 Solderless Breadboardwith wire leads

22k Resistor10k Resistor

LM324 Quad OpAmp chip

LM35 Temperature Sensor

10 Ohm Aluminum Housed Resistor Heating Block

Nut/bolt

Page 15: E102 LAB

Circuit Diagram

Page 16: E102 LAB

LM35

Vcc Gnd Vout

Vout =0.01T (T oC)

Page 17: E102 LAB

LM324

Page 18: E102 LAB

Assembly 1

Solder leads to 10 ohm

resistor

Attach LM35 sensor

to back of resistor

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 19: E102 LAB

Assembly 2

Bend sensor

pins and

connect to board

Page 20: E102 LAB

Final Assembly

Connect temperature sensor and op amp