CN105044624A - Seven-electric level inverter with fault diagnosis function and fault diagnosis method - Google Patents

Seven-electric level inverter with fault diagnosis function and fault diagnosis method Download PDF

Info

Publication number
CN105044624A
CN105044624A CN201510489538.8A CN201510489538A CN105044624A CN 105044624 A CN105044624 A CN 105044624A CN 201510489538 A CN201510489538 A CN 201510489538A CN 105044624 A CN105044624 A CN 105044624A
Authority
CN
China
Prior art keywords
fault
open circuit
dsp
data
neural network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510489538.8A
Other languages
Chinese (zh)
Other versions
CN105044624B (en
Inventor
张震
王天真
韩金刚
张米露
耿超
董晶晶
刘要辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Maritime University
Original Assignee
Shanghai Maritime University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Maritime University filed Critical Shanghai Maritime University
Priority to CN201510489538.8A priority Critical patent/CN105044624B/en
Publication of CN105044624A publication Critical patent/CN105044624A/en
Application granted granted Critical
Publication of CN105044624B publication Critical patent/CN105044624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Other Investigation Or Analysis Of Materials By Electrical Means (AREA)
  • Inverter Devices (AREA)

Abstract

The invention discloses a seven-electric level inverter with a fault diagnosis function and a neural network-based fault diagnosis method. The fault diagnosis method includes the following six steps of: acquiring fault sample data; carrying out FFT transformation; carrying out PCA dimension reduction; constructing and training a BP neural network; embedding an algorithm into a DSP; and carrying out fault diagnosis. With the fault diagnosis method of the invention adopted, on-line and real-time diagnosis of the faults of the seven-electric level inverter can be realized; the output voltage of the seven-electric level inverter is adopted as the only detection signal to carry out fault diagnosis. The seven-electric level inverter has the fault diagnosis function, and can diagnose 10 kinds of faults online in a real-time manner and display the faults through a Nixie tube.

Description

Seven electrical level inverters of tape jam diagnostic function and method for diagnosing faults
Technical field:
The present invention relates to power fault detection, be specifically related to a kind of seven electrical level inverters of tape jam diagnostic function and corresponding method for diagnosing faults.
Background technology:
Along with the development of Power Electronic Technique and the reduction of power electronic devices production cost, high-voltage high-power converter is widely used in various electrical equipment, such as high-power AC motor transmission, active power filtering and new-energy grid-connected etc.And in order to meet the power system development demand day by day improved, multi-electrical level inverter arises at the historic moment.Compare with common two-level inversion device, Cascade H bridge type has the performance of many excellences against multi-electrical level inverter, such as harmonic wave is few, output waveform is more close to sine, and switching tube both end voltage is low, due to along with withstand voltage the increasing of switching tube, its price increases according to exponential type, so by replacing the expensive withstand voltage switching tube of height with cheap low withstand voltage switching tube, design cost and the maintenance cost of inverter can greatly be reduced, particularly evident in high-power occasion.
Although multi-electrical level inverter has plurality of advantages, it also has some inevitable defects.Along with increasing of output level number, the derailing switch number of packages required for it will roll up, and this will improve the probability of system jam widely.Although the generation of Cascade H bridge type multi-electrical level inverter is that Power Electronic Technique provides a lot of facility in the application of high pressure, large-power occasions, once break down, enterprise is gently then caused to stop production, heavy then can catastrophic failure be caused, bring huge loss to society.
Summary of the invention:
Method for diagnosing faults based on neural network embeds in DSP by the present invention first, accomplishes real-time detection and fault diagnosis by the output voltage of DSP online acquisition seven electrical level inverter.
First object of the present invention is to provide a kind of seven electrical level inverters of tape jam diagnostic function, and its technical scheme is as follows:
Seven electrical level inverters of tape jam diagnostic function, comprise direct supply, H bridge main circuit, DSP, voltage variator, ohmic load and display device.Direct supply is made up of three 24v direct supplys, and DSP produces SPWM and drives H bridge main circuit by the converting direct-current power into alternating-current power from direct supply, and its voltage-drop loading of this alternating current to the ohmic load two ends of 20 ohm, and is detected by voltage transmitter.Voltage transmitter gives DSP by within proportional for the voltage signal the detected scope being reduced to 0 ~ 3v.
H bridge main circuit is made up of three H bridges, four of first H bridge switching tubes are labeled as H1S1, H1S2, H1S3 and H1S4 respectively, four switching tubes of second H bridge are labeled as H2S1, H2S2, H2S3 and H2S4 respectively, four switching tubes of the 3rd H bridge are labeled as H3S1, H3S2, H3S3 and H3S4 respectively, and switching tube is chosen as IGBT.Vo1, Vo2 and Vo3 represent the output voltage of three H bridges respectively, and Vo is the final output voltage of this circuit, after the output terminal cascade of three H bridges, makes Vo=Vo1+Vo2+Vo3.Due to Vo1, Vo2, Vo3=0V or ± E.The voltage of three direct supplys is V1, V2 and V3, and V1=V2=V3=E.Like this, at any time, Vo can equal ± 3E, ± 2E, ± E or 0V, and namely this inverter can export seven kinds of different level.
The fault type of the circuit state of H bridge main circuit and seven electrical level inverters is corresponding as follows: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0.
Real-time detection and fault diagnosis is accomplished by the output voltage of DSP online acquisition seven electrical level inverter.The method for diagnosing faults of seven electrical level inverters based on neural network is embedded in described DSP.Described method for diagnosing faults is through data prediction and neural metwork training.
An embodiment of seven electrical level inverters of tape jam diagnostic function of the present invention, also comprise charactron, DSP shows the state of inverter in real time by charactron.
Another embodiment of seven electrical level inverters of tape jam diagnostic function of the present invention, DSP comprises data prediction and neural metwork training module, based on the fault diagnosis module of neural network and data memory module
The data prediction step of the described seven electrical level inverter method for diagnosing faults based on neural network is as follows:
Step 1 gathers fault sample data:
First output voltage during collection fault of converter is as fault sample data, and the method for collection is the discrete voltage equally spaced gathering 512 moment in the output voltage one-period of inverter, each voltage sequence gathered represent.Each value in sequence equals the magnitude of voltage in corresponding moment.
Corresponding relation according to the circuit state of H bridge main circuit and the fault type of seven electrical level inverters: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0, artificially open fault is set, gathers the voltage waveform that inverter exports under ten kinds of failure conditions, and the voltage waveform under normal operation.The fault data gathered in this step is The more the better.One embodiment of the present of invention are chosen collection and are often planted each 100 groups of voltage waveform.
Step 2FFT converts:
By sequence carry out FFT conversion, FFT transformation for mula: here W b=e -j2 π/b, k=0,1 ..., b/2-1;
G k = Σ n = 0 b 2 - 1 x 2 n W b / 2 n k ;
H k = Σ n = 0 b 2 - 1 x 2 n + 1 W b / 2 n k .
The imaginary number sequence that number is one by one 512 is obtained after FFT conversion get front 10 data of this sequence and the data of this sequence are carried out delivery, by the sequence after delivery next step calculating is carried out as sample data.
Step 3PCA dimensionality reduction:
After above-mentioned FFT converts and intercepts, the characteristic of primary voltage signal has become 10 from 512, next carries out PCA dimensionality reduction.Concrete grammar is as follows:
First the fault sample data of all kinds are gathered:
X 11 × 10 = { | F 1 k | } 0 9 { | F 2 k | } 0 9 . . . { | F 11 k | } 0 9 ,
Then covariance matrix R is asked xeigenvalue λ and feature value vector P:
Covariance matrix: R x=E{ [X-E (X)] [X-E (X)] t.
By solving | λ I-R x|=0 He | λ ii-R x| p i=0, i=1,2 ..., b tries to achieve λ and P, wherein, and λ ifor R xi-th eigenwert, and meet λ 1>=λ 2>=...>=λ b, p icorresponding to eigenvalue λ iproper vector, P=[p 1, p 2..., p b] t.Here the value of b is 11.Choose front 3 row of front P, obtain P1=[p 1, p 2, p 3], and P1 is the matrix of 10 × 3.More than work and only need off-line to do once, then retain P1.
Finally calculate the list entries of BP neural network x into be number be 4 data sequence, first data is phase places of the first-harmonic of original signal, and latter three is data sequence after PCA dimensionality reduction.
The neural metwork training step of the described seven electrical level inverter method for diagnosing faults based on neural network is as follows:
Step 4 builds and trains BP neural network
The BP neural network that the present invention builds is three-layer neural network, because original signal obtains the characteristic x that number is 4 after FFT conversion and PCA dimensionality reduction in, then input layer number is decided to be 4, and owing to always having 11 kinds of fault types, then output layer neuron number is 11, and hidden neuron number is rule of thumb chosen for 15.
If the neuron of input layer is the neuron of hidden layer is the neuron of output layer is activation function is Sigmoid function, if with matrix of coefficients be xw 4 × 15, with matrix of coefficients be xw 15 × 11, then input/output relation is:
y k = Σ i = 0 14 1 1 + e - w i × wy i k , k = 1 , 2 , ... , 10 (formula 2-1)
w k = Σ i = 0 3 1 1 + e - x i n i × xw i k , k = 1 , 2 , ... , 14 (formula 2-2)
After building BP neural network, need to train original network.
First the 11 kinds of fault-signals (containing normal signal) will be collected in step 1, obtain training sample after FFT and PCA:
X _ S a m p l e = { x i n 1 k } 0 3 { x i n 2 k } 0 3 . . . { x i n 10 k } 0 3 ,
Due in step 1 often kind of a fault acquire 100 groups of signals, so 100 X_Sample now can be obtained, by the theory of each X_Sample export all be set to:
Y = 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 . . . 0 0 0 0 0 0 0 0 0 0 1 ,
Adopt momentum gradient descent algorithm BP network, training error threshold value is set to 0.0001, learning rate α=0.5, obtains two matrix of coefficients xw_end ∈ R after training 4 × 15with xw_end ∈ R 15 × 11, these two matrixes contain all information of the neural network trained, and therefore, neural network only needs off-line training once, just no longer need trained after obtaining these two matrixes.
The step that the described seven electrical level inverter method for diagnosing faults based on neural network embed DSP is as follows:
Algorithm embeds in DSP by step 5
First initialization DSP.The clock of initialization DSP, phaselocked loop, interrupt vector table, the A0 mouth of definition DSP is that AD acquisition port gathers voltage, and GPIO16, GPIO17, GPIO18, GPIO19 of definition DSP are charactron communication port, are used for controlling the numeral of numeral method.The Timer0 module of configuration DSP, make DSP produce cycle interruption, the frequency of interruption is 25.6KHz.Set up the xw_end ∈ R in array xw [4] [15] and wy [15] [11] difference storing step 4 simultaneously 4 × 15with wy_end ∈ R 15 × 11, set up the magnitude of voltage that array ad_value [512] stores DSP collection.
Then fault diagnosis subfunction program is write, called after " diagnosis () ".The input of this subfunction is 512 magnitudes of voltage
Sequence ad_value [512]; The output of this subfunction is the value of a digital quantity k, k is exactly the type of fault, and such as diagnosis () function finally exports k=1, then show that DSP diagnoses out the fault of inverter to be kind 1, i.e. H1S1 open fault.The content of described fault diagnosis subfunction program is as follows:
Ad_value [512] storage of array completely after, trigger primary fault diagnosis, according to the content in step 2 and step 3,512 the data ad_value [512] be collected are carried out pre-service, four data after obtaining pre-service then result xw [4] [15] and wy [15] [11] in these data and step 4 are brought into formula formula (2-1) and formula (2-2) carries out Neural Network Diagnosis; Finally, neural network output sequence y is obtained k, this sequence is made up of 11 data, comprises diagnostic result; DSP uses bubble sort method to find y kin the subscript k of maximal value, the value of k is exactly the failure mode shown in table 1, and this value is presented on charactron by DSP in real time; Then, empty array ad_value [512], restart the output voltage values gathering inverter, carry out the fault diagnosis of a new round
Finally, write principal function program " main () ", in principal function, programming is infinite loop pattern, whenever DSP enters interruption, then trigger AD sampling, and be stored in ad_value [512] array, when collection 512 times, diagnosis () function is called in main () function, carry out fault diagnosis, after diagnosis terminates, the result data of diagnosis is presented on charactron.
Invention also provides a kind of seven electrical level inverter method for diagnosing faults based on neural network, the described method for diagnosing faults based on neural network is through data prediction step and neural metwork training step, embed in DSP, the described method for diagnosing faults based on neural network is by DSP automatic data collection, carry out fault diagnosis, and show the state of inverter in real time by charactron.
Described data prediction step and neural metwork training step as follows:
Step 1 gathers fault sample data:
First output voltage during collection fault of converter is as fault sample data, and the method for collection is the discrete voltage equally spaced gathering 512 moment in the output voltage one-period of inverter, each voltage sequence gathered represent, each value in sequence equals the magnitude of voltage in corresponding moment;
Corresponding relation according to the circuit state of H bridge main circuit and the fault type of seven electrical level inverters: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0, artificially open fault is set, gathers the voltage waveform that inverter exports under ten kinds of failure conditions, and the voltage waveform under normal operation; Gather each 100 groups of often kind of voltage waveform;
Step 2FFT converts:
By sequence carry out FFT conversion, FFT transformation for mula: here W b=e -j2 π/b, k=0,1 ..., b/2-1;
G k = Σ n = 0 b 2 - 1 x 2 n W b / 2 n k ;
H k = Σ n = 0 b 2 - 1 x 2 n + 1 W b / 2 n k ;
The imaginary number sequence that number is one by one 512 is obtained after FFT conversion get front 10 data of this sequence and the data of this sequence are carried out delivery, by the sequence after delivery next step calculating is carried out as sample data;
Step 3PCA dimensionality reduction:
After above-mentioned FFT converts and intercepts, the characteristic of primary voltage signal has become 10 from 512, next carries out PCA dimensionality reduction; Concrete grammar is as follows:
First the fault sample data of all kinds are gathered:
X 11 × 10 = { | F 1 k | } 0 9 { | F 2 k | } 0 9 . . . { | F 11 k | } 0 9 ,
Then covariance matrix R is asked xeigenvalue λ and feature value vector P:
Covariance matrix: R x=E{ [X-E (X)] [X-E (X)] t;
By solving | λ I-R x|=0 He | λ ii-R x| p i=0, i=1,2 ..., b tries to achieve λ and P, wherein, and λ ifor R xi-th eigenwert, and meet λ 1>=λ 2>=...>=λ b, p icorresponding to eigenvalue λ iproper vector, P=[p 1, p 2..., p b] t, the value of b is 11 here; Choose front 3 row of P, obtain P1=[p 1, p 2, p 3], P1 is the matrix of 10 × 3; More than work and only need off-line to do once, then retain P1;
Finally calculate the list entries of BP neural network x into be number be 4 data sequence, first data is phase places of the first-harmonic of original signal, and latter three is data sequence after PCA dimensionality reduction;
Step 4 builds and trains BP neural network
BP neural network is three-layer neural network, because original signal obtains the characteristic x that number is 4 after FFT conversion and PCA dimensionality reduction in, then input layer number is decided to be 4, and owing to always having 11 kinds of fault types, then output layer neuron number is 11, and hidden neuron number is rule of thumb chosen for 15;
If the neuron of input layer is the neuron of hidden layer is the neuron of output layer is activation function is Sigmoid function, if with matrix of coefficients be xw 4 × 15, with matrix of coefficients be xw 15 × 11, then input/output relation is:
y k = Σ i = 0 14 1 1 + e - w i × wy i k , k = 1 , 2 , ... , 10 (formula 2-1)
w k = Σ i = 0 3 1 1 + e - x i n i × xw i k , k = 1 , 2 , ... , 14 (formula 2-2)
After building BP neural network, original network is trained;
First the 11 kinds of fault-signals (containing normal signal) will be collected in step 1, obtain training sample after FFT and PCA:
X _ S a m p l e = { x i n 1 k } 0 3 { x i n 2 k } 0 3 . . . { x i n 10 k } 0 3 ,
Due in step 1 often kind of a fault acquire 100 groups of signals, so 100 X_Sample now can be obtained, by the theory of each X_Sample export all be set to:
Y = 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 . . . 0 0 0 0 0 0 0 0 0 0 1 ,
Adopt momentum gradient descent algorithm BP network, training error threshold value is set to 0.0001, learning rate α=0.5, obtains two matrix of coefficients xw_end ∈ R after training 4 × 15with xw_end ∈ R 15 × 11, these two matrixes contain all information of the neural network trained, and therefore, neural network only needs off-line training once, just no longer need training after obtaining these two matrixes;
Method for diagnosing faults based on neural network embeds in DSP according to following steps:
Algorithm embeds in DSP by step 5
First initialization DSP; The clock of initialization DSP, phaselocked loop, interrupt vector table, the A0 mouth of definition DSP is that AD acquisition port gathers voltage, and GPIO16, GPIO17, GPIO18, GPIO19 of definition DSP are charactron communication port, are used for controlling the numeral of numeral method; The Timer0 module of configuration DSP, make DSP produce cycle interruption, the frequency of interruption is 25.6KHz; Set up the xw_end ∈ R in array xw [4] [15] and wy [15] [11] difference storing step 4 simultaneously 4 × 15with wy_end ∈ R 15 × 11, set up the magnitude of voltage that array ad_value [512] stores DSP collection;
Then fault diagnosis subfunction program is write, called after " diagnosis () "; The input of described fault diagnosis subfunction is 512 magnitude of voltage sequence ad_value [512]; The output of described fault diagnosis subfunction is the value of a digital quantity k, k is the type of fault; The content of described fault diagnosis subfunction program is as follows:
Ad_value [512] storage of array completely after, trigger primary fault diagnosis, according to the content in step 2 and step 3,512 the data ad_value [512] be collected are carried out pre-service, four data after obtaining pre-service then bring result xw [4] [15] and wy [15] [11] in these data and step 4 into formula formula (2-1) and formula (2-2) carries out Neural Network Diagnosis, obtain neural network output sequence y k, this sequence is made up of 11 data, comprises diagnostic result; DSP uses bubble sort method to find y kin the subscript k of maximal value, the value of k is exactly the failure mode shown in table 1, and this value is presented on charactron by DSP in real time; Then, empty array ad_value [512], restart the output voltage values gathering inverter, carry out the fault diagnosis of a new round;
Finally, write principal function program " main () ", in principal function, programming is infinite loop pattern, whenever DSP enters interruption, then triggers an AD sampling, and be stored in ad_value [512] array, when collection 512 times, in main () function, call diagnosis () function, carry out fault diagnosis.
The present invention has following effect:
1. the present invention is made up of seven level inverter circuits and DSP checkout and diagnosis circuit, can realize the line real time diagnosis of fault.
2. the present invention is used for carrying out fault diagnosis using the output voltage of seven electrical level inverters as unique detection signal.
3. voltage signal is carried out FFT conversion by the present invention, then PCA dimensionality reduction is carried out, the characteristic of the data fault-signal the most after the voltage fundamental phase signal then after being converted by FFT adds PCA dimensionality reduction, finally by the BP neural network that characteristic input trains, carries out fault diagnosis.
4. this inverter carries fault diagnosis functions, line real time diagnosis can have 10 kinds of faults and by numeral method out.
Below in conjunction with drawings and Examples, the present invention is further described.
Accompanying drawing illustrates:
Fig. 1 the present invention is with the hardware structure diagram of seven electrical level inverters of self-diagnostic function;
The main circuit topology figure of Fig. 2 Cascade H bridge type seven of the present invention electrical level inverter;
Fig. 3 the present invention seven electrical level inverter output voltage waveform;
Fig. 4 BP neural network structure of the present invention figure;
Fig. 5 DSP fault diagnostic program of the present invention process flow diagram;
The voltage oscillogram exported during Fig. 6 H1S1 open fault of the present invention;
The diagnosis situation of DSP under Fig. 7 nominal situation of the present invention;
The diagnosis situation of DSP during Fig. 8 H1S1 open fault of the present invention;
Fig. 9 is DSP internal processes module map of the present invention.
In figure, 1 is DSP, and 3 is direct supplys, and 9 is H bridge main circuits, 4 is accessory power supplys, 5 is ohmic loads, and 6 is voltage transmitters, and 8 is fault detectors, 11 is 0v voltage, 33 is the level above seven electrical level inverter output waveform 0v, and 66 is the level below seven electrical level inverter output waveform 0v, and 22 is seven level output voltage fault waveforms level on 0v.H1S1, H1S2, H1S3 and H1S4 are four switching tubes of first H bridge respectively, be labeled as four switching tubes that H2S1, H2S2, H2S3 and H2S4 are second H bridge respectively respectively, it is four switching tubes of the 3rd H bridge that H3S1, H3S2, H3S3 and H3S4 mark respectively; Vo1, Vo2 and Vo3 are the output voltage of three H bridges respectively, and Vo is the final output voltage of this circuit.111 is data prediction and neural metwork training module, and 222 is the fault diagnosis modules based on neural network, and 333 is data memory modules.
specific implementation method:
As a kind of in Fig. 1 seven electrical level inverters of tape jam diagnostic function, comprise direct supply 3, H bridge main circuit 9, DSP1, voltage transmitter 6, ohmic load 5 and fault detector 8.Direct supply 3 is made up of three 24v direct supplys, and DSP1 produces SPWM and drives H bridge main circuit 9, and by the converting direct-current power into alternating-current power from direct supply 3, its voltage-drop loading of this alternating current to ohmic load 5 two ends of 20 ohm, and is detected by voltage transmitter 6.Voltage transmitter 6 gives DSP1 by within proportional for the voltage signal the detected scope being reduced to 0 ~ 3v.
Shown in Fig. 2, H bridge main circuit is made up of three H bridges, four of first H bridge switching tubes are labeled as H1S1, H1S2, H1S3 and H1S4 respectively, four switching tubes of second H bridge are labeled as H2S1, H2S2, H2S3 and H2S4 respectively, four switching tubes of the 3rd H bridge are labeled as H3S1, H3S2, H3S3 and H3S4 respectively, and switching tube is chosen as IGBT.Vo1, Vo2 and Vo3 represent the output voltage of three H bridges respectively, and Vo is the final output voltage of this circuit, after the output terminal cascade of three H bridges, makes Vo=Vo1+Vo2+Vo3.Due to Vo1, Vo2, Vo3=0V or ± E.The voltage of three direct supplys is V1, V2 and V3, and V1=V2=V3=E.Like this, at any time, Vo can equal ± 3E, ± 2E, ± E or 0V, and namely this inverter can export seven kinds of different level.
The voltage waveform (resistive load) exported during seven electrical level inverter nominal situations as shown in Figure 3, in this figure, horizontal ordinate is the time, ordinate is voltage, with 0v voltage 11 be, there is the level 33 above 3 seven electrical level inverter output waveform 0v above, have the level 66 below 3 seven electrical level inverter output waveform 0v below.This voltage waveform equals sinusoidal wave in weber meaning.When inverter breaks down, the output voltage waveforms of inverter will change, and according to the difference of output voltage waveforms, can distinguish different failure modes.Therefore the fault diagnosis algorithm of the present invention's proposition is using this voltage signal as exclusive diagnosis foundation.
All single tube open fault condition by analysis, except H3S1 with H3S4 and H3S2 with H3S3 two pairs of pipes separately fault time output voltage waveforms consistent time, during other tube failure, output voltage waveforms is different between two.Therefore H3S1 or H3S4 open circuit is temporarily classified as a class fault by the present invention, and same H3S2 or H3S3 open circuit row are also classified as a class fault.Therefore this inverter has 10 kinds of open faults and a kind of normal operating conditions, and they are classified as following table:
The failure modes of table 1 seven electrical level inverter
Circuit state Failure definition kind
H1S1 opens a way Fault 1
H1S2 opens a way Fault 2
H1S3 opens a way Fault 3
H1S4 opens a way Fault 4
H2S1 opens a way Fault 5
H2S2 opens a way Fault 6
H2S3 opens a way Fault 7
H2S4 opens a way Fault 8
H3S1 or H3S4 opens a way Fault 9
H3S2 or H3S3 opens a way Fault 10
Normal work Fault 0
Table 1 is enumerated all failure modes that this inverter can carry out self diagnosis, amounts to 10 kinds, and simultaneously in order to unification, add state when inverter normally works, this inverter always has 11 kinds of states and can be detected and show.Such as numeral method is 0, then represent that inverter normally works, if numeral method is 6, then and corresponding 6th class fault, i.e. H2S2 open circuit.
The fault type of the circuit state of H bridge main circuit and seven electrical level inverters is corresponding as follows: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0.
The seven electrical level inverter method for diagnosing faults based on neural network embed in DSP, accomplish real-time detection and fault diagnosis by the output voltage of DSP online acquisition seven electrical level inverter.
Fig. 9 is DSP internal processes module map of the present invention.DSP comprises data prediction and neural metwork training module 111, based on the fault diagnosis module 222 of neural network, and data memory module 333.The input signal of inverter carries out data prediction and neural metwork training through data prediction and neural metwork training module 111, and result is stored in data memory module 333.Fault diagnosis module 222 based on neural network receives the inverter drive signal processed through data prediction and neural metwork training module 111, and utilizes the storage data of data memory module 333, carries out fault diagnosis to inverter.
The described method for diagnosing faults based on neural network is as follows:
System electrification is run, and DSP starts automatic data collection, gathers the output voltage values of an inverter at interval of 39 microseconds, and is automatically stored in array ad_value [512] by magnitude of voltage; After this storage of array completely, DSP calls its fault diagnosis subfunction diagnosis () and carries out primary fault diagnosis, and by the output valve k of this function by numeral method out, this diagnoses end; Then array ad_value [512] is emptied, restart the output voltage values gathering inverter, carry out the fault diagnosis of a new round, so repeatedly carry out the circulation of " gathering-diagnosis-display ", a cycle period is 39 microseconds, and charactron shows the state of inverter simultaneously in real time.The content of barrier diagnosis subfunction diagnosis () is as follows:
Ad_value [512] storage of array completely after, trigger primary fault diagnosis, according to the content in step 2 and step 3,512 the data ad_value [512] be collected are carried out pre-service, four data after obtaining pre-service then bring result xw [4] [15] and wy [15] [11] in these data and step 4 into formula formula (2-1) and formula (2-2) carries out Neural Network Diagnosis, obtain neural network output sequence y k, this sequence is made up of 11 data, comprises diagnostic result; DSP uses bubble sort method to find y kin the subscript k of maximal value, the value of k is exactly the failure mode shown in table 1, and this value is presented on charactron by DSP in real time; Then, empty array ad_value [512], restart the output voltage values gathering inverter, carry out the fault diagnosis of a new round;
Finally, write principal function program " main () ", in principal function, programming is infinite loop pattern, whenever DSP enters interruption, then trigger AD sampling, and be stored in ad_value [512] array, when collection 512 times, diagnosis () function is called in main () function, carry out fault diagnosis, after diagnosis terminates, the result data of diagnosis is presented on charactron.
Based on the method for diagnosing faults of neural network concrete steps as shown in Figure 5.
Described data prediction step and neural metwork training step as follows:
Step 1 gathers fault sample data:
First output voltage during collection fault of converter is as fault sample data, and the method for collection is the discrete voltage equally spaced gathering 512 moment in the output voltage one-period of inverter, each voltage sequence gathered represent.Each value in sequence equals the magnitude of voltage in corresponding moment.
Corresponding relation according to the circuit state of H bridge main circuit and the fault type of seven electrical level inverters: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0, artificially open fault is set, gathers the voltage waveform that inverter exports under ten kinds of failure conditions, and the voltage waveform under normal operation.The fault data gathered in this step is The more the better.One embodiment of the present of invention are chosen collection and are often planted each 100 groups of voltage waveform.
Step 2FFT converts:
By sequence carry out FFT conversion, FFT transformation for mula: here W b=e -j2 π/b, k=0,1 ..., b/2-1;
G k = Σ n = 0 b 2 - 1 x 2 n W b / 2 n k ;
H k = Σ n = 0 b 2 - 1 x 2 n + 1 W b / 2 n k .
The imaginary number sequence that number is one by one 512 is obtained after FFT conversion get front 10 data of this sequence and the data of this sequence are carried out delivery, by the sequence after delivery next step calculating is carried out as sample data.
Step 3PCA dimensionality reduction:
After above-mentioned FFT converts and intercepts, the characteristic of primary voltage signal has become 10 from 512, next carries out PCA dimensionality reduction.Concrete grammar is as follows:
First the fault sample data of all kinds are gathered:
X 11 × 10 = { | F 1 k | } 0 9 { | F 2 k | } 0 9 . . . { | F 11 k | } 0 9 ,
Then covariance matrix R is asked xeigenvalue λ and feature value vector P:
Covariance matrix: R x=E{ [X-E (X)] [X-E (X)] t.
By solving | λ I-R x|=0 He | λ ii-R x| p i=0, i=1,2 ..., b tries to achieve λ and P, wherein, and λ ifor R xi-th eigenwert, and meet λ 1>=λ 2>=...>=λ b, p icorresponding to eigenvalue λ iproper vector, P=[p 1, p 2..., p b] t.Here the value of b is 11.Choose front 3 row of front P, obtain P1=[p 1, p 2, p 3], and P1 is the matrix of 10 × 3.More than work and only need off-line to do once, then retain P1.
Finally calculate the list entries of BP neural network x into be number be 4 data sequence, first data is phase places of the first-harmonic of original signal, and latter three is data sequence after PCA dimensionality reduction.
Step 4 builds and trains BP neural network
The BP neural network that the present invention builds is three-layer neural network, because original signal obtains the characteristic x that number is 4 after FFT conversion and PCA dimensionality reduction in, then input layer number is decided to be 4, and owing to always having 11 kinds of fault types, then output layer neuron number is 11, and hidden neuron number is rule of thumb chosen for 15.BP neural network structure figure as shown in Figure 4.
If the neuron of input layer is the neuron of hidden layer is the neuron of output layer is activation function is Sigmoid function, if with matrix of coefficients be xw 4 × 15, with matrix of coefficients be xw 15 × 11, then input/output relation is:
y k = Σ i = 0 14 1 1 + e - w i × wy i k , k = 1 , 2 , ... , 10 (formula 2-1)
w k = Σ i = 0 3 1 1 + e - x i n i × xw i k , k = 1 , 2 , ... , 14 (formula 2-2)
After building BP neural network, need to train original network.
First the 11 kinds of fault-signals (containing normal signal) will be collected in step 1, obtain training sample after FFT and PCA:
X _ S a m p l e = { x i n 1 k } 0 3 { x i n 2 k } 0 3 . . . { x i n 10 k } 0 3 ,
Due in step 1 often kind of a fault acquire 100 groups of signals, so 100 X_Sample now can be obtained, by the theory of each X_Sample export all be set to:
Y = 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 . . . 0 0 0 0 0 0 0 0 0 0 1 ,
Adopt momentum gradient descent algorithm BP network, training error threshold value is set to 0.0001, learning rate α=0.5, obtains two matrix of coefficients xw_end ∈ R after training 4 × 15with xw_end ∈ R 15 × 11, these two matrixes contain all information of the neural network trained, and therefore, neural network only needs off-line training once, just no longer need trained after obtaining these two matrixes.
Method for diagnosing faults based on neural network embeds in DSP according to following steps:
Algorithm embeds in DSP by step 5
First initialization DSP.The clock of initialization DSP, phaselocked loop, interrupt vector table, the A0 mouth of definition DSP is that AD acquisition port gathers voltage, and GPIO16, GPIO17, GPIO18, GPIO19 of definition DSP are charactron communication port, are used for controlling the numeral of numeral method.The Timer0 module of configuration DSP, make DSP produce cycle interruption, the frequency of interruption is 25.6KHz.Set up the xw_end ∈ R in array xw [4] [15] and wy [15] [11] difference storing step 4 simultaneously 4 × 15with wy_end ∈ R 15 × 11, set up the magnitude of voltage that array ad_value [512] stores DSP collection.
Then fault diagnosis subfunction program is write, called after " diagnosis () ".The input of this subfunction is 512 magnitude of voltage sequence ad_value [512]; The output of this subfunction is the value of a digital quantity k, k is exactly the type of fault, and such as diagnosis () function finally exports k=1, then show that DSP diagnoses out the fault of inverter to be kind 1, i.e. H1S1 open fault.The content of described fault diagnosis subfunction program is as follows:
Ad_value [512] storage of array completely after, trigger primary fault diagnosis, according to the content in step 2 and step 3,512 the data ad_value [512] be collected are carried out pre-service, four data after obtaining pre-service then bring result xw [4] [15] and wy [15] [11] in these data and step 4 into formula formula (2-1) and formula (2-2) carries out Neural Network Diagnosis, obtain neural network output sequence y k, this sequence is made up of 11 data, comprises diagnostic result; DSP uses bubble sort method to find y kin the subscript k of maximal value, the value of k is exactly the failure mode shown in table 1, and this value is presented on charactron by DSP in real time; Then, empty array ad_value [512], restart the output voltage values gathering inverter, carry out the fault diagnosis of a new round.
Finally, write principal function program " main () ", in principal function, programming is infinite loop pattern, whenever DSP enters interruption, then trigger AD sampling, and be stored in ad_value [512] array, when collection 512 times, diagnosis () function is called in main () function, carry out fault diagnosis, after diagnosis terminates, the result data of diagnosis is presented on charactron.
Actual diagnosis effect is shown
Here circuit output waveform and diagnostic result when only displaying is opened a way with H1S1 under normal circumstances.Under other failure conditions, through actual measurement, all can be diagnosed completely.
Under normal condition and H1S1 open circuit time circuit output voltage waveform as shown in Figure 3 and Figure 6 shown in.Fig. 3 is under normal condition, the output voltage wave figure of Cascade H bridge type seven electrical level inverter, has the level above 3 33 7 electrical level inverter output waveform 0v above this waveform, has the level 66 below 3 seven electrical level inverter output waveform 0v below this waveform.
When open fault occurs H1S1, seven level output voltage waveforms become the level 22 of two seven level output voltage fault waveforms on 0v on 0v.Different by the shape of this output voltage waveforms, this two states can be made a distinction.Because this method is that fault waveform and failure mode are set up relation one to one, so study without the need to this waveform caused which kind of reason.During other faults, can there is other changes in the shape of output voltage, the present invention carries out fault diagnosis according to this change.
Under Fig. 7 and Fig. 8 respectively show normal condition and H1S1 open circuit time DSP diagnosis situation.They are effect plays figure of the present invention, and this inverter is made up of DSP1, direct supply 3, accessory power supply 4, ohmic load 5, Hall voltage sensor, voltage transmitter 6, and each parts all mark in the drawings.What wherein charactron shows is the result diagnosed, and in Fig. 7, circuit working is in normal condition, then numeral method is in 0, Fig. 8, and because H1S1 there occurs open fault, then DSP detects and determines this fault, is 1 by numeral method.
Empirical tests, if the malfunction in any one table 1 occurs, the present invention all can quickly detect and be presented on charactron.
More than show and describe the ultimate principle of invention, principal character and advantage.The claimed scope of this patent is defined by appending claims and equivalent thereof.

Claims (8)

1. seven electrical level inverters of tape jam diagnostic function, comprise direct supply, H bridge main circuit, DSP, voltage variator, ohmic load and display device; Direct supply is made up of three 24v direct supplys, and DSP produces SPWM and drives H bridge main circuit by the converting direct-current power into alternating-current power from direct supply, and its voltage-drop loading of this alternating current to the ohmic load two ends of 20 ohm, and is detected by voltage transmitter; Voltage transmitter gives DSP by within proportional for the voltage signal the detected scope being reduced to 0 ~ 3v; H bridge main circuit is made up of three H bridges, four of first H bridge switching tubes are labeled as H1S1, H1S2, H1S3 and H1S4 respectively, four switching tubes of second H bridge are labeled as H2S1, H2S2, H2S3 and H2S4 respectively, and four switching tubes of the 3rd H bridge are labeled as H3S1, H3S2, H3S3 and H3S4 respectively; Vo1, Vo2 and Vo3 represent the output voltage of three H bridges respectively, and Vo is the final output voltage of this circuit, after the output terminal cascade of three H bridges, makes Vo=Vo1+Vo2+Vo3; The voltage of three direct supplys is V1, V2 and V3, and V1=V2=V3=E, Vo1, Vo2, Vo3=0V or ± E, and at any time, Vo equals ± 3E, ± 2E, ± E or 0V, and namely inverter exports seven kinds of different level; The fault type of the circuit state of H bridge main circuit and seven electrical level inverters is corresponding as follows: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0; It is characterized in that: in DSP, embed the method for diagnosing faults based on neural network, DSP automatic data collection, carry out fault diagnosis.
2. seven electrical level inverters of tape jam diagnostic function as claimed in claim 1, it is characterized in that, also comprise charactron, DSP shows the state of inverter in real time by charactron.
3. seven electrical level inverters of tape jam diagnostic function as claimed in claim 1, it is characterized in that, the switching tube of H bridge is IGBT.
4. seven electrical level inverters of the tape jam diagnostic function as described in claim as arbitrary in claim 1-3, is characterized in that, DSP comprises data prediction and neural metwork training module, based on the fault diagnosis module of neural network and data memory module.
5. seven electrical level inverters of tape jam diagnostic function as claimed in claim 4, it is characterized in that, data prediction step and the neural metwork training step of data prediction and neural metwork training module are as follows:
Step 1 gathers fault sample data:
First output voltage during collection fault of converter is as fault sample data, and the method for collection is the discrete voltage equally spaced gathering 512 moment in the output voltage one-period of inverter, each voltage sequence gathered represent, each value in sequence equals the magnitude of voltage in corresponding moment;
Corresponding relation according to the circuit state of H bridge main circuit and the fault type of seven electrical level inverters: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0, artificially open fault is set, gathers the voltage waveform that inverter exports under ten kinds of failure conditions, and the voltage waveform under normal operation; Gather each 100 groups of often kind of voltage waveform;
Step 2FFT converts:
By sequence carry out FFT conversion, FFT transformation for mula: F k = G k + W b k H k , F k + b / 2 = G k - W b k H k , Here
W b=e -j2π/b,k=0,1,...,b/2-1;
G k = Σ n = 0 b 2 - 1 x n 2 W b / 2 n k ;
H k = Σ n = 0 b 2 - 1 x 2 n + 1 W b / 2 n k .
The imaginary number sequence that number is one by one 512 is obtained after FFT conversion get front 10 data of this sequence and the data of this sequence are carried out delivery, by the sequence after delivery next step calculating is carried out as sample data;
Step 3PCA dimensionality reduction:
After above-mentioned FFT converts and intercepts, the characteristic of primary voltage signal has become 10 from 512, next carries out PCA dimensionality reduction; Concrete grammar is as follows:
First the fault sample data of all kinds are gathered:
X 11 × 10 = { | F 1 k | } 0 9 { | F 2 k | } 0 9 . . . { | F 11 k | } 0 9 ,
Then covariance matrix R is asked xeigenvalue λ and feature value vector P:
Covariance matrix: R x=E{ [X-E (X)] [X-E (X)] t;
By solving | λ I-R x|=0 He | λ ii-R x| p i=0, i=1,2 ..., b tries to achieve λ and P, wherein, and λ ifor R xi-th eigenwert, and meet λ 1>=λ 2>=...>=λ b, p icorresponding to eigenvalue λ iproper vector, P=[p 1, p 2..., p b] t, the value of b is 11 here; Choose front 3 row of P, obtain P1=[p 1, p 2, p 3], P1 is the matrix of 10 × 3; More than work and only need off-line to do once, then retain P1;
Finally calculate the list entries of BP neural network x into be number be 4 data sequence, first data is phase places of the first-harmonic of original signal, and latter three is data sequence after PCA dimensionality reduction;
Step 4 builds and trains BP neural network
BP neural network is three-layer neural network, because original signal obtains the characteristic x that number is 4 after FFT conversion and PCA dimensionality reduction in, then input layer number is decided to be 4, and owing to always having 11 kinds of fault types, then output layer neuron number is 11, and hidden neuron number is rule of thumb chosen for 15;
If the neuron of input layer is the neuron of hidden layer is the neuron of output layer is activation function is Sigmoid function, if with matrix of coefficients be xw 4 × 15, with matrix of coefficients be xw 15 × 11, then input/output relation is:
y k = Σ i = 0 14 1 1 + e - w i × wy i k , k = 1 , 2 , ... , 10 (formula 2-1)
w k = Σ i = 0 3 1 1 + e - x i n i × xw i k , k = 1 , 2 , ... , 14 (formula 2-2)
After building BP neural network, original network is trained;
First the 11 kinds of fault-signals (containing normal signal) will be collected in step 1, obtain training sample after FFT and PCA:
X _ S a m p l e = { x i n 1 k } 0 3 { x i n 2 k } 0 3 . . . { x i n 10 k } 0 3 ,
Due in step 1 often kind of a fault acquire 100 groups of signals, so 100 X_Sample now can be obtained, by the theory of each X_Sample export all be set to:
Y = 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 . . . 0 0 0 0 0 0 0 0 0 0 1 ,
Adopt momentum gradient descent algorithm BP network, training error threshold value is set to 0.0001, learning rate α=0.5, obtains two matrix of coefficients xw_end ∈ R after training 4 × 15with xw_end ∈ R 15 × 11, these two matrixes contain all information of the neural network trained, and neural network only needs off-line training once, just no longer need training after obtaining these two matrixes.
6. seven electrical level inverters of tape jam diagnostic function as claimed in claim 5, it is characterized in that, data memory module comprises array xw [4] [15] and wy [15] [11], the xw_end ∈ R respectively in storing step 4 4 × 15with wy_end ∈ R 15 × 11, also comprise array ad_value [512], store the magnitude of voltage that DSP gathers; The method for diagnosing faults based on neural network based on the fault diagnosis module of neural network is diagnosed seven electrical level inverters according to following steps:
Ad_value [512] storage of array completely after, trigger primary fault diagnosis, according to the content in step 2 and step 3,512 the data ad_value [512] be collected are carried out pre-service, four data after obtaining pre-service then bring result xw [4] [15] and wy [15] [11] in these data and step 4 into formula formula (2-1) and formula (2-2) carries out Neural Network Diagnosis, obtain neural network output sequence y k, this sequence is made up of 11 data, comprises diagnostic result; DSP uses bubble sort method to find y kin the subscript k of maximal value, the failure mode that the value of k represents: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0; This value is presented on charactron by DSP in real time; Then, empty array ad_value [512], restart the output voltage values gathering inverter, carry out the fault diagnosis of a new round.
7. seven electrical level inverters of tape jam diagnostic function as claimed in claim 6, is characterized in that, the fault diagnosis module based on neural network embeds in DSP according to following steps:
Algorithm embeds in DSP by step 5
First initialization DSP; The clock of initialization DSP, phaselocked loop, interrupt vector table, the A0 mouth of definition DSP is that AD acquisition port gathers voltage, and GPIO16, GPIO17, GPIO18, GPIO19 of definition DSP are charactron communication port, are used for controlling the numeral of numeral method; The Timer0 module of configuration DSP, make DSP produce cycle interruption, the frequency of interruption is 25.6KHz;
Then fault diagnosis subfunction program is write, called after " diagnosis () "; The input of described fault diagnosis subfunction is 512 magnitude of voltage sequence ad_value [512]; The output of described fault diagnosis subfunction is the value of a digital quantity k, k is the type of fault; The content of described fault diagnosis subfunction program is the described method for diagnosing faults based on neural network;
Finally, write principal function program " main () ", in principal function, programming is infinite loop pattern, whenever DSP enters interruption, then trigger AD sampling, and be stored in ad_value [512] array, when collection 512 times, diagnosis () function is called in main () function, carry out fault diagnosis, after diagnosis terminates, the result data of diagnosis is presented on charactron.
8. the method for diagnosing faults based on neural network, for seven electrical level inverters of the tape jam diagnostic function as described in claim as arbitrary in claim 1-3, it is characterized in that, the described method for diagnosing faults based on neural network is through data prediction step and neural metwork training step, the described method for diagnosing faults based on neural network is by DSP automatic data collection, carry out fault diagnosis, and show the state of inverter in real time by charactron;
Described data prediction step and neural metwork training step as follows:
Step 1 gathers fault sample data:
First output voltage during collection fault of converter is as fault sample data, and the method for collection is the discrete voltage equally spaced gathering 512 moment in the output voltage one-period of inverter, each voltage sequence gathered { x n } 0 511 = { x 0 , x 2 , ... , x 511 } Represent, each value in sequence equals the magnitude of voltage in corresponding moment;
Corresponding relation according to the circuit state of H bridge main circuit and the fault type of seven electrical level inverters: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0; Artificially open fault is set, gathers the voltage waveform that inverter exports under ten kinds of failure conditions, and the voltage waveform under normal operation; Gather each 100 groups of often kind of voltage waveform;
Step 2FFT converts:
By sequence carry out FFT conversion, FFT transformation for mula: F k = G k + W b k H k , F k + b / 2 = G k - W b k H k , Here W b=e -j2 π/b, k=0,1 ..., b/2-1;
G k = Σ n = 0 b 2 - 1 x 2 n W b / 2 n k ;
H k = Σ n = 0 b 2 - 1 x 2 n + 1 W b / 2 n k ;
The imaginary number sequence that number is one by one 512 is obtained after FFT conversion get front 10 data of this sequence and the data of this sequence are carried out delivery, by the sequence after delivery next step calculating is carried out as sample data;
Step 3PCA dimensionality reduction:
After above-mentioned FFT converts and intercepts, the characteristic of primary voltage signal has become 10 from 512, next carries out PCA dimensionality reduction; Concrete grammar is as follows:
First the fault sample data of all kinds are gathered:
X 11 × 10 = { | F 1 k | } 0 9 { | F 2 k | } 0 9 . . . { | F 11 k | } 0 9 ,
Then covariance matrix R is asked xeigenvalue λ and feature value vector P:
Covariance matrix: R x=E{ [X-E (X)] [X-E (X)] t;
By solving | λ I-R x|=0 He | λ ii-R x| p i=0, i=1,2 ..., b tries to achieve λ and P, wherein, and λ ifor R xi-th eigenwert, and meet λ 1>=λ 2>=...>=λ b, p icorresponding to eigenvalue λ iproper vector, P=[p 1, p 2..., p b] t, the value of b is 11 here; Choose front 3 row of P, obtain P1=[p 1, p 2, p 3], P1 is the matrix of 10 × 3; More than work and only need off-line to do once, then retain P1;
Finally calculate the list entries of BP neural network x into be number be 4 data sequence, first data is phase places of the first-harmonic of original signal, and latter three is data sequence after PCA dimensionality reduction;
Step 4 builds and trains BP neural network
BP neural network is three-layer neural network, because original signal obtains the characteristic x that number is 4 after FFT conversion and PCA dimensionality reduction in, then input layer number is decided to be 4, and owing to always having 11 kinds of fault types, then output layer neuron number is 11, and hidden neuron number is rule of thumb chosen for 15;
If the neuron of input layer is the neuron of hidden layer is the neuron of output layer is activation function is Sigmoid function, if with matrix of coefficients be xw 4 × 15, with matrix of coefficients be xw 15 × 11, then input/output relation is:
y k = Σ i = 0 14 1 1 + e - w i × wy i k , k = 1 , 2 , ... , 10 (formula 2-1)
w k = Σ i = 0 3 1 1 + e - x i n i × xw i k , k = 1 , 2 , ... , 14 (formula 2-2)
After building BP neural network, original network is trained;
First the 11 kinds of fault-signals (containing normal signal) will be collected in step 1, obtain training sample after FFT and PCA:
X _ S a m p l e = { x i n 1 k } 0 3 { x i n 2 k } 0 3 . . . { x i n 10 k } 0 3 ,
Due in step 1 often kind of a fault acquire 100 groups of signals, so 100 X_Sample now can be obtained, by the theory of each X_Sample export all be set to:
Y = 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 . . . 0 0 0 0 0 0 0 0 0 0 1 ,
Adopt momentum gradient descent algorithm BP network, training error threshold value is set to 0.0001, learning rate α=0.5, obtains two matrix of coefficients xw_end ∈ R after training 4 × 15with xw_end ∈ R 15 × 11, these two matrixes contain all information of the neural network trained, and therefore, neural network only needs off-line training once, just no longer need training after obtaining these two matrixes;
Method for diagnosing faults based on neural network embeds in DSP according to following steps:
Algorithm embeds in DSP by step 5
First initialization DSP; The clock of initialization DSP, phaselocked loop, interrupt vector table, the A0 mouth of definition DSP is that AD acquisition port gathers voltage, and GPIO16, GPIO17, GPIO18, GPIO19 of definition DSP are charactron communication port, are used for controlling the numeral of numeral method; The Timer0 module of configuration DSP, make DSP produce cycle interruption, the frequency of interruption is 25.6KHz; Set up the xw_end ∈ R in array xw [4] [15] and wy [15] [11] difference storing step 4 simultaneously 4 × 15with wy_end ∈ R 15 × 11, set up the magnitude of voltage that array ad_value [512] stores DSP collection;
Then fault diagnosis subfunction program is write, called after " diagnosis () "; The input of described fault diagnosis subfunction is 512 magnitude of voltage sequence ad_value [512]; The output of described fault diagnosis subfunction is the value of a digital quantity k, k is the type of fault; The content of described fault diagnosis subfunction program is as follows:
Ad_value [512] storage of array completely after, trigger primary fault diagnosis, according to the content in step 2 and step 3,512 the data ad_value [512] be collected are carried out pre-service, four data after obtaining pre-service then bring result xw [4] [15] and wy [15] [11] in these data and step 4 into formula formula (2-1) and formula (2-2) carries out Neural Network Diagnosis, obtain neural network output sequence y k, this sequence is made up of 11 data, comprises diagnostic result; DSP uses bubble sort method to find y kin the subscript k of maximal value, the failure mode that the value of k represents is as follows: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0; This value is presented on charactron by DSP in real time; Then, empty array ad_value [512], restart the output voltage values gathering inverter, carry out the fault diagnosis of a new round;
Finally, write principal function program " main () ", in principal function, programming is infinite loop pattern, whenever DSP enters interruption, then trigger AD sampling, and be stored in ad_value [512] array, when collection 512 times, diagnosis () function is called in main () function, carry out fault diagnosis, after diagnosis terminates, the result data of diagnosis is presented on charactron;
The described method for diagnosing faults based on neural network is as follows:
Ad_value [512] storage of array completely after, trigger primary fault diagnosis, according to the content in step 2 and step 3,512 the data ad_value [512] be collected are carried out pre-service, four data after obtaining pre-service then bring result xw [4] [15] and wy [15] [11] in these data and step 4 into formula formula (2-1) and formula (2-2) carries out Neural Network Diagnosis, obtain neural network output sequence y k, this sequence is made up of 11 data, comprises diagnostic result; DSP uses bubble sort method to find y kin the subscript k of maximal value, the failure mode that the value of k represents is as follows: H1S1 open circuit-fault 1, H1S2 open circuit-fault 2, H1S3 open circuit-fault 3, H1S4 open circuit-fault 4, H2S1 open circuit-fault 5, H2S1 open circuit-fault 6, H2S3 open circuit-fault 7, H2S4 open circuit-fault 8, H3S1 or H3S4 open circuit-fault 9, H3S2 or H3S3 open circuit-fault 10, normal work-fault 0; This value is presented on charactron by DSP in real time; Then, empty array ad_value [512], restart the output voltage values gathering inverter, carry out the fault diagnosis of a new round.
CN201510489538.8A 2015-08-11 2015-08-11 Seven electrical level inverters and method for diagnosing faults of tape jam diagnostic function Active CN105044624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510489538.8A CN105044624B (en) 2015-08-11 2015-08-11 Seven electrical level inverters and method for diagnosing faults of tape jam diagnostic function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510489538.8A CN105044624B (en) 2015-08-11 2015-08-11 Seven electrical level inverters and method for diagnosing faults of tape jam diagnostic function

Publications (2)

Publication Number Publication Date
CN105044624A true CN105044624A (en) 2015-11-11
CN105044624B CN105044624B (en) 2018-02-23

Family

ID=54451306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510489538.8A Active CN105044624B (en) 2015-08-11 2015-08-11 Seven electrical level inverters and method for diagnosing faults of tape jam diagnostic function

Country Status (1)

Country Link
CN (1) CN105044624B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589037A (en) * 2016-03-16 2016-05-18 合肥工业大学 Ensemble learning-based electric power electronic switch device network fault diagnosis method
CN106053988A (en) * 2016-06-18 2016-10-26 安徽工程大学 Inverter fault diagnosis system and method based on intelligent analysis
CN107271925A (en) * 2017-06-26 2017-10-20 湘潭大学 The level converter Fault Locating Method of modularization five based on depth convolutional network
CN108649825A (en) * 2018-04-25 2018-10-12 上海海事大学 A kind of multiple faults partition method of cascade multilevel inverter
CN109116150A (en) * 2018-08-03 2019-01-01 福州大学 A kind of converters method for diagnosing faults based on Cerebellar Model Articulation Controller
CN109884449A (en) * 2019-02-26 2019-06-14 广东省智能机器人研究院 Motor driven systems three-phase inverter bridge arm open-circuit fault real-time detection method
CN110308341A (en) * 2019-05-09 2019-10-08 阳光电源股份有限公司 Inverter module detection method in energy conversion system, apparatus and system
CN110361625A (en) * 2019-07-23 2019-10-22 中南大学 A kind of method and electronic equipment for the diagnosis of inverter open-circuit fault
CN111678679A (en) * 2020-05-06 2020-09-18 内蒙古电力(集团)有限责任公司电力调度控制分公司 Circuit breaker fault diagnosis method based on PCA-BPNN
CN111948573A (en) * 2020-07-13 2020-11-17 华中科技大学 Open-circuit fault identification and positioning method and system for cascaded multi-level inverter
WO2021097642A1 (en) * 2019-11-19 2021-05-27 深圳市大疆创新科技有限公司 Steering gear self-inspection method, steering gear self-inspection apparatus, controller, steering gear, movable platform and computer-readable storage medium
WO2022022659A1 (en) * 2020-07-31 2022-02-03 科华数据股份有限公司 Photovoltaic module diagnosis method, apparatus, and device, and readable storage medium
CN115085571A (en) * 2022-08-18 2022-09-20 深圳戴普森新能源技术有限公司 Inverter system control method and protection circuit
CN117572137A (en) * 2024-01-17 2024-02-20 山东海纳智能装备科技股份有限公司 Seven-level ANPC high-voltage frequency converter remote monitoring system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201937492U (en) * 2011-01-14 2011-08-17 南京师范大学 Low-voltage seven-level inverter
US20120242365A1 (en) * 2011-03-21 2012-09-27 Singh Brij N System for detecting a failure associated with an inverter or associated machine
CN103761372A (en) * 2014-01-06 2014-04-30 上海海事大学 Multilevel inverter fault diagnosis strategy based on principal component analysis and multi-classification related vector machine(PCA-mRVM)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201937492U (en) * 2011-01-14 2011-08-17 南京师范大学 Low-voltage seven-level inverter
US20120242365A1 (en) * 2011-03-21 2012-09-27 Singh Brij N System for detecting a failure associated with an inverter or associated machine
CN103761372A (en) * 2014-01-06 2014-04-30 上海海事大学 Multilevel inverter fault diagnosis strategy based on principal component analysis and multi-classification related vector machine(PCA-mRVM)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
卫三民等: "串联H桥多电平变频器单元故障时的控制方法", 《清华大学学报(自然科学版)》 *
姜立昌: "多电平逆变器IGBT故障诊断方法的研究", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589037A (en) * 2016-03-16 2016-05-18 合肥工业大学 Ensemble learning-based electric power electronic switch device network fault diagnosis method
CN106053988A (en) * 2016-06-18 2016-10-26 安徽工程大学 Inverter fault diagnosis system and method based on intelligent analysis
CN107271925A (en) * 2017-06-26 2017-10-20 湘潭大学 The level converter Fault Locating Method of modularization five based on depth convolutional network
CN107271925B (en) * 2017-06-26 2019-11-05 湘潭大学 Five level converter Fault Locating Method of modularization based on depth convolutional network
CN108649825A (en) * 2018-04-25 2018-10-12 上海海事大学 A kind of multiple faults partition method of cascade multilevel inverter
CN108649825B (en) * 2018-04-25 2020-03-27 上海海事大学 Multi-fault isolation method for cascaded multi-level inverter
CN109116150A (en) * 2018-08-03 2019-01-01 福州大学 A kind of converters method for diagnosing faults based on Cerebellar Model Articulation Controller
CN109884449B (en) * 2019-02-26 2021-07-16 广东省智能机器人研究院 Real-time detection method for open-circuit fault of three-phase inverter bridge arm of motor driving system
CN109884449A (en) * 2019-02-26 2019-06-14 广东省智能机器人研究院 Motor driven systems three-phase inverter bridge arm open-circuit fault real-time detection method
CN110308341A (en) * 2019-05-09 2019-10-08 阳光电源股份有限公司 Inverter module detection method in energy conversion system, apparatus and system
CN110308341B (en) * 2019-05-09 2021-09-03 阳光电源股份有限公司 Inversion module detection method, device and system in energy conversion system
CN110361625B (en) * 2019-07-23 2022-01-28 中南大学 Method for diagnosing open-circuit fault of inverter and electronic equipment
CN110361625A (en) * 2019-07-23 2019-10-22 中南大学 A kind of method and electronic equipment for the diagnosis of inverter open-circuit fault
WO2021097642A1 (en) * 2019-11-19 2021-05-27 深圳市大疆创新科技有限公司 Steering gear self-inspection method, steering gear self-inspection apparatus, controller, steering gear, movable platform and computer-readable storage medium
CN111678679A (en) * 2020-05-06 2020-09-18 内蒙古电力(集团)有限责任公司电力调度控制分公司 Circuit breaker fault diagnosis method based on PCA-BPNN
CN111948573A (en) * 2020-07-13 2020-11-17 华中科技大学 Open-circuit fault identification and positioning method and system for cascaded multi-level inverter
WO2022022659A1 (en) * 2020-07-31 2022-02-03 科华数据股份有限公司 Photovoltaic module diagnosis method, apparatus, and device, and readable storage medium
CN115085571A (en) * 2022-08-18 2022-09-20 深圳戴普森新能源技术有限公司 Inverter system control method and protection circuit
CN115085571B (en) * 2022-08-18 2023-02-03 深圳戴普森新能源技术有限公司 Inverter system control method and protection circuit
CN117572137A (en) * 2024-01-17 2024-02-20 山东海纳智能装备科技股份有限公司 Seven-level ANPC high-voltage frequency converter remote monitoring system
CN117572137B (en) * 2024-01-17 2024-03-29 山东海纳智能装备科技股份有限公司 Seven-level ANPC high-voltage frequency converter remote monitoring system

Also Published As

Publication number Publication date
CN105044624B (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN105044624A (en) Seven-electric level inverter with fault diagnosis function and fault diagnosis method
CN101907868B (en) Intelligent trouble diagnosis method for tractive power supply system and system thereof
CN109738776A (en) Fan converter open-circuit fault recognition methods based on LSTM
CN109375029A (en) Two level current transformer system switching device open-circuit fault diagnostic methods of one kind and system
US12100954B2 (en) Transient stability assessment method for an electric power system
CN108732528A (en) A kind of digitalized electrical energy meter method for diagnosing faults based on depth confidence network
CN102053210A (en) IGBT stuck-open fault diagnosis method for three-phase inverter bridge of frequency converter
CN103116090A (en) Three-phrase pulse-width modulation (PWM) rectifier fault diagnosis method based on wavelet packet analysis and support vector machine
CN112348071B (en) Open-circuit fault diagnosis method for switching tube of submodule of modular multilevel converter
CN108872751A (en) A kind of method for diagnosing faults of three level Cascade H-Bridge Inverter neural network based
EP3972084A2 (en) Systems and methods for monitoring energy-related data in an electrical system
CN104808653A (en) Motor servo system additivity fault detection and fault tolerant control method based on slip form
CN106019044B (en) The single-phase four-quadrant pulse rectifier switching tube open-circuit fault diagnostic method of two level of electric traction alternating-current transmission
CN110068758A (en) Flexible direct current converter valve monitoring and diagnosing system
CN106291162A (en) A kind of method for diagnosing faults of photovoltaic diode clamp formula three-level inverter
CN113610119B (en) Method for identifying power transmission line development faults based on convolutional neural network
CN111983414A (en) Open-circuit fault diagnosis method and system for rail train traction converter
Markovic et al. Hybrid fault detection in power systems
CN115906350A (en) Micro-grid fault positioning and diagnosing method
Bhuiyan et al. A reliable open-switch fault diagnosis strategy for grid-tied photovoltaic inverter topology
CN114089181B (en) XG-Boost-based MMC switching tube open-circuit fault detection method
CN114859266A (en) Open-circuit fault diagnosis method for CHB photovoltaic grid-connected inverter system
CN114545133A (en) Fault diagnosis method of single-phase cascade H-bridge rectifier based on current detection
CN102249126A (en) Converting conduction monitoring system for insulated gate transistor used in mine hoist
Zhang et al. Cyber-physical-social systems for wind power operation and maintenance

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
CB03 Change of inventor or designer information

Inventor after: Zhang Zhen

Inventor after: Wang Tianzhen

Inventor after: Han Jingang

Inventor after: Liu Lei

Inventor after: Qiao Daoji

Inventor after: Geng Chao

Inventor after: Dong Jingjing

Inventor after: Duan Xiaopai

Inventor before: Zhang Zhen

Inventor before: Wang Tianzhen

Inventor before: Han Jingang

Inventor before: Zhang Milu

Inventor before: Geng Chao

Inventor before: Dong Jingjing

Inventor before: Liu Yaohui

COR Change of bibliographic data
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant