living with the lab control of salinity 2012 David Hall

Similar documents
living with the lab control of salinity 2012 David Hall

control of salinity Thanks to David Hall, from LWTL

Preparation for Salinity Control ME 121

Control of Salinity in the Fish Tank ME 121. Tank Pump Sensor. Figure 1 Schematic of flow loop and salinity control scheme for the fish tank.

1. (2 point deduction for failure to complete this problem!)

Process Control Loops

CHEMICAL ENGINEERING LABORATORY CHEG 239W. Control of a Steam-Heated Mixing Tank with a Pneumatic Process Controller

Mitos Fluika Pressure and Vacuum Pumps Datasheet

INSTRUMENTS A THERMAL MASS FLOW SENSOR USING A CONSTANT DIFFERENTIAL TEMPERATURE ABOVE THE AMBIENT GAS TEMPERATURE

12/07/2016 Grove Gas Sensor(O₂) Wiki

The Discussion of this exercise covers the following points:

Auto-Zero Calibration Technique for Pressure Sensors

STICTION: THE HIDDEN MENACE

Exercise 2-2. Second-Order Interacting Processes EXERCISE OBJECTIVE DISCUSSION OUTLINE. The actual setup DISCUSSION

The Discussion of this exercise covers the following points: Range with an elevated or suppressed zero Suppressed-zero range Elevated-zero range

Equation 1: F spring = kx. Where F is the force of the spring, k is the spring constant and x is the displacement of the spring. Equation 2: F = mg

Grove - Gas Sensor (O2)

AC : ACCURATE CRYOCHAMBER FOR A SMALL LABORATORY WITH SMALL BUDGET

Digital Level Control One and Two Loops Proportional and Integral Control Single-Loop and Cascade Control

Introductory Lab: Vacuum Methods

Grove - Gas Sensor(MQ9)

Exercise 5-2. Bubblers EXERCISE OBJECTIVE DISCUSSION OUTLINE. Bubblers DISCUSSION. Learn to measure the level in a vessel using a bubbler.

Boyle s Law: Pressure-Volume Relationship in Gases

Intelligent SUNTEX DC-5310(RS) Dissolved Oxygen Transmitter

BUBBLER CONTROL SYSTEM

Unit 55: Instrumentation and Control Principles

BUBBLER CONTROL SYSTEM

MIL-STD-883G METHOD

The Discussion of this exercise covers the following points:

Fail Operational Controls for an Independent Metering Valve

NATIONAL UNIVERSITY OF SINGAPORE. EE3302/EE3302E Industrial Control Systems E1: ADVANCED CONTROL SYSTEMS

Using Modbus Protocol with the ALTUS Net Oil Computer. Instruction Manual

Boyle s Law: Pressure-Volume. Relationship in Gases

Lab #12:Boyle s Law, Dec. 20, 2016 Pressure-Volume Relationship in Gases

A CO 2 Waveform Simulator For Evaluation and Testing of Respiratory Gas Analyzers

Heat Pump Connections and Interior Piping

COMPARISON OF DIFFERENTIAL PRESSURE SENSING TECHNOLOGIES IN HOSPITAL ISOLATION ROOMS AND OTHER CRITICAL ENVIRONMENT APPLICATIONS

Boyle s Law. Pressure-Volume Relationship in Gases. Figure 1

L 100. Bubble-Tube Level System. Installation, Operation and Maintenance Instructions

Gerald D. Anderson. Education Technical Specialist

Lab 1. Adiabatic and reversible compression of a gas

MACH ONE MASS FLOW CONTROLLER. MACH ONE SERIES flow control. MASS FLOW CONTROLLERS at the speed of sound.

Precision level sensing with low-pressure module MS

Truck-mounted Mass Flow Metering for LPG Delivery

CDS-2000 CO 2 Sensor Verification, Calibration, and Troubleshooting Bulletin

Characterizers for control loops

5.1 Introduction. Learning Objectives

AMS 6916 Board mount pressure sensor with ratiometric analog output

AMS 2710 PCB pressure sensor module with V output

TR Electronic Pressure Regulator. User s Manual

Experimental Investigation on Transient Response of Two Stage Pressure Relief Valve

UNDERSTANDING, ACCELERATED

Lab 1c Isentropic Blow-down Process and Discharge Coefficient

Chapter 10: Bidirectional Flow Controls

( ) ( ) *( A ) APPLICATION DATA. Procidia Control Solutions Coarse/Fine Control. Split-Range Control. AD Rev 2 April 2012

EXPERIMENT 2 LEVEL CONTROL SYSTEM

MONSOON 6V Pump Control System

GP1 & GP2. Electropneumatic Regulators FOR PRESSURE CONTROL TO 1,000 PSI

Lab #1 Pressure: Bubblers and Water Balloons CEE 331 Fall 2003

AMS 6915 Board mount pressure sensor with digital output (I²C)

The benefits of the extended diagnostics feature. Compact, well-proven, and flexible

Level Process Control. Penn State Chemical Engineering

WMO LABORATORY INTERCOMPARISON OF RAIN INTENSITY GAUGES

Hardware Triaxial and Consolidation Testing Systems Pressure Measurement and Control

Fisher FIELDVUE DVC6200f Digital Valve Controller PST Calibration and Testing using ValveLink Software

Exercise 8. Closed-Loop Pressure Control, Proportional-Plus-Integral Mode EXERCISE OBJECTIVE

AFC. SDPROC and AFC Analog Mass Flow Controller ANALOG MASS FLOW CONTROLLERS. Principles of Operation. Design Features

Overview. Front Panel: Keypad and Display

How to specify a product. Process Sensors and Mechanical Instruments

TESTING OF BELIMO PRESSURE INDEPENDENT CHARACTERIZED CONTROL VALVES

A Journal of Practical and Useful Vacuum Technology. By Phil Danielson

Cover Page for Lab Report Group Portion. Pump Performance

Lab 1: Pressure and surface tension. Bubblers, gravity and the mighty paper clip.

The University of Hong Kong Department of Physics Experimental Physics Laboratory

A Hare-Lynx Simulation Model

QUALIFICATION OF SUB-ATMOSPHERIC PRESSURE SENSORS FOR THE CRYOMAGNET BAYONET HEAT EXCHANGERS OF THE LARGE HADRON COLLIDER

Generating Calibration Gas Standards

Core practical 14: Investigate the relationship between the pressure and volume of a gas at fixed temperature

Controlling the prefeeder

Process Dynamics, Operations, and Control Lecture Notes - 20

SPD Pressure Sensor Families

Experiment. THE RELATIONSHIP BETWEEN VOLUME AND TEMPERATURE, i.e.,charles Law. By Dale A. Hammond, PhD, Brigham Young University Hawaii

Dissolved Oxygen Guide

Boyle s Law: Pressure-Volume Relationship in Gases. PRELAB QUESTIONS (Answer on your own notebook paper)

MANUAL KPS Pressure Control Valve

Calculating Total Uncertainty of Temperature Calibration with a Dry Block. Calibration White Paper. Beamex.

Application Block Library Fan Control Optimization

Fail operational controls for an independent metering valve

THE FUNDAMENTALS OF THE AIR SAMPLER CALIBRATION-VERIFICATION PROCESS

EDUCTOR. principle of operation

Anemometry. Anemometry. Wind Conventions and Characteristics. Anemometry. Wind Variability. Anemometry. Function of an anemometer:

Applying Hooke s Law to Multiple Bungee Cords. Introduction

Application Note AN-107

BAROMETER PRESSURE STANDARD PRESSURE CONTROLLER

COMPRESSOR PACK SUCTION CONTROLLER TYPE: LP41x

Specifications and information are subject to change without notice. Up-to-date address information is available on our website.

CHARACTERISTICS OF LEAK DETECTION BASED ON DIFERENTIAL PRESSURE MEASUREMENT

SOLUBILITY OF A SOLID IN WATER

Chemistry 12 Notes on Graphs Involving LeChatelier s Principle

BLOOD PRESSURE SENSOR 0377i

Transcription:

control of salinity 2012 David Hall

General Idea The objective is to keep the salinity close to a setpoint which will provided by your instructor The salinity sensor measures the analog voltage output of the salinity circuit Opening DI solenoid valve decreases salinity Opening salty solenoid valve increases salinity DI water salt water (1% NaCl) 0.05 wt % NaCl setpoint for salinity 0.15 wt% NaCl (your instructor will provide a setpoint, such as 0.09 wt% NaCl) 2

review of conductivity sensor wiring & programming // Averaged salinity sensor reading int power_pin = 3; void setup() { Serial.begin(9600); pinmode(salinity_power_pin, OUTPUT); } void loop() { int input_pin = 2; // Analog input pin int nave=20; // Number of readings to average float reading_ave; // Average Value returned from function } reading_ave = salinity_reading( power_pin, input_pin, nave); Serial.println(salinity_ave); 3

review of conductivity sensor wiring & programming // -- Perform averaging of sensor readings float salinity_reading_average( int power_pin, int input_pin, int nave ) { int i; float sum; // Use float for more precision and to prevent overflow of sum } sum = 0.0; digitalwrite( power_pin, HIGH ); // Supply power to the sensor delay(50); // Wait for sensor to settle for ( i=1; i<=nave; i++ ) { sum += analogread( input_pin ); // Add reading to the running sum delay(10); // Pause between readings } digitalwrite( power_pin, LOW ); // Turn off power to the sensor return( sum/float(nave) ); 4

review of conductivity sensor calibration Collect analog output of salinity circuit, with output numbers ranging from 0 to 1023 (the Arudino has a 10 bit ADC) Perform linear regression to determine the expected output of the conductivity circuit as a function of salinity Which fit is the best? salt concentration Arduino (fractional) output 0.0000 2.5 0.0005 465 0.0010 511.5 0.0015 537.5 linear polynomial power 5

examine fits over possible salinity range Consider how your fit behaves beyond 0.15 wt% salt since your salinity may increase well beyond 0.15% when salty water is added output vs salt concentration output vs salt concentration output of circuit 800 700 600 500 400 300 200 100 0 0.00 0.10 0.20 0.30 0.40 0.50 salt concentration (% wt) raw data linear polynomial power output of circuit 600 500 400 300 200 100 0 0.00 0.05 0.10 0.15 0.20 salt concentration (% wt) Do you see any potential problems? Which fit seems to be the best? Why? 6

equations needed for salinity control sketch Inverse equation can be obtained by Algebraic rearrangement of the calibration curve fit, or Performing another fit with x and y values swapped. In either case, retain four or five digits in the curve fit coefficients 7

Control of Salinity t 1 > t 2 since valve is left open an amount of time proportional to the error valve = open valve = closed salty water valve status valve = open t 2 valve = closed t 1 DI water valve status system lag hysteresis salinity (%wt NaCl) 0.15 0.10 0.05 0.00 error deadband deadtime compensation random variation of conductivity system upset by externally adding salty water error error system upset by externally adding DI water upper control limit (UCL) setpoint = 0.09 lower control limit (LCL) time 8

key points The valve is left open an amount of time that is proportional to the error. small error = valve is open a short amount of time large error = valve is open a long amount of time The DI valve is left open longer than the salty valve when correcting for the same magnitude of error (DI=0%, setpoint = 0.09%, salty = 1%). The system has memory... it takes time for the salinity of the water to become uniform (mixing, water in pump and tubing). The lag time is called hysteresis. Control is more stable if we wait for the system to stabilize after opening a valve. The deadtime compensation is set to allow the system to come to equilibrium before responding to error. The upper and lower control limits are set so that random error will not cause the valves to open unnecessarily; these limits are often set three standard deviations of the error away from the setpoint. The difference between UCL and LCL is called the deadband. 9

control strategy The setpoint will be assigned by your instructor. Assume 0.09% NaCl here. Compute the UCL, setpoint and LCL values for control of salinity. UCL and LCL depend on the size of the deadband. For demonstration purposes, assume that the UCL and LCL are 0.01%NaCl from the setpoint: 1274.1 0.0009 0.0001. 510 1274.1 0.0009. 503 1274.1 0.0009 0.0001. 495 Control strategy: if analogs > UCL (or 510) then open the DI valve an amount proportional to the error If analogs < LCL (or 495), then open the salty valve an amount proportional to the error 10

setting UCL and LCL by examining random error A better way to determine UCL and LCL are by collecting analogs values for a salinity near the setpoint and then computing the standard deviation ( ) of the error of analogs values. Using this approach, 99.7% of random error will fall between the LCL and UCL, which means that your solenoid valve will be triggered due to a false alarm only 0.3% of the time. Example Readings to Illustrate Procedure analog output 512 510 508 506 504 502 500 498 496 494 0 5 10 15 20 reading 1274.1 0.0009. 503 3σ 503 8 511 3σ 503 8 495 analog output 11

setting deadtime compensation It takes time for your system to settle out after the salinity changes. Assume the system whose response is depicted in the graph below is upset at 18 seconds due to a sudden addition of salty water. At about 30 seconds, the salinity values stabilize (with continued random error at the new salinity level). For this example, the deadtime compensation would be set to 12 seconds (30s 18s). This means that you would want to allow 12 seconds between salinity corrections. 525 deadtime = 12 s 520 analog output 515 510 505 500 495 490 0 5 10 15 20 25 30 35 40 time (s) analog output UCL LCL mean time when salty water was added 12

strength of response to error We will compute the amount of salty water that should be added to the current mixture to correct the salinity a correction that is too strong was applied salinity (%wt NaCl) 0.15 0.10 0.05 error upper control limit (UCL) setpoint = 0.09 lower control limit (LCL) 0.00 overshoot (undesirable) a second correction is applied this one is also too strong time Over correcting repeatedly causes the system to oscillate about the setpoint 13

apply a response proportional to error We will compute the amount of salty water that should be added to the current mixture to completely correct the salinity We will open the solenoid valve long enough to remove a percentage of the error For example, if the salinity is 0.152% and the setpoint is 0.09%, then applying an 80% correction will lower the salinity to 0.102%, which is computed as correction = (.00152 (.00152.0009)*.8) We call the proportionality constant the gain; gain is a common term used when working with industrial controllers salinity (%wt NaCl) 0.15 0.10 0.05 error 80% of error upper control limit (UCL) setpoint = 0.09 lower control limit (LCL) 0.00 time 14

teams of 2 Class Problem Assume that your fishtank system has a setpoint of 0.09% NaCl. Your instructor comes by your table and upsets your system by adding a good dose of DI water. The conductivity circuit returns an analog output that corresponds to a salinity of 0.04% NaCl (which is below LCL). a) What is the target concentration if you have a gain of 0.80 (80%)? b) Using this gain, how much salty water (1% NaCl) should be added? c) How long should you leave the valve open if the flow rate is 0.2L/min? Recommended assumptions: The water leaves at the overflow is a mixture of water from the salty tank and the fishtank. The most salty the overflow water can be is 1% NaCl, and the least salty it can be is 0.04% NaCl. Assume that 15% of the overflow water is 1% NaCl and that the rest is 0.04% NaCl. Neglect density differences between incoming and outgoing water; that is, the mass of water that comes in from the salty tank is equal to the mass of water that leaves through the overflow. 15

sketch control structure Compute setpoint, UCL and LCL use your own data 1274.1 0.0009. 503 3σ 503 8 511 3σ 503 8 495 Measure salinity to get analogs (the analog output of the conductivity circuit) If analogs > UCL or < LCL & if time since last correction > deadtime then... Compute the %wt NaCl 3.6686 10. use your own data Compute the target salinity based on your gain Compute the time that your salty or DI solenoid valves needs to be left open Open the DI or salty valve for the computed time 16

to do for salinity control: Bring fishtank, water bottles, multimeter & computer to class next time Determine flow rate through your solenoid valve (mass per unit time) Recalibrate your system Determine your fits salinity as a function of analogs analogs as a function of salinity Collect data around 0.10% NaCl to determine the standard deviation of the conductivity output so that the UCL and LCL can be determined Determine the deadtime compensation (system response time) Write your control sketch THE END 17