Keywords: System Identification, Least Square Method, RC circuits. Kata kunci : Sistem Identifikasi, Least Square Method, Litar RC



Similar documents
SPAM FILTERING USING BAYESIAN TECHNIQUE BASED ON INDEPENDENT FEATURE SELECTION MASURAH BINTI MOHAMAD

COARSE RESOLUTION DEFECT LOCALIZATION ALGORITHM FOR AN AUTOMATED VISUAL PCB INSPECTION

ULTRASONIC TOMOGRAPHY SYSTEM FOR LIQUID/GAS FLOW: FRAME RATE COMPARISON BETWEEN VISUAL BASIC AND VISUAL C++ PROGRAMMING

MODELING AND SIMULATION OF SINGLE PHASE INVERTER WITH PWM USING MATLAB/SIMULINK AZUAN BIN ALIAS

PRODUCTIVITY IMPROVEMENT VIA SIMULATION METHOD (MANUFACTURING INDUSTRY) HASBULLAH BIN MAT ISA

CLIENT SERVER APPLICATION FOR SERVER FARM PERFORMANCE MONITORING ABDIRASHID HASSAN ABDI

HELP DESK SYSTEM IZZAT HAFIFI BIN AHMAD ARIZA

TRANSFORMATIONAL PROJECT MANAGER: AN ENABLER OF AN ENTERPRISE RESOURCE PLANNING (ERP) IMPLEMENTATION SUCCESS JOHN ONYEKACHI OKUGO

DEVELOPING AN ISP FOR HOTEL INDUSTRY: A CASE STUDY ON PUTRA PALACE HOTEL

MASTER S PROJECT REPORT SUMMARY

LIGHTNING AS A NEW RENEWABLE ENERGY SOURCE SARAVANA KUMAR A/L ARPUTHASAMY UNIVERSITI TEKNOLOGI MALAYSIA

Active RFID Technology for Asset Tracking and Management System

The Time Constant of an RC Circuit

Research Methodology Part III: Thesis Proposal. Dr. Tarek A. Tutunji Mechatronics Engineering Department Philadelphia University - Jordan

EXPERIMENTAL ANALYSIS OF PASSIVE BANDWIDTH ESTIMATION TOOL FOR MULTIPLE HOP WIRELESS NETWORKS NURUL AMIRAH BINTI ABDULLAH

Measuring Resistance Using Digital I/O

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

DIRECT CURRENT MOTOR CONTROL LED BY MICROCONTROLLER CREATED PWM THINESH A/L KUNASEGERAN. Thesis submitted in fulfillment of the requirements

SWAY REDUCTION ON GANTRY CRANE SYSTEM USING DELAYED FEEDBACK SIGNAL (DFS) NORASHID BIN IDRUS

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

A STUDY OF SECURITY LIMITATIONS IN VIRTUAL LOCAL AREA NETWORK IMPLEMENTATION

The Effectiveness of ERP Implementation in Manufacturing Industries

PERFORMANCE EVALUATION OF WAVELET-BASED ALGORITHM FOR PRINTED CIRCUIT BOARD (PCB) INSPECTION

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

JOB AGENT MANAGEMENT SYSTEM LU CHUN LING. A thesis submitted in partial fulfillment of. the requirements for the award of the degree of

DEVELOPMENT OF DATA ACQUISITION SOFTWARE FOR CENTRALIZED RADIATION MONITORING SYSTEM

Hands On ECG. Sean Hubber and Crystal Lu

Step Response of RC Circuits

Exploring Primary and Secondary School Students Perception towards Online Mathematics Tuition: A Case Study

Counters and Decoders

Digital Electronics Detailed Outline

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

TABLE OF CONTENTS. SUPERVISOR S DECLARATION ii STUDENT S DECLARATION iii DEDICATION ACKNOWLEDGEMENTS v ABSTRACT LIST OF TABLES

AC : MATHEMATICAL MODELING AND SIMULATION US- ING LABVIEW AND LABVIEW MATHSCRIPT

STRESS EFFECT STUDY ON 6 DIFFERENT PATTERN OF TYRES FOR SIZE 175/70 R13 SYAHRIL AZEEM ONG BIN HAJI MALIKI ONG. for the award of the degree of

MOHD KHALIL BIN ABDUL KADJR

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

Accurate Measurement of the Mains Electricity Frequency

IMPROVING SERVICE REUSABILITY USING ENTERPRISE SERVICE BUS AND BUSINESS PROCESS EXECUTION LANGUAGE AKO ABUBAKR JAAFAR

Control System Definition

NOOR HANIRA BINTI MAHIDIN

1. Oscilloscope is basically a graph-displaying device-it draws a graph of an electrical signal.

INTEGRATING CONSUMER TRUST IN BUILDING AN E-COMMERCE WEBSITE NUR ZAILAN BIN OTHMAN

BISKUT RAYA INVENTORY MANAGEMENT SYSTEM (BRIMS) NURUL AMIRAH BINTI ROSLAN THESIS SUBMITTED IN FULFILLMENT OF THE DEGREE OF COMPUTER SCIENCE

Conversion Between Analog and Digital Signals

Implementation of Fuzzy and PID Controller to Water Level System using LabView

RC Circuits and The Oscilloscope Physics Lab X

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

FM HELP DESK : USER COMPLAINT SYSTEM AS AN FM APPROACH FOR FACILITIES MANAGEMENT SERVICES IN UNIVERSITI TUN HUSSEIN ONN MALAYSIA (UTHM)

VEHICLE TRACKING AND SPEED ESTIMATION SYSTEM CHAN CHIA YIK. Report submitted in partial fulfillment of the requirements

THE RELATIONSHIP BETWEEN HUMAN RESOURCE INFORMATION SYSTEM (HRIS) AND HUMAN RESOURCE MANAGEMENT (HRM) ALFRED PUN KHEE SEONG

HOME AUTOMATION USING X-10 TECHNOLOGY MOHAMAD RIDHWAN BIN MOHAMED RODZI UNIVERSITY MALAYSIA PAHANG

The Calculation of G rms

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

THE APPLICATION OF EARNED VALUE MANAGEMENT IN EVENT PROJECT MANAGEMENT INDUSTRY YEOH XIN HAO

Dynamic Process Modeling. Process Dynamics and Control

DCMS DC MOTOR SYSTEM User Manual

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

PC BASED PID TEMPERATURE CONTROLLER

CHAPTER 11: Flip Flops

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI TEKNOLOGI MAKLUMAT DAN KOMUNIKASI

Constructing a precision SWR meter and antenna analyzer. Mike Brink HNF, Design Technologist.

Abstract. Cycle Domain Simulator for Phase-Locked Loops

FUZZY Based PID Controller for Speed Control of D.C. Motor Using LabVIEW

Car Rental Management System (CRMS) Lee Chen Yong

High-Mix Low-Volume Flow Shop Manufacturing System Scheduling

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

Data Validation and Data Management Solutions

Application of network analyzer in measuring the performance functions of power supply

MAS.836 HOW TO BIAS AN OP-AMP

PLL frequency synthesizer

NOR BAHYAH BINTI ABDUL RASHID

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

The components. E3: Digital electronics. Goals:

COST COMPARISON BETWEEN THE CONSTRUCTION OF CONVENTIONAL METHOD AND INTERLOCKING BLOCK SYSTEM NIK FARAEIIYAH BINTI NIK MOHAMED

APPLICATION NOTES: Dimming InGaN LED


A Lesson on Digital Clocks, One Shots and Counters

E. K. A. ADVANCED PHYSICS LABORATORY PHYSICS 3081, 4051 NUCLEAR MAGNETIC RESONANCE

7. Latches and Flip-Flops

DECENTRALIZED SOCIAL NETWORK SERVICE USING THE WEB HOSTING SERVER FOR PRIVACY PRESERVATION

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

THE FACTORS THAT HINDER THE INTENTION OF BUSINESS MANAGEMENT GRADUATE TO CHOOSE ENTREPRENEUR AS THEIR CAREER NURUL HAZLYANA BINTI NOR AZLI

A Lesson on Digital Clocks, One Shots and Counters

Chapter 3. Diodes and Applications. Introduction [5], [6]

HOME SECURITY SENSOR SYSTEM USING ATMEL AVR MICROCONTROLLER LIM BOON HOI

Loop Bandwidth and Clock Data Recovery (CDR) in Oscilloscope Measurements. Application Note

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

DATA ACQUISITION FROM IN VITRO TESTING OF AN OCCLUDING MEDICAL DEVICE

DEVELOP AND DESIGN SHEMATIC DIAGRAM AND MECHANISM ON ONE SEATER DRAG BUGGY MUHAMMAD IBRAHIM B MD NUJID

Electrical Resonance

Clock Jitter Definitions and Measurement Methods

Asynchronous counters, except for the first block, work independently from a system clock.

Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module

Sains Malaysiana 42(1)(2013): 1 5

A STUDY ON THE CONVENTIONAL AND FUZZY CONTROL STEEL-CUTTING PROCESS

Transcription:

Jurnal Teknologi MICROCONTROLLER-BASED FOR SYSTEM IDENTIFICATION TOOLS USING LEAST SQUARE METHOD FOR RC CIRCUITS Ang Jia Yi a*, M. S. Abdul Majid a, Azuwir M. N. a, S. Yaacob b a School of Mechatronic, Pauh Putra Campus, Universiti Malaysia Perlis, Arau, 02600, Perlis, Malaysia b Universiti Kuala Lumpur, Malaysia Spanish Institute, Kulim Hi- Tech Park 09000, Kulim, Kedah, Malaysia Full Paper Article history Received 1 June 2015 Received in revised form 13 August 2015 Accepted 29 September 2015 *Corresponding author jiayi89@msn.com Graphical abstract Abstract System identification is one of the method to construct a plant mathematical model from experimental data. This method has been widely applied in the automatic control, aviation, spaceflight medicine, society economics and other fields more. With the rapid growth of the science and technology, the system identification technique has increasingly grown in various applications. Since most of the system identification devices are off-line base, this means that the system identification can only be done after collecting the data and process through a computer devices. This paper will show how to process system identification method with real-time system. This method required a microcontroller as the medium to perform. That s why the system identification method will be programmed into a microcontroller, based on Least Square Method. Later, the system will be tested on a RC circuit to see the effect of the signal and the mathematical model obtained. The data will undergo the system identification toolbox for process using ARX and ARMAX model. On the other hand, the data will also be collected using the microcontroller created for analysis purpose. To ensure the validity of the model some verification methods are performed. Results show that the Least Square Method using Microcontroller base has the capability to work as a system identification tools. Keywords: System Identification, Least Square Method, RC circuits Abstrak Sistem Identifikasi adalah salah satu kaedah untuk membina model matematik tumbuhan daripada data eksperimen. Dengan pertumbuhan pesat dalam sains dan teknologi, teknik pengenalpastian sistem semakin berkembang dalam pelbagai aplikasi. Kertas kerja ini akan menunjukkan bagaimana untuk memproses kaedah Sistem Identifikasi dalam masa nyata. Kaedah ini memerlukan mikropengawal sebagai alat perlaksanaan. Dengan menggunakan Kaedah Least Squares, sistem yang telah disediakan akan diuji dengan litar RC. Dengan demikian, model yang diperoleh akan dibanding dengan model matematik. Data yang telah dikumpul juga akan dibanding dengan process model ARX dan ARMAX. Semua data yang telah dikumpul akan dibanding untuk tujuan mengenapasti ketepatannya dan eksperimen ini telah menunjukkan bahawa Kaedah Least Square yang telah menggunakan micropengawal mempunyai keupayaan bagi mengenalpasti model sistem tersebut. Kata kunci : Sistem Identifikasi, Least Square Method, Litar RC 2015 Penerbit UTM Press. All rights reserved 77:28 (2015) 5 9 www.jurnalteknologi.utm.my eissn 2180 3722

6 Ang Jia Yi, M. S. Abdul Majid, Azuwir M. N., S. Yaacob /Jurnal Teknologi (Sciences & Engineering) 77:28 (2015) 5 9 1.0 INTRODUCTION System identification is one of the method which uses the input and the output data of the system to build a mathematical modeling of the system [1]. This method is widely used in the field of production and life. Modeling is one of the important aspect to view in for a system.the traditional identification method is normally using first principle of Newton Law and other method to model their system. Due to the complexcity of the modern system and even their unclear internal mechanisms, system identification method has established to play an important role in the process to obtain the mathematical model [2]. There are several methods which can be used in system identification to construct the mathematical model. For example, least square method, gardient correction method maximum like hood method is part of the method which can be found in this field. Recently, some modern methods which are more advantage also could be found being used such as neural network, fuzzy logic and other more. All the methods that have been explored consist of advantage and disadvantage of its usage, however it is up to the researcher or user to choose the method which they prefer and suit their research. Nowadays, there are many companies providing the platform for system identification method to construct the mathematical modeling. Labview and Matlab are commonly used. System identification method is normally applied after a few set of data collection. The system identification process will be done offline using a computer after the data was collected. Sometime, online base system is much more preferable due to the result that it can be generated instainly. To create an online system identification device, microcontroller is more often being used due to its flexibility and compactness to carry around. By creating this device, a mathematical model of any system can be easily and quickly identified on the spot. By doing so, the modeling can be obtained and analysis can be done faster than the offline base method. This paper would explain about the needs of the pseudorandom binary sequence generator (PRBS Generator) at the earlier part on how and why we need to create a PRBS generator. Then, it will follow by the system identification method used and the system created. At the discussion part, the paper would compare the system identification generated by the toolbox and the microcontroller using a basic RC circuit. Step response graph can be obtained. By using the root mean square method, the result obtained from the 2 difference methods would be verified. Figure 1 shown the flow chart of the project. Figure 1 Flow chart of the project 2.0 PSEUDORANDOM BINARY SEQUENCE SIGNAL Pseudorandom binary sequence signal is a very common signal which is used in the field of signal processing as a noise input [3]. To obtain the input and the output data for analysis in system identification, the input must be a random test signal pattern signal. Since PRBS signal is used to generate random signal, it is normally used as the input signal to test the system due to its randomness to excite its dynamics characteristic. By doing so, a plant could be excited in various forms in term of its dynamics. 2.1 Linear Feedback Shift Register PRBS signal is using the linear feedback shift register to generate its signal pattern. By using this method, there are 2 factors which determine the difference of the signal generated which depend on the user needs. One of it is the maximal length sequence which define the size of the length for the sequence to be repeated. The maximal length sequence can be determined by Equation 1 and the second one if the feedback gate modulo tapping [4]. N = 2 m 1 ( 1 ) Table 1 shown the configuration for the PRBS signal for both of the factors mentioned which m is the length of the bits used and Nis the sequence which the signal will repeat after N length bits the feedback shows that the bits which can be tapped to produce the PRBS signal. Mistake in tapping will result in cyclic sequence has the length less than the maximum length. Table 1 Feedback configuration of linear feedback shift register No m N=2 m -1 Feedback 1 2 3 2-1 2 3 7 3-2 3 4 15 4-3 4 5 31 5-3/5-4-3-2/5-4-3-1 5 6 63 6-5/6-5-4-1/6-5-3-2 6 7 127 7-6/7-4/7-6-5-4/ 2.2 Microcontroller Base PRBS Generator PRBS Generator is an expensive device. To obtain cheaper solution, microcontroller is employed to create a PRBS generator. The project uses PIC

7 Ang Jia Yi, M. S. Abdul Majid, Azuwir M. N., S. Yaacob /Jurnal Teknologi (Sciences & Engineering) 77:28 (2015) 5 9 microcontroller due to the PIC support up to 16 bits and easily obtain in the market. Using the C language and the LFSR method which was discussed at section A. The PIC created is able to operate at 20 Mb/s or up to 80 Mb/s clock speed. The maximal length sequence is up to 15 bits with 0 to 5 V designable output. The devices also support pattern trigger to initialize the starting of the system signal. The most important part of the device is portable and low cost in term of its prices compare to the market price. 3.0 SYSTEM IDENTIFICATION USING RECURSIVE LEAST SQUARE METHOD System identification is a process of formatting a mathematical model using measureable data. The data is obtained by comparing the input and the output signal [5]. System identification is also categorized as the black box types modeling method which means that the user does not know anything about the plant system to construct the mathematical modeling. There are various types of estimation that can be done using system identification like autoregressive exogenous (ARX) and also Autoregressive moving-average model with exogenous inputs model (ARMAX model). But in this paper, the method used is only based on the ARX method using recursive least square method for the estimator [6], [7]. 3.1 Recursive Least Square Method (RLSM) The recursive least square method is the method that will be programmed into the microcontroller as a system identification estimator in this project. The model method utilizes the error between the outputs of the plant to estimate the model as a basic update mechanism. It will determine the best-fit curve line from the given outputs data. By using this method, it will allow the user to save lot of computation time in the process. Equation 2, 3 and 4, show the basic equation on how the RLSM work. X(N)=X 0 (N 1) + k(n)(b X 0 (N 1) a T ) ( 2 ) 1 k(n) = 1 + a T P 0 (N 1)a P ( 3 ) 0(N 1)a P(N) = [I k(n)a T ]P 0(N 1) ( 4 ) 3.2 System Identification based Microcontroller Figure 2 shows the flow chart of how the system identification using the recursive least square method is being run in a microcontroller. 3.3 Experiment Setup The experiment setup contains of a few parts: system identification microcontroller, PRBS Generator microcontroller, RC system Circuits, and also NI-DAQ. Figure 3 shows the system identification platform for the whole system. The input stimulus signal is being generated by a PRBS generator which created by a microcontroller and the signal is sent into the RC circuits. In the meantime, the signal also being collected by the NI- DAQ and System Identification Devices. To initialize the same starting point, a trigger pulse will be sent from the PRBS generator to both the devices. The data obtained from the NI-DAQ will be processed in the Matlab system identification toolbox. On the other and, the system identification devices created will directly display the transfer function for the system. Figure 3 System identification microcontroller platform Figure 2 System flow chart

Voltage 8 Ang Jia Yi, M. S. Abdul Majid, Azuwir M. N., S. Yaacob /Jurnal Teknologi (Sciences & Engineering) 77:28 (2015) 5 9 3.4 Model Validation The validation of the model obtained will be compared using a verification method called root mean square error. The method will try to show the difference of both result using the calculation for the graph from Equation 5. 4 3 2 RMS Error = (X 1 X 2 ) 2 n ( 5 ) The reason RMS Error is chosen because it is easier to interpret statistically and its unit of display is the same as the quality plotted in the vertical axis. This criterion allows to compromise small parameters variation of system and minimize of resulting error of the system [8]. In this case, finding out reliability of the experiment result can be determined. 4.0 RESULTS AND DISCUSSION Input and output data are being processed in the RC circuit to obtain a set of data. The data sampling time is determined by the set input which initialize to test on the system response time. The sampling rate used in the system is 1000 Hz which means 1000 data will be collected in 1 second time and a 20 second sampling time will be used in the process. 4.1 Model for RC Circuits RC circuit is an electric circuit which created by resistor and capacitors which is driven by voltage. The system used in this test is first order RC circuit. Since, the project is generally going to test on the newly develop system identification system on the hardware, the simplest RC circuit will be used in this test. Figure 4 shows how the circuit of the RC circuit look like and the component value. Figure 4 RC circuit 4.2 PRBS Signal Generated and the Response System Each system response differently when a step input is being injected into a system input. A PRBS signal is like multiply difference of step input is being injected into the system. Figure 5 shows how the system reacts when the PRBS signal is being injected into the RC circuits system. The dotted line in the figure shows the system response according to the input signal. 1 0 0 5 10 15 20 25 PRBS Signal Time Output Data Figure 5 Data collected for system identification process using modulo 6 & 7 4.3 Model from System Identification Toolbox, MATLAB Model of the data which obtained from the DAQ using 1000Hz sampling rate and 20 s sampling time is shown in Equation 6. MLSID(z) = 0.002397 ( 6 ) Z 0.9974 4.4 Model from System Identification Devices, Microcontroller Model of the data which generated by the microcontroller devices using 1000Hz sampling rate and 20 s sampling time is shown in Equation 7. PIC(z) = 0.002712 ( 7 ) Z 0.99703 4.5 Step Response Comparison for the System Figure 6 shows the step response for both Equation 6 and 7 which obtained from the system identification toolbox and also the microcontroller system identification devices. It is also shows the white box model which is obtained from the calculation itself. From figure 6, the graph shows that the real system is different from the calculation part by having the steady-state error. This happens due to the elimination of noise and disturbance in that calculation. The recursive least square method programmed and the system identification toolbox produced are almost the same. 4.6 Model Verification Results Figure 7 shows the root mean square error by comparing the system identification toolbox and the model obtained from the microcontroller itself. The graph shows that there are slightly differences between the two graphs. The rise time of recursive least square method in microcontroller is slightly faster compare to the system identification toolbox. But the differences become smaller by the time being. The

9 Ang Jia Yi, M. S. Abdul Majid, Azuwir M. N., S. Yaacob /Jurnal Teknologi (Sciences & Engineering) 77:28 (2015) 5 9 reduction of the differences occurs is due to the steady-state error for both graph. A steady-state error exist between the systems since the model is produced from difference method and due to the first order characteristic of the system. The differences of the steady-state error are shown in the end of the graph. The steady state error occur in the system is due to the charging and discharging effect of the capacitor in the system. have a prior knowledge of the system. Normally, System Identification Toolbox and Labview are being used in this method. In this project, a well programmed microcontroller will also perform an accurate method to obtain the mathematical modeling. This project has proven that the RLS Method System identification microcontroller can also well perform in obtaining the model from the RC circuit model used. Acknowledgement The research is supported by the personal fund of the author and the co-author. Authors are grateful that all the authors and co-author are able to spend their time and money on this research. References Figure 6 Step response for both system identification result Figure 7 Root mean square error verification 5.0 CONCLUSION In conclusion, there are various method to develop a mathematical modeling. System identification is one of a method used. This method doesn t require to [1] Deng, X. 2009. System Identification Based on Particle Swarm Optimization Algorithm. International Conference on Computational Intelligence and Security. December 2009. 1: 259-263. [2] P.L. Li Fu. 2013. The Research Survey of System Identification Method. 2013 Fifth International Conference on Intelligent Human-Machine System and Cybernetics IEEE. 398-401. [3] H. Veenstra, 2004. 1-58 Gb/s PRBS Generator with < 1.1 ps RMS Jitter in InP Technology. In Solid-State Circuits Conference. Proceeding of the 30th European. September 2004: 359-362. [4] Perlman, M. 1970. The Decomposition of the States of a Linear Feedback Shift Register into Cycles of Equal Length. IEEE Transactions on Computers. 11: 1029-1035. [5] Zadeh, L. 1956. On the Identification Problem. IRE Transactions on Circuit Theory. 3(4): 277-281. [6] L. Ljung. 1998. System Identification Theory for the User. 2 nd Ed. Linkoping Unversity Sweden. Prentice Hall, CA. [7] S. T. Soderstorm, P. 1998. System Identification. Prentice Hall. [8] Veretelnikova, E. L. 2004. Choice of Coefficient of Criterion of a Minimum of the Resulting Root-Mean-square Error for Linear Automatic Control Systems. 7th International Conference on Actual Problems of Electronic Instrument Engineering. September 2004: 203-204.