Experiment Tests on Single Phase Inverter Using Raspberry Pi

Similar documents
INVERTERS TESTING WITH TMS320F28335 USING SIMULINK BLOCK MATHEMATICAL MODELS

MODEL BASED DESIGN OF PID CONTROLLER FOR BLDC MOTOR WITH IMPLEMENTATION OF EMBEDDED ARDUINO MEGA CONTROLLER

LOW ORDER HARMONICS IMPROVEMENT OF A SINGLE GRID CONNECTED INVERTER SYSTEM UNDER PR CONTROL TECHNIQUE

ARDUINO BASED SPWM THREE PHASE FULL BRIDGE INVERTER FOR VARIABLE SPEED DRIVE APPLICATION MUHAMAD AIMAN BIN MUHAMAD AZMI

A Temperature Control System for Near Infrared Spectroscopic Analysis using Proportional Controller

Development of DC-AC Link Converter for Wind Generator

SCIENCE & TECHNOLOGY

Three-Dimension Carrierless Amplitude Phase Modulation (3-D CAP) Performance Analysis using MATLAB Simulink

Design and Modeling of Linear Back Projection (LBP) Algorithm for Field Programmable Gate Array (FPGA)

UNIVERSITI MALAYSIA PERLIS

Total Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)

Experiment Of Speed Control for an Electric Trishaw Based on PID Control Algorithm

Three Phase PFC and Harmonic Mitigation Using Buck Boost Converter Topology

Use of Advanced Unipolar SPWM Technique for Higher Efficiency High Power Applications

Chapter 1: Introduction

Selected paper. Voltage Controlled Single Phase Matrix Converter with Low Harmonics

Unipolar and Bipolar PWM Inverter

A Discrete Time Model of Boiler Drum and Heat Exchanger QAD Model BDT 921

Small-Signal Model and Dynamic Analysis of Three-Phase AC/DC Full-Bridge Current Injection Series Resonant Converter (FBCISRC)

CHAPTER 6 BRIDGELESS PFC CUK CONVERTER FED PMBLDC MOTOR

ABSTRACT I. INTRODUCTION

CHAPTER 3 APPLICATION OF THE CIRCUIT MODEL FOR PHOTOVOLTAIC ENERGY CONVERSION SYSTEM

INVESTIGATION OF HARMONIC DETECTION TECHNIQUES FOR SHUNT ACTIVE POWER FILTER

Chapter 2 MODELING AND CONTROL OF PEBB BASED SYSTEMS

3-Ф VSI FOR HARMONIC IMPROVEMENT USING MICROCONTROLLER AND SIMULATION IN MATLAB

Arduino based pulse width modulated output voltage control of a dc-dc boost converter using Proportional, Integral and Derivative control strategy

Design of FPGA- Based SPWM Single Phase Full-Bridge Inverter

TABLE OF CONTENTS CHAPTER NO. TITLE PAGE NO. LIST OF TABLES LIST OF FIGURES LIST OF SYMBOLS AND ABBREVIATIONS

CHAPTER 7 HARDWARE IMPLEMENTATION

Generalized Multilevel Current-Source PWM Inverter with No-Isolated Switching Devices

Series-Loaded Resonant Converter DC-DC Buck Operating for Low Power

CHAPTER 6 UNIT VECTOR GENERATION FOR DETECTING VOLTAGE ANGLE

MICROCONTROLLER BASED BOOST PID MUNAJAH BINTI MOHD RUBAEE

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

CURRENT FOLLOWER APPROACH BASED PI AND FUZZY LOGIC CONTROLLERS FOR BLDC MOTOR DRIVE SYSTEM FED FROM CUK CONVERTER

Fuzzy Logic Based Speed Control of BLDC Motor

Electronics Design Laboratory Lecture #6. ECEN2270 Electronics Design Laboratory

Simulation and Modeling of a Three-Phase Two- Stage Grid Connected Photovoltaic System

CHAPTER-III MODELING AND IMPLEMENTATION OF PMBLDC MOTOR DRIVE

IMPLEMENTATION OF FUZZY LOGIC SPEED CONTROLLED INDUCTION MOTOR USING PIC MICROCONTROLLER

CHAPTER 3 METHODOLOGY

Current Rebuilding Concept Applied to Boost CCM for PF Correction

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

Three-Phase Five-Level Flying Capacitor Multilevel inverter For Harvesting Solar Power

AN EXPERIMENTAL INVESTIGATION OF PFC BLDC MOTOR DRIVE USING BRIDGELESS CUK DERIVED CONVERTER

CHAPTER 2 CURRENT SOURCE INVERTER FOR IM CONTROL

POWER- SWITCHING CONVERTERS Medium and High Power

Performance of DVR under various Fault conditions in Electrical Distribution System

Power Management for Computer Systems. Prof. C Wang

In association with International Journal Scientific Research in Science and Technology

DESIGN AND IMPLEMENTATION OF SINGLE PHASE INVERTER

Identification of Hammerstein-Weiner System for Normal and Shading Operation of Photovoltaic System

CHAPTER 4 MULTI-LEVEL INVERTER BASED DVR SYSTEM

SIMULATION AND EVALUATION OF A PHASE SYNCHRONOUS INVERTER FOR MICRO-GRID SYSTEM

A BRUSHLESS DC MOTOR DRIVE WITH POWER FACTOR CORRECTION USING ISOLATED ZETA CONVERTER

A Novel Hybrid Full Adder using 13 Transistors

Analysis and Simulations of Z-Source Inverter Control Methods

Design and Implementation of PID Controller for a two Quadrant Chopper Fed DC Motor Drive

Chapter 3 : Closed Loop Current Mode DC\DC Boost Converter

Three Phase Voltage Source Inverter for Harmonic Improvement using Microcontroller and Simulation in MATLAB

Design and Simulation of Three Phase Controlled Rectifier Using IGBT

Speed control of sensorless BLDC motor with two side chopping PWM

Design and Implementation of Photovoltaic Inverter system using Multi-cell Interleaved Fly-back Topology

Single Phase Inverter using PIC Controller

Brushless DC Motor Drive using Modified Converter with Minimum Current Algorithm

Resonant Controller to Minimize THD for PWM Inverter

Modeling and Simulation of STATCOM

SIMULATION AND IMPLEMENTATION OF PID-ANN CONTROLLER FOR CHOPPER FED EMBEDDED PMDC MOTOR

Digital Sliding Mode Pulsed Current Averaging IC Drivers for High Brightness Light Emitting Diodes

CHAPTER 5 CONTROL SYSTEM DESIGN FOR UPFC

Available online at ScienceDirect. Procedia Computer Science 76 (2015 )

A Comparative study of Analog and digital Controller On DC/DC Buck-Boost Boost Converter Four Switch for Mobile Device Applications

Fuzzy Logic Controller on DC/DC Boost Converter

Development of Variable Speed Drive for Single Phase Induction Motor Based on Frequency Control

DESIGN OF SWITCHED MODE POWER SUPPLY

DSP-Based Simple Technique for Synchronization of 3 phase Alternators with Active and Reactive Power Load Sharing

Teaching digital control of switch mode power supplies

A Three Phase Power Conversion Based on Single Phase and PV System Using Cockcraft-Walton Voltage

Control of Induction Motor Fed with Inverter Using Direct Torque Control - Space Vector Modulation Technique

CONCLUSIONS AND SCOPE FOR FUTURE WORK

Svpwm Technique to Eliminate Harmonics and Power Factor Improvement Using Hybrid Power Filter and By Using Dsp Tms 320lf2407

Abstract. Keywords: Electric vehicle; Modelling; Pulse Width Modulation (PWM) inverters; MOSFET circuits.

Speed Control on AC Induction Motor Using PWM Controlled Voltage Source Inverter

ANGLE MODULATED SIMULATED KALMAN FILTER ALGORITHM FOR COMBINATORIAL OPTIMIZATION PROBLEMS

Design of Compensator for Dynamical System

Simulation of Solar Powered PMBLDC Motor Drive

Design and Simulation of DVR Used For Voltage Sag Mitigation at Distribution Side

Simulation And Comparison Of Space Vector Pulse Width Modulation For Three Phase Voltage Source Inverter

Design and Implementation of a Microcontroller Based Buck Boost Converter as a Smooth Starter for Permanent Magnet Motor

P. Sivakumar* 1 and V. Rajasekaran 2

Comparison Effectiveness of PID, Self-Tuning and Fuzzy Logic Controller in Heat Exchanger

Symmetrical Multilevel Inverter with Reduced Number of switches With Level Doubling Network

Design and Simulation of Fuzzy Logic controller for DSTATCOM In Power System

Comparative Study of Pulse Width Modulated and Phase Controlled Rectifiers

IOSR Journal of Electrical and Electronics Engineering (IOSR-JEEE) e-issn: ,p-ISSN: , PP

PERFORMANCE ANALYSIS OF SVPWM AND FUZZY CONTROLLED HYBRID ACTIVE POWER FILTER

Speed control of Induction Motor drive using five level Multilevel inverter

Open Loop Speed Control of Brushless DC Motor

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge

BYOE: Affordable and Portable Laboratory Kit for Controls Courses

Transcription:

International Journal of Integrated Engineering, Vol. 9 No. 3 (2017) p. 29-34 Experiment Tests on Single Phase Inverter Using Raspberry Pi Shamsul Aizam Zulkifli 1 *, Suriana Salimim 1, Siti Aishah Abd Halim 1, Mohammad Zulfikar Zahid 1, Siti NurulHuda Razali 1, Nor Aishah Johary 1 1 Department of Electrical Power Engineering, Faculty of Electrical and Electronics Engineering Universiti Tun Hussein Onn Malaysia, 86400 Parit Raja, Batu Pahat, Johor, 86400, MALAYSIA Received 13 March 2017; accepted 17 September 2017, available online 18 September 2017 Abstract: This project is about to develop a single phase inverter that is used to understand the concept of inverter voltage output control using Raspberry Pi as the microcontroller. The medium of communications between the Raspberry Pi and the MATLAB Simulink software is necessary while the Arduino is used as an analog to digital converter for the voltage control feedback. The important of this project is to use the low cost microcontrollers which are the Raspberry Pi and Arduino to generate a suitable PWM switching signal to the inverter based on the instruction that been developed in the MATLAB-Simulink blocks without using any programming framework. This inverter has been tested when the mathematical equation blocks diagram and the controllers have been downloaded to the microcontrollers. At the end, the results show, the selected microcontrollers can be used for generating the PWM signal and also to be as an ADC converter for closed loop voltage operation that will be good to undergraduate student for understanding the concept of microcontroller process use in power converters. Keywords: single phase inverter, Raspberry Pi, Matlab, voltage control, Pulse Width Modulation, Arduino 1. Introduction Inverter is widely used in industrial application such as for DC power source utilization, electric motor speed control and for generating an AC source from a DC source [1]. Therefore, the input voltage, output voltage or frequency, and overall power handling are depended on the design of the specific device or converter circuitry. The output of inverter can be varied by changing the input of the DC voltage or by changing the inverter gain (D) of output-input ratio. Inverter is also known as a device that will receive a fixed voltage DC as in Voltage Source Inverter (VSI) and then converts it to variable frequency or variable magnitude AC at the output [2,3,4]. This conversion source can be done by using a power electronics device such as Metal Oxide Semiconductor Field Effect Transistor (MOSFET) as a switching device and it must be controlled by a microcontroller. Nowadays, with the new generation of microcontrollers which has ability to generate high frequency switching, but with minimum cost, has been available in the market and it is affordable to be purchased by the student. Here, comes the Arduino, Raspberry Pi (RPi) and etc. in the market [4]. These microcontrollers have a new feature, where it can be integrated with the MATLAB-simulink blocks in order for designing the *Corresponding author: s.aizam@yahoo.com 2017 UTHM Publisher. All right reserved. penerbit.uthm.edu.my/ojs/index.php/ijie controller. For this case, it gives an advantage to the student where, they able to understand the concepts of controller in power converters without needs to develop any cross coding algorithm for the switching signals [4,5,6] of the converters. Due to these advantages, two sets tests have been setup and tested for this project by using the RPi and Arduino. The first experiment is to test, a six steps output inverter voltage generation using RPi microcontroller with the voltage feedback sensor. The signal that will be generated is based to the six steps algorithm that has been created in MATLAB-Simulink blocks without any coding code been applied. This test is conducted because, to observe the signal of the inverter output to behave as six levels output. The second experiment has been conducted to generate a square output inverter with voltage feedback, where the modelling of the inverter controller is developed in the software based on inverter state space mathematical model. For both tests, the RPi has been combined with the Arduino as to be an analog to digital converter (ADC) interface. Figures 1 shows, the block diagram for the first and second experiments. Both, will start with the MATLAB- Simulink [7] software that will link with the RPi and Arduino boards. This is when the Pulse Width Modulation (PWM) switching pattern is created from the RPi before 29

been injected to the single phase inverter. On the converter side, the output voltage will be measured by the voltage sensor and be used as feedback to create a closed loop control for the inverter. Vout 0001 t 0110 0010 Fig. 2 Expected Result of Six Pulses Output Inverter Waveform. 2 Inverter module Fig.1 Block Diagram of the Project. In this section, two types of the inverter model will be discussed in order to understand the operation of RPi generation signal based on the switching pattern algorithm and mathematical control modelling of the inverter. 2.1 Switching inverter mechanism pattern The switching inverter mechanism pattern is used to create a six steps pulse output at the inverter output. The advantage of having six steps output is where the output voltage magnitude of the inverter can be increased to be more from the inverter DC input. In general, this application looks like a multilevel inverter but it only uses single phase inverter as the hardware. Those steps can be created based on the switching pattern given in Table 1. Based on it, at least 1 switch must on at one logic time only. At the end, the complete expected output voltage cycle from the inverter is shown in Figure 2. This switching logic will be designed in the MATLAB- Simulink blocks and then been downloaded to the RPi. The advantage of using this method is because[7], the MATLAB library is easy to be used and applied due to updated version and the resource is free to be used. Table 1: Design Switching Pattern Voltage S1 S2 S3 S4 Supply (V) +5Vdc 0 0 0 1 1 0 0 1 0 0 0 1-5Vdc 0 0 1 0 0 1 1 0 0 0 1 0 2.2 Mathematical model of the inverter The inverter mathematical model is based on average state space model for inverter circuit diagram from input to output side is been discussed in this part. It makes the mathematical modelling can easily been modelled for designing the controller rather than the ordinary model [4,5,6]. Therefore, the outputs from mathematical modelling are more accurate and reliable to be used in RPi application. However, the first step is to model the inverter in mathematical model based on an average steady state equations [8]. It helps the authors to ignore the switching operation of the MOSFET. Figure 3 shows the model of the inverter for mathematical modelling. Vdc INVERTER S3 (AVERAGE STATE SPACE) V L Fig.3 Average PWM Inverter Model. i Load V A jωl From Figure 3, the equations for inverter switching pattern when the D is used at the converter is described by equations, DV dc = V L + V a DV dc = L δ i ++ Va [1] δt where D, V dc, V L, V a, i, L are duty cycle for average state model, inverter input voltage, inverter output voltage, load voltage, output current, inductor. Therefore, after the dq transformation equations [1] for direct and quadrate (d,q) parameters, the new equation can be shown as, [ D d D ] V dc = L [[ 0 q ω ω 0 ] [i d iq ] + δ [i d δt iq ]] + [ V d Vq ] [2] 30

where, D dv dc = - Lωi q + L δ δt i d + V d D qv dc = Lωi d + L δ δt i q + V q Both equations (1,2) show the response of switching pattern to the inverter and it can be rearranged by, V d = Lωi q - L δ δt i d + D dv dc [3] V q = - Lωi d - L δ δt i q + D qv dc [4] Thus, based on equations [3, 4], the MATLAB- Simulink blocks diagram can be created and been shown in Figure 4 for controlling proposed. Fig.5 Complete Hardware Setup. Figure 5 shows the overall setup of the hardware part of this project. It consists of RPi, the gate drivers for driving the single phase inverter, the ADC converter for voltage feedback purpose and a voltage divider to match the input signal required by the RPi from the Arduino output. 3.1 Six-step pulse inverter test For the first test, the hardware has been tested on the open loop condition, without the Arduino and a voltage sensor as a feedback. The switching logic is generated from the MATLAB-Simulink environment which is followed from Table 1. Those switching pattern will be downloaded to the RPi and the result is shown in Figure 6 at the inverter output. Fig.4 Block Diagram of mathematical modelling of the inverter. The output of this model will generate the reference signal for PWM operation. This reference signal generates based on the duty cycle of the inverter which is collected from the feedback of the inverter output voltage. 3. Results and Analysis The hardware setup has been developed and tested in Power Electronics Laboratory, Universiti Tun Hussein Onn Malaysia. The same setup arrangement has been used for both tests in order to see the performances of the inverter response based in switching pattern and state space control model. At the moment, the problem on the RPi is where, the module library does not have the analog input feedback block. Due to this limitation, the Arduino has been used to be as ADC converter for changing the continuous to discrete signal before it can be feed to the RPi. Fig. 6 Output Voltage Open Loop System. Figure 6 shows the inverter output voltage when 5Vdc is applied at the inverter input. From this result, is shown that, the output magnitude is increased to 8V due to the design switching pattern that based on the six steps pulse output where indicates the output magnitude has increased more from the input source. This increasing is due to the logic that been created where it is to allow two MOSFETs to be on for voltage increase. As seen the output also look liked the step size whereby the maximum output is 8V while the minimum low as -8V. 31

the authors have identified the problem is coming from the ADC and from phase shifted block that do not to sensitive to the discrete configuration on the Arduino. This problem will be addressed and solved in next paper such as to use high resolution of voltage sensor sampling. Fig. 7 Closed loop voltage feedback. Figure 7 shows the inverter output voltage result when the closed loop feedback is applied to the system with the same switching pattern given in Table 1. The same input applied to the open loop analysis is applied again and shows the output voltage is increased to almost 10V. However, this signal has shown the problem due to the switching process feedback. After several troubleshooting, 3.2 Mathematical model inverter analysis The second test is conducted when the voltage feedback mechanism is applied and it can be referred to Figure 8 blocks diagram. This feedback will respond if the digital signal is been the input to the RPi. The detail how this signal generates from the Arduino is not been explained in this paper. When this signal enter to the RPi, the DAC will be used to change back to analog signal for PWM process based on the mathematical modelling. The overall Simulink block diagram for this operation is shown in Figure 8 where on the left side is the input source while on the right side as the output source to the microcontroller. Fig. 8 Block diagram of closed loop system The same hardware setup has been applied again to this second experiment. The block diagram which is shown in Figure 4 is changed to Figure 9. The additional blocks are the PWM generation with the interface of the RPi digital output block and the digital input. The results for these analyses are shown in Figures 10,11 and 12. Figure 10 shows the output of the RPi in terms of duty cycle on voltage feedback controlled by state space model. It is when, by changing the duty cycle, the output magnitude of the inverter can be changed. This is due to the changes which accordingly follow to duty cycle pattern. This pattern is look liked the PWM signal due to the injected sinusoidal waveform from Figure 8 to the PWM output generation. This test has been conducted in open loop mode in order to see the performance of the controller switching Meanwhile, result in Figure 11 is collected when the closed loop feedback is applied. It is where the Arduino is taking place as an ADC process. It shows that, the pattern of the PWM generation is able to be generated when the 32 30

voltage sensor is applied to the inverter output load. Figure 12 shows the inverter output when a load is connected to Figure 5. It shows that, the inverter is able to generate the AC output of 5V ac when a 5V DC input source is applied. It indicates, the state space model is working for controlling the voltage of the inverter output. Therefore those microcontrollers can be used as controller interfacing between the controller with the hardware part. Fig 9 : Block diagram of control strategies to the Arduino. Fig 10. Open loop test on D with control Fig 11. Voltage feedback test on D with control 331

International Journal of Integrated Engineering, Vol. 9 No. 3 (2017) p. 29-34 4. Conclusion Fig.12 Inverter Output voltage. As a conclusion, this project is able to test the RPi with the inverter as the converter when the switching pattern of the controller can be changed easily due to flexibility of the MATLAB communication to the RPi. Its also explained that, the MATLAB-Simulink blocks library is easily to use either in pattern logic design or mathematical equations of the converter for control process respond. At the end, these criterions have helped the undergraduate student to understand the concept of control theory for controlling a power converter. It also is a good tool for an education training that only required a very minimum cost microcontroller for specific converter application that can be learnt easily. 5. Acknowledgement Authors gratefully acknowledge the support of Universiti Tun Hussein Onn Malaysia and Advanced Control for Power Converters Group, FKEE, UTHM to undertake this research activity. References [1] Bin Lu, Xin Wu, Hernan Figueroa, Antonello Monti. (2007). A Low Cost Real Time Hardware- in- the- Loop Testing Approach of Power Electronics Controls. IEEE Transactions On Industrial Electronics, VOL. 54, No. 2, APRIL 2007. [2] Mohd Abdul Talib Mat Yusof (2012). Development of Inverter Controller for BLDC Motor using PIC16F877A. University Tun Hussein Onn Malaysia, January 2012 [3] MdSaifudaullah Bahrudin, Rosni Abu Kassim (2013) Development of Fire Alarm System using Raspberry Pi and Arduino Uno. University Teknologi MARA, Selangor. International Conference on Electrical, Electronics and System Engineering. [4] Shamsul Aizam Zulkifli M. N. Hussin, Abdul Salam Saad, MATLAB-Arduino as a Low Cost Microcontroller for 3 phase inverter 2014 IEEE Student Conference on Research and Development (SCoRED), 16-17 Dis.2015, Penang, Malaysia. [5] Shamsul Aizam Zulkifli, Mohd Razali Tomari, Mohd Najib Hussin, Abdul. Salam. Saad, Mohd. Khair. Ab Ghani, Farih Deraman, Nawi Berahim, Abdul Hadi Abdullah, Application of Robust Control on Arduino Microcontroller Testing in Power Electronics Converters, Journal of Appiled Mechanics and Material, Vol 785, July 2015. [6] Shamsul Aizam Zulkifli, Suhairiyanti Mohd Yusof, Ahmad Husaini Hussian, Ahamd Izzat Mod Arifin, Mohd Saiful Najib Ismail@Marzuki, Wan Ahmad Khusairi Wan Chek and Faizul Rizal Mohamed Tazudin MATLAB-SIMULINK Controller Design For Arduino Target on AC Motor Control Application, Inter. Journ. Of Energy and Power Engineering Research, UMPEDAC, [accepted and will be published in July2015] [7] Mathworks (MATLAB) Manual, excess on Dec. 2014. www.mathworks.com/hardware-support/arduino matlab.html, [8] Shamsul Aizam Zulkifli, (2010)" Linear generator models in Simulink," in Proc.of IEEE International Conference on Power and Energy (PECon),2010 29 *Corresponding author: s.aizam@yahoo.com 2017 UTHM Publisher. All right reserved. penerbit.uthm.edu.my/ojs/index.php/ijie 34