The Hardware Design of Power Quality Online Monitoring Device Based. on MCU

Similar documents
THE DESIGN OF ENERGY-EFFICIENT MONITORING TERMINALFOR POWER SUPPLY AND DISTRIBUTION SYSTEM OF ENTERPRISE BASED ON STM32

Design of double loop-locked system for brush-less DC motor based on DSP

Design of high precision current signal source on DDS Han Ya Kun1, a, Suo Xue Song*,1, b

Design and Development of Smart. Harmonic Analyzer

Training Schedule. Robotic System Design using Arduino Platform

Design of Adaptive RFID Reader based on DDS and RC522 Li Yang, Dong Zhi-Hong, Cong Dong-Sheng

The Application of Clock Synchronization in the TDOA Location System Ziyu WANG a, Chen JIAN b, Benchao WANG c, Wenli YANG d

Select the single most appropriate response for each question.

arxiv:physics/ v1 [physics.ed-ph] 19 Oct 2004

The Design Of Multiple Nodes Wireless Temperature Transmission System Based On STC15W1K24S And CC1101

Design of a Frequency Counter Based on Input Capture Function of a. Single Chip Computer. Wang Yanshuang; Liu Yuelong

Corona Current Data Acquisition Card Based on USB Bus in Extra High Voltage Environment

A Digital Thyristor Trigger Control System based on DSP

Design of Frequency Characteristic Test Instrument Based on USB

Designing with STM32F3x

STM32 microcontroller core ECG acquisition Conditioning System. LIU Jia-ming, LI Zhi

Separately Excited DC Motor for Electric Vehicle Controller Design Yulan Qi

LAX016 Series Logic Analyzer User Guide

School of Electronic Science and Engineering, Nanjing University of Posts and Telecommunications, Nanjing, , China

Aztec Micro-grid Power System

The Design Of Embedded PV Inverter Grid-Connected System

MBC DG GUI MBC INTERFACE

Four Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller

Data acquisition and instrumentation. Data acquisition

Research on State Estimation and Information Processing Method for Intelligent Substation

Advanced Applied Electronics

EE 314 Spring 2003 Microprocessor Systems

CHAPTER 4 MULTI-LEVEL INVERTER BASED DVR SYSTEM

Digital Monitoring Cum Control of a Power Transformer with Efficiency Measuring Meter

EE445L Fall 2014 Quiz 2A Page 1 of 5

Exercise 3: Sound volume robot

TMS320F241 DSP Boards for Power-electronics Applications

Model : KY202M. Module Features. Heart Rate Variability Processing Module

Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier

SNIOT702 Specification. Version number:v 1.0.1

SynthNV - Signal Generator / Power Detector Combo

Interfacing Sensors & Modules to Microcontrollers

Image Acquisition Method Based on TMS320DM642

The Development and Application of High Compression Ratio Methanol Engine ECU

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

KNC-PLC-K506 Series FEATURES DESCRIPTION FEATURES

Design of High Precision Digital AC Constant Current Source

Design and Implementation of Digital Frequency Meter Based on SCM. Weiqiang Zheng

CHAPTER 6 IMPLEMENTATION OF FPGA BASED CASCADED MULTILEVEL INVERTER

EECE494: Computer Bus and SoC Interfacing. Serial Communication: RS-232. Dr. Charles Kim Electrical and Computer Engineering Howard University

Figure 1. C805193x/92x Capacitive Touch Sense Development Platform

Design Implementation Description for the Digital Frequency Oscillator

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

Introduction. Keywords: Wingding machine; Control system; Motion controller

MCU Product Selection Guide

PLC-K506 Series FEATURES DESCRIPTION FEATURES

Serial Communication AS5132 Rotary Magnetic Position Sensor

USB Multifunction Arbitrary Waveform Generator AWG2300. User Guide

Index Terms IR communication; MSP430; TFDU4101; Pre setter

A Smart Substation Field Secondary Device Testing Technique Based on Recurrence Principle

Design of an insulator leakage current measurement system based on PLC

Design and implementation of time synchronization system based on GPS signal Liu bin, Shuling Guo, Shasha Ma

Design of the circuit for FSK modulation based on AD9910. Yongjun 1,2

THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS

SD2085 Low Power HART TM Modem

Brian Hanna Meteor IP 2007 Microcontroller

AN IMPLEMENTATION OF MULTI-DSP SYSTEM ARCHITECTURE FOR PROCESSING VARIANT LENGTH FRAME FOR WEATHER RADAR

Lecture #4 Outline. Announcements Project Proposal. AVR Processor Resources

User s Guide. DDS-3005 USB Operation Manual

EE445L Fall 2014 Quiz 2A Page 1 of 5

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

Design of Experimental Platform for Intelligent Car. , Heyan Wang

Page 1/10 Digilent Analog Discovery (DAD) Tutorial 6-Aug-15. Figure 2: DAD pin configuration

High-Speed Interconnect Technology for Servers

STUDY OF A NEW PHASE DETECTOR BASED ON CMOS

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Grid Power Quality Analysis of 3-Phase System Using Low Cost Digital Signal Processor

Gentec-EO USA. T-RAD-USB Users Manual. T-Rad-USB Operating Instructions /15/2010 Page 1 of 24

Realization and characterization of a smart meter for smart grid application

Generating DTMF Tones Using Z8 Encore! MCU

Study on the isolated test technologies

RS-232 Based Low Cost Data IO Card

EKT 314/4 LABORATORIES SHEET

EE445L Fall 2011 Quiz 2A Page 1 of 6

Research of Initiative Personnel Orientation and Rescue System in Mine based on Synchronous Signal Sensei Technology

Multimeter 500CVD21 RTU500 series

Design of intelligent vehicle control system based on machine visual

Experiment No. 3 Pre-Lab Phase Locked Loops and Frequency Modulation

Frequency Control Method of Isolated Micro-grid Based on Thermostatically Controlled Load Qingzhu Wan1, a, Yuan Bian1, b and Yalan Chen1, c

Unprecedented wealth of signals for virtually any requirement

UAV Automatic Test System Design based on VXI-Bus

LV-Link 3.0 Software Interface for LabVIEW

Pulse Sensor Individual Progress Report

AC : PERSONAL LAB HARDWARE: A SINE WAVE GENERATOR, LOGIC PULSE SIGNAL, AND PROGRAMMABLE SYNCHRONOUS SERIAL INTERFACE FOR ENHANCING EDUCATION

Improvement of Ultrasonic Distance Measuring System

Insulation and monitoring system for pure electric vehicle based on microcontroller unit

EE445L Fall 2014 Quiz 2B Page 1 of 5

CHAPTER 2 VSI FED INDUCTION MOTOR DRIVE

Solutions for Governance and Suppression of Power Harmonic in Cities

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

Coal Mine Lead-acid Battery Intelligent Charger

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

DRTS 66 The new generation of advanced test equipments for Relays, Energy meters, Transducers and Power quality meters

Project Final Report: Directional Remote Control

Let`s get SIRIUS! SIRIUS Overview. SIRIUS from Dewesoft. SIRIUS Overview. The new hardware generation makes your measurement more precise!

Transcription:

5th International Conference on Advanced Design and Manufacturing Engineering (ICADME 05) The Hardware Design of Power Quality Online Monitoring Device Based on MCU Zheng Jiang,a*, Longguang Kong,b, Yang Liu,c and Yong Zhou,d School of Electrical Engineering, Zhengzhou University, Zhengzhou, Henan, 45000, China Zhengzhou Electric Power Company of Henan, Zhengzhou, Henan, 450000, China Skills Training Center of Henan Electric Power Company, Zhengzhou, Henan, 450000, China a jzqzcg@6.com, b 5846658@6.com, c hnpdsly008@6.com, d zhouy@zzu.edu.cn Keywords: power quality; online monitoring; MCU Abstract: In recent years, the power grid and its load structure has undergone great changes. Especially the interference of a large number of non-linear and impact loads have caused voltage waveform distortion, voltage fluctuations, and a series of power quality problems. Therefore, extensive attention has been paid on the research of power quality on-line monitoring device. This paper focuses on the power quality monitoring device hardware, and designs a MCU system, which is based on C805F40, as the device's handle control core. Then on this basis, we design sensor unit, sampling trigger unit, analog-to-digital conversion unit etc, and actually make and weld PCB. As for software, under the Keil μvision4 development circumstances, the author uses C language to develop MCU's control, computing, communication, and other programs of lower computer. Actual test results has proved the design s rationality, and the installation s various functions and indexes can meet the requirements of power quality online monitoring. Introduction With the development of society, science and technology and national industry, electric energy has important influence on the country s progress and the industry s development. In the modern society, electric load growth rapidly, especially the sustained growth of nonlinear and impact load. A lot of power electronic devices and the application of nonlinear devices in power system, such as arc furnace, subway, high-speed rail has caused serious impact on power quality. Therefore, developing a new type of power quality monitoring system (PQMS) which is low cost, easy to use, and can analyze, census,and display power quality indexes is very necessary and imperative. It will have great significance on the safe and reliability of electricity supply and industrial production, and the economic operation. It will also speed up power as a commodity quality standardization process, improve the management efficiency of electric power department on power quality, improve power quality, provide reliable basis for perfecting electricity market system, and promote the formation of the Chinese power market. Based on the above analysis, the design will build a system with MCU + industrial PC server as the core. It will be applied to power quality analysis, real-time monitoring and accurate analysis for the power grid measure, in order to improve the power quality. 05. The authors - Published by Atlantis Press 48

The Design of Monitoring Device Hardware The design uses a system architecture which includes MCU + industrial PC server. The hardware block diagram of the site monitoring is shown in figure. The system is mainly consists of a sensor unit, a data acquisition unit, MCU control unit, USB unit and the IPC unit, etc. Fig. Field monitoring device hardware diagram Three-phase voltage and current respectively flow into the voltage, current sensors, and then into the analog to digital converter for each channel. While the output signal of the three-phase voltage sensor flow into the sync signal generator, and then it can generator and send the synchronous sampling trigger signal to AD converter, in order to complete the voltage and current sampling. After the ADC conversion is complete, the processor reads data by parallel data bus. Then follow the instructions set in advance, calculate various types of power quality indicators and transfer to the PC by the USB interface. The user can check the basic monitoring information by buttons and display. They can also examine the raw data by PC hard disk. The MCU Unit Design Based on the C805F40. The device of the single chip micro-controller uses mixed signals on a chip system MCU C805F40, which is designed and manufactured by American Silicon Laboratories Inc [,]. C805F40 MCU has full speed USB interface, and a built-in USB cache and protocol, which greatly reduces the difficulty of the USB control interface and control program development. And C805F40 has enhanced UART (two) and enhanced SPI serial interface GPRS module and RS interface serial communication requirements. In addition, 805 compatible micro-controller kernel (up to 48 MIPS), with high speed and assembly line structure, can satisfy the coordination of many real-time control tasks. Therefore, C805F40 MCU can meet the design requirements of the micro-controller. C805F40 micro-controller system is shown in Figure. Fig. C805F40 system diagram The Design of Sensor Unit. Phase voltage sampling uses a voltage transformer (PT), current sampling uses a current transformer (CT) isolated transformation, in order to ensure the system is 49

safe and reliable. Voltage and current sensor is the key part of ensuring measurement accuracy. In order to ensure the accuracy of the harmonic measurement, voltage and current transformers should have a uniform frequency response within the frequency range of 50Hz ~ 500Hz. In this paper, the design uses high-precision electromagnetic isolation sensors which are producted by Mianyang weblogs Electronics Co., Ltd. The Design of Sampling Trigger Unit. Using phase-locked frequency multiplication technology can achieve synchronous sampling, in order to prevent spectral leakage and frequency aliasing happening [,4]. Harmonic analysis of the number of the article is up to times, and the phase-locked frequency technology is N times the sampling frequency of the fundamental frequency of the measured signal, where N is the minimum selectable 6, and the sampling frequency is 64 times of the fundamental voltage signal. When the fundamental frequency is 50Hz, the sampling frequency is 00Hz. Since the output signal of the voltage sensor is an analog signal, it can not be directly used as an input signal for phase-locked frequency multiplier circuit. Therefore, it is necessary to convert the AC sinusoidal signal to square wave signal by the zero-crossing comparator. The square wave signal has the same frequency as the fundamental wave and can be used as the input signal of phase-locked frequency multiplier circuit, shown in Figure. U, U b_ and U c_ are a_ tracking voltage output signal of the three-phase voltage sensor, and the input signal of the add and subtract multiplier circuit constituted by LM58. The relationship between the three-phase input signal and the output voltage U of LM58 is: U = U + U U () a_ b_ c_ R +5V R 00K +5V Uc_ Ub_ Ua_ R4 R6 R7 8 4 - + U LM58 R5 8 4 + - U LM R K SI -5v -5v Fig. Sampling trigger circuit design Figure shows that U is synthesised by three-phase voltage signal. When the system occurs to single-phase or two-phase fault, U is not zero. It is more reliable than using single-phase voltage as the synchronous circuit input signal. Under the condition of three-phase symmetrical operation, the amplitude of U is times larger than U _ c, and the Anti-interference performance is more stronger. LM as a zero-crossing comparator can convert the analog signal which contains frequency information to square wave signal which is as the same frequency as fundamental wave. To prevent the zero fluctuation caused by interference, LM is set to zero-crossing comparator. After LM produces square wave which is samed as fundamental frequency, phase-locked frequency multiplier circuit generate synchronization interval signal. This article designs synchronize sampling trigger circuit of system, shown in Figure 4. 440

Q6 Q5 Q7 U Q Q Q4 4 Q6 5 Q5 6 Q7 7 Q4 8 VSS CD4060 Q0 Q8 Q9 RESET OI O0 O0 6 5 4 0 9 C4 0.uF Q8 CI CONVST_SYN C6 00pF U4 PP PCO CI 40.uF VO 5 INH 6 CA 7 CB 8 VSS CD4046 ZENER SI PCO R R DO VI 6 5 4 0 9 C5 R8 M R9 47K R0 SI R 00K C7.uF Fig.4 PLL frequency multiplier circuit diagram CD4046 is COMS PLL chip. CD4060 is 4 levels binary serial counter which used as a divider [5]. SI is the fundamental frequency of the signal generated by LM. CONVST_SYN is output signal. The other input signal CI of the phase comparator is also the output signal of the frequency divider. When different CD4060 output terminals connect to the CI, which changes the frequency division factor of the frequency divider. The output of the PLL will produce different frequencies multiples. The design of this paper, which connect CI to Q5, Q6, Q7 and Q8 respectively to generate four synchronization signal, -fold, 64-fold, 8-fold and 56-fold. The Design of Analog to Digital Conversion Unit. This paper selects AD7606 bipolar AD-converter. AD7606 is the new generation of 6-bit, 8-channel, simultaneous sampling, bipolar input, and single-supply AD-converter, producted by ADI Company [6]. CONVST_A and CONVST_B are the sample and trigger pins of AD7606. They can control four channels and be connected together to trigger eight channel sampling simultaneously. The design of this paper is that C805F40 control eight channel sample simultaneously in order to ensure accurate measurement. Since the data read control pin and chip select pin of AD7606 is connected to the chip IO ports of C805F40, the chip data ports of AD7606 are connected to the IO of C805F40, and the data read operation is very convenient. The design of monitoring device software Design of MCU Main Program. Keil C5 is the development system producted by US Keil Software company. This system is compatible micro-controller C language for 5 series. This company released Keil μvision4 on February 009. C805F40 build environment is Keil μvision4. C805F40 program is composed of main program and subroutine. The main program is responsible for each function subprogram reasonably organized together in the timing process. Subroutines primarily is responsible for achieving all kinds of functions, such as interrupts, initialization, sampling and so on. MCU's main program flow chart shown in Figure 5, which includes several parts: Fig.5 The main program block diagram 44

First power micro-controller, the program restart after press a reset button. Initialization consists of a micro-controller IO port configuration, system clock initialization, watchdog settings, interrupt settings, USB transfer settings, AD conversion start initialization. Call data acquisition subroutine. Read AD conversion completion data. Call the USB transmission program, the read data will be sent to the PC. Data Collection Process Subroutine. We can judge the AD7606 data conversion whether is beginning by setting the MCU external interrupt. The rising edge of the signal BUSY is the interrupt trigger signal. Interrupt flag is cleared off after entering the interrupt. Turning off the interrupt prevent other factors affecting the data collection and send. Through a for loop, the data of AD7606 can being read out and stored in a byte array. Calling USB send subroutine, send the data stored in the array to the PC, and open data acquisition interruption, waiting for an interrupt trigger. C805F40 USB Data Transfer Routine Processes. Before the device making the USB communication, USB clock must first initialize, and then initial the USB interface including setting PID, VID, the device description information, enable the USB API interrupt [4]. After the setup is completed you can send data at any time. The system calls Block_Write() function in data acquisition interrupt. The initialization of USB clock, interface and API interrupt are all written in the main program initialization. Test results and analysis The test uses a three-phase precision test power simulate the secondary side of 0kV substation PT / CT. Start the monitoring and analysis software, and enter a password login. First set voltage level, current level, PT / CT ratio and other parameters. The test can set data record custom criteria such as voltage, current, harmonic ratio limits and so on according to need. Frequency Measurement Accuracy Test. This article uses JCD4060 sophisticated testing three-phase power regulator output frequency on the frequency measurement tests. Use Tektronix TDS0C digital oscilloscope and the monitoring device developed in this paper to simultaneously test the voltage signal of measuring power. Test data and absolute error as shown in Table. f OSC and f PQMS are respectively oscilloscope measurements and monitoring device measurements. Tab. Frequency measurement test table f OSC/Hz 49.998 49.995 49.999 49.994 f PQMS /Hz 49.99 49.990 49.995 49.995 Absolute error /Hz 0.007 0.005 0.004 0.00 As shown in Table, the max absolute frequency measurement of the monitoring device and TDS0C oscilloscope is 0.005Hz. Meet the national standard s accuracy requirements of GB / T 986-005 General requirements for power quality monitoring equipment in the frequency deviation is less than 0.0Hz. Voltage Measurement Accuracy Test. Since the JCD4060 test power s display precision is three and a half. It s not sufficient as a reference for voltage measurement accuracy test of the monitoring device. The display of the four semi-voltmeter test victory licensing VC86E is used be as a voltage measurement reference. Three-phase voltage measurement test data, and the relative error are as shown in Table. 44

Tab. Three-phase voltage measurement test table Supply Monitoring device measurement value /V Relative error /% voltage /V A B C A B C 0.00 0.6 9.99 0.8 0. -0.0 0.5 0.00 0. 09.95 0.5 0. -0.05 0.4 00.00 00.09 99.99 00. 0.09-0.0 0. 90.00 90.07 89.96 90.08 0.08-0.04 0.09 80.00 80.0 79.87 80.09 0.0-0.04 0. 60.00 60.07 60.00 60.05 0. 0 0.08 40.00 40.05 9.95 40.04 0. -0. 0.0 0.00 9.98 9.97 0.0-0.0-0.5 0.0 As can be seen from Table, the relative measurement error of three-phase voltages distribute between -0.5% to 0.5%. Meet the precision of the national standard GB / T 986-005 General requirements for power quality monitoring equipment in the voltage deviation is less than 0.5%. Reach the 0.% accuracy. Conclusion This paper completed the MCU system design, which is based on the C805F40, as the core of the system hardware controller. Then on this basis, the author designed sensor unit, sampling trigger unit, analog-to-digital conversion unit etc, and actually made and welded PCB. The author uses C language to develop MCU's control, computing, communication, and other programs of lower computer. Testing the frequency, voltage, harmonics measurement accuracy and other functions in the laboratory. Actual test results has proved the design s rationality, and the installation s various functions and indexes can meet the requirements of power quality online monitoring. References [] Silicon Labs, C805F4X Data Manual [Z], www.silabs.com, 008 [] Lei Zhu, The design for low-cost data acquisition based on C805F40 [J], Foreign electronic components, 008(4): 6-8. In Chinese. [] Guangyu Du, Xiaoqiao Chen, Zhongtian Wan, Application for locked multiplier and quasi-synchronous sampling method in the measurement of harmonics [J], Wuhan University (Engineering Science), 00(5): 9-44. In Chinese. [4] Haisheng Yu, Songfeng Pan, Herong Wu, The electrical parameter measurement based on complex sequence FFT and the principle of phase lock [J], Grid technology, 000(): 59-6. In Chinese. [5] Dahua Zhang, PLL IC CD4046 and its application in automation instruments [J], Industrial Measurement, 00(6): 0-. In Chinese. [6] Keyong Yu, Jianjun Sun, The application of the new generation of 6 bit 8-channel simultaneous sampling ADC-AD7606 in the smart power grid. In Chinese. 44