Topic 1 modelling of sensors systems ETEC 6419. Calibration methods We have a RTD sensing the temperature. The integer of the sensor inside the PLC is.

Slides:



Advertisements
Similar presentations
Compressive Sensing IT530, Lecture Notes.
Advertisements

Lecture 15 Orthogonal Functions Fourier Series. LGA mean daily temperature time series is there a global warming signal?
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Uncertainty in fall time surrogate Prediction variance vs. data sensitivity – Non-uniform noise – Example Uncertainty in fall time data Bootstrapping.
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Analogue to Digital Conversion (PCM and DM)
Digital to Analogue Conversion
Ch11 Curve Fitting Dr. Deshi Ye
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Lecture 9: D/A and A/D Converters
Analogue to Digital Conversion
Unit 4 Sensors and Actuators
Analogue to Digital Conversion
Simultaneous Linear Equations
Curve-Fitting Regression
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Ordinary least squares regression (OLS)
Basics of regression analysis
Tables, Figures, and Equations
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
Calibration & Curve Fitting
11 Lecture Slides ME 3222 Kinematics and Control Lab Lab 2 AD DA and Sampling Theory By Dr. Debao Zhou.
Numerical algorithms for power system protection Prof. dr. sc. Ante Marušić, doc. dr. sc. Juraj Havelka University of Zagreb Faculty of Electrical Engineering.
DIGITAL VOICE NETWORKS ECE 421E Tuesday, October 02, 2012.
1 Chapter 8 The Discrete Fourier Transform 2 Introduction  In Chapters 2 and 3 we discussed the representation of sequences and LTI systems in terms.
Lecture 2 2. Number systems, codes, signals - fundamentals
Pegasus Lectures, Inc. COPYRIGHT 2006 Volume I Companion Presentation Frank R. Miele Pegasus Lectures, Inc. Ultrasound Physics & Instrumentation 4 th Edition.
Presentation by: H. Sarper
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Prepared by Mrs. Azduwin Binti Khasri
Scientific Computing General Least Squares. Polynomial Least Squares Polynomial Least Squares: We assume that the class of functions is the class of all.
Vibrationdata 1 Unit 6a The Fourier Transform. Vibrationdata 2 Courtesy of Professor Alan M. Nathan, University of Illinois at Urbana-Champaign.
Digital Control CSE 421.
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Digital Audio I. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Analogue to Digital Conversion © D Hoult analogue signal © D Hoult 2011.
Environmental Data Analysis with MatLab 2 nd Edition Lecture 22: Linear Approximations and Non Linear Least Squares.
ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ (22Δ802) Β΄ ΕΞΑΜΗΝΟ Καθηγητής Πέτρος Π. Γρουμπός  Ώρες Γραφείου: Τετάρτη Πέμπτη Παρασκευή 11:00- 12:00 Γραφείο: 1.
5-2-3 Analogue to Digital Converters (ADC). Analogue to Digital Conversion The process is now the opposite of that studied in Topic Now we wish.
DYNAMIC BEHAVIOR OF PROCESSES :
Fundamentals of Communications. Communication System Transmitter: originates the signal Receiver: receives transmitted signal after it travels over the.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
MECH 373 Instrumentation and Measurements
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Digital Control CSE 421.
Chapter 7. Classification and Prediction
ECE 3301 General Electrical Engineering
Transfer Functions Chapter 4
Digital Control Systems (DCS)
Digital Control Systems (DCS)
Multimedia Systems and Applications
CBC Fundamentals Lecture is based on material from Robotic Explorations: A Hands-on Introduction to Engineering, Fred Martin, Prentice Hall, 2001.
Analogue to Digital Conversion
Statistical Methods For Engineers
The sampling of continuous-time signals is an important topic
Chapter 7: Matrices and Systems of Equations and Inequalities
Conversation between Analogue and Digital System
Curve fit metrics When we fit a curve to data we ask:
5.2 Least-Squares Fit to a Straight Line
Linearization of Nonlinear Models
CHAPTER Five: Collection & Analysis of Rate Data
Lec.6:Discrete Fourier Transform and Signal Spectrum
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Regression and Correlation of Data
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
Presentation transcript:

Topic 1 modelling of sensors systems ETEC 6419

Calibration methods We have a RTD sensing the temperature. The integer of the sensor inside the PLC is 50 counts corresponding to a temperature of 30°. The integer value of 690 corresponds to 430°, what is the temperature corresponding to 400 counts. A solution can be found using Y=mx+c, however if the relationship is not linear a more powerful technique is required.

solution

Example 2 The voltage entering into the PLC/MCU is related to temperature by a power series relationship Y=ax 2 +bx+c, where Y is V and X is T This can be obtained by regression, however other methods exist to relate V(Y) to T(X) Exercise: identify the constants a, b, c using regression and a power series for the above data with Excel and Matlab? T2T2 V

This particular problem is known as a function approximation problem. The problem can be solved suing the following methods. Neural Networks Fuzzy logic Artificial intelligence methods Genetic algorithms Ordinary least squares regression Principal components regression Partial least squares regression Huber/bisquare regression

Generalised regression equation In transposing a matrix, the rows of the matrix X are rearranged to become the columns of X T. The columns of X are rearranged to become the rows of X T. e.g. e.g. X= X T =

Matrix inverse

Power series model See microcontroller based temperature monitoring and control by Doug Ibraham pp71-79 Assuming we have enough data points in each of two linear vectors then any two linear vectors can be correlated with each other using regression and a power series. Consider the relationship between temperature detected by a thermocouple and the voltage output from a thermocouple

Thermocouples The temperature voltage relationship of thermocouples is non-linear and can be expressed as a polynomial T = a o + a l v + a 2 v a n v n where T is the temperature (°C), a 0, a l, a 2,…, a n are coefficients which are determined using regression and v is the thermocouple voltage. In the case of the thermocouple the first 10 coefficients in the power series are supplied for a particular thermocouple type.

Thermocouple a n coefficients Temperature in °C voltage in μV For the above data a 10 coefficient power series model for a thermocouple will yield a model accurate to 0.05°C or less

Inverse temperature model In some applications the temperature is known and we may want to calculate the thermocouple voltage. This can be done by using the inverse thermocouple polynomial: Again this can be achieve if we have a sufficiently large set of data points in two linear vectors V = c o + c 1 T + c 2 T 2 +…+ c n T n where V is the thermocouple voltage, T is the temperature, and c o,c 1,c 2,…,c n are the thermocouple coefficients.

Thermocouple ci coefficients Temperature coefficients for the inverse regressive model for popular thermocouples. 10 power series terms are used in the inverse regressive model.

Regressive modelling dataset size For a power series ordinary least squares regressive model, a relationship exists between the number of power series terms in the model and the number of data points. Assuming two linear vectors are correlated using a power series ordinary least squares regression then the number of data points in a single linear vector should be 5 times more than the number of terms in the OLS model. This rule is not a fixed rule and sample set size to model complexity is a grey area. Co-linearity occurs as the number of model terms approaches the sample set size. Principle components regression and partial least squares regression methods both use OLS regression but the data is transformed into a data space where most of the data is compressed into a few components. The regression takes place on the transformed data space and then the model is transformed back into the original space. Using the method of transforming data into a new space where regression takes place allows models where the number of model terms can be of the same dimension as the sample set

Quantisation of analogue values When a PLC or computer reads an analogue signal it needs to be converted to a digital signal, because a CPU reads signals that are digital. This process is known as Analogue to Digital conversion. For PLC’s there are special cards for this. For Microcontrollers the range is set by the special functions register used to configure the analogue port

Analogue sampling

Sampling frequency The sampling time is the actual time the signal is being read by the A/D converter. The sampling frequency is the frequency or number of times the signal is read each second. The sampling frequency is measured in hertz (unit S -1 ) (Hertz) Sampling frequency =1/T For example an A/D converter reads 5 signals in 1 second. It’s sampling frequency = 5Hz.

Aliasing and nyquist sampling The Nyquist criterion specifies that sampling frequencies should be at least twice the frequency of the signal being measured, otherwise aliasing will occur. The example in Figure violated this principle, so the signal was aliased

problem If a pulse goes high 200 times a second, what frequency should the hardware sample the pulse at?

Quantisation equations

problems 1) For a 12 bit A/D we have a signal of V coming in to an analogue card (0-10V). What is the PLC integer after the voltage has been digitised? 2) Assuming a PLC integer of 200 is then sent to a 10 bit D/A output card that used (0-10V). What will be Vout? 3) If the same PLC integer after the voltage has been digitised is then sent to a 10 bit D/A card that used (0-10V). What will be Vout?

Characterisation of sensors The formula for the mean is X where n is number of samples in the set and X i is a data point I in the set Repeatability is measured by standard deviation s (sometimes denoted ơ ) After calculating s the t statistic can be calculated For 95% C.I., For 99% C.I.,