Simulation of 3 phase grid connected inverter using MATLAB with dq Control.
HTML-код
- Опубликовано: 17 окт 2024
- in this video i am briefly explaining the basic synchronous reference frame control theory of three phase grid inverter, and its complete simulation using MATLAB. Feel free to post your doubts in the comment section, or you can reach me at ashacademy01@gmail.com. if you like my work, please consider subscribing to this channel. Thanks for watching.
If you like my work, please consider subscribing to this channel. Thank you. ruclips.net/channel/UC58DFky5Fm9AxH9UmWHHYmQ
thanks so much and please connect PV to this simulation show us how to implement it
@@Francies1004 already there. please go through my channel
Great Work....Can you please tell that how can I calculate the Distortion factor, switching losses and efficiency of inverter?
how to solve this type of errors:"Error in port widths or dimensions. Output port 1 of 'GIdq/From10' is a one dimensional vector with 3 elements"
@@tvHallo have you got the output?
We Radio Amateurs really need your knowledge, our radio transceivers use it a lot for frequency selection.
One more question, how did you select the gains for proportional controller. Was it by trial and error or some other calculations.
The gains could be calculated based on different controller tuning methods. Based on a literature review: the inner current controller gains are calculated based on Modulus Optimum and the Outer Control loop controller gains are calculated based on Symmetrical Optimum methods.
What is the equations for it?
The best video i have seen so far and it will stand a taste of time. In the Alpha-beta-zero simulink block, what are the effect of choosing 90 degree behind phase A and aligned with phase A axis on simulations?
Sir, please make more videos on interleaved DC DC Converter (Buck, Boost, buck-boost) using multiple IGBTs. It will helpful for us. If you include those topics in your channel it will be exactly pack of knowledge.
Lots of small small things are missing. How do you get an active current reference as -205?
Amazing step-by-step guidance Thank you.
Glad it was helpful!
Thank you for sharing your knowledge, can you please share the article or textbook from where you got these controller parameters and theoretical concept
Hello Sir in the PLL block is the a specific method you used to calculate for Ki and Kp ?
thanks buddy your videos are helping me alot completing my project work 😍😍😍😍😍😍😍😍
Glad it helped
Yo @haripandey1740 what is your project work?
design and simulation of upfc
Some following questions:
Did you implement current control loop and voltage control loop in the inverter?
Can you share the derivation for Ed, Eq, and how you ended up with them?
Are the Pi controllers working in the digital domain?
If the inverter requires a constant input voltage, for example while integrating with DC-DC boost converter would we need a constant supply, if not would there be any issues?
Will the inverter provide the same AC voltage as the grid if the DC input to inverter is changed?
Dear Sir, can you tell me if dq control is the same as droop control?
Sir why we are not connecting pi-controller to Ed and Eq side.why the arrows are leaving like that in explaination circuit diagram.
Seems you're giving detailed explanation for simulation, fine. You're mentioning abc to alpha-beta as park and alpha-beta to d-q as Clarke, which is wrong. Abc to alpha- beta is Clarke transformation and alpha-beta to d-q ia park transformation. Pls correct this
I am getting error like the dimension mismatch of wt block, demux not connected. Also, I would like to ask about how you have got active current 205A. Can you tell the source from where the values are been taken? Thanks
Hello sir, Thanks for good uploading, However I have some droughts like why you are not using PLL(3-phsase block) and why you are not using abc-dqo transform directly. similarly why you are not using universal bridge and PWM generator(2-level DC-DC) block . I will be thankful to you for your reply.
Hey, very nice video, I have a question I put a scope in wt and is look to be increasing, but if I use a block from simulink call PLL wt is always zero, that is more logic to me, could you explain me this effect?
thanks by your work , this is a great content. I did it and it is working perfectly;next step I find will find out your methods to get different values then I will try to do the same simulation with 04 inverters connected to the grid using LQR
Hello can you send me your model
Why are Ed and Eq outputs of two different operations in the block diagram? Wouldn't this cause some contention?
-According to the left-hand side, Eq=Vq*2/VDC and Ed=Vd*2/VDC
-According to the right-hand side, Eq and Ed are V_alpha and V_beta converted into dq coordinates
This leads to another issue. Vq and Vd are also defined by different operations.
-According to the left-hand side, Vq=Uq+Eq-LwId, and Vd=Ud+Ed_LwIq
-According to the right-hand side, Vd=Eq and Vq=Ed (V_alpha and V_beta converted into dq coordinates)
This last point is a contradiction, since they cannot be equal to two very different equations.
Can you please provide some explanation for this? Thank you!
Did your model work ?
Can we build the same thing with a 3 phase load instead of the grid?
I tried the simulation but I couldn't get the exact results like yours. Can you help me out? Also, can you explain further about the gain value "2*pi*50*1000e-6" and what method you used in finding PI controller values (Kp and Ki)
Hello Dear Eshan I have the same question on finding PI controller values can you please tell me if you get the answer?
@@tarikuataye4299 Can you tell me you solved your problem?
why -205 is kept constant. And can you tell me how the values for Kp and Ki for the voltage and the current?
Sir for implementation which ICs you have used ??? Can you please elaborate?
which IC you are talking about?
@@TechSimulator can I get the report of this project please?
@@TechSimulator
He actually wants to know about practical implementations of this project which components/IC we need to do this on hardware.can you guide??please help me i am your subscriber and lover.
I want to implement a simulation with DSTATCOM that uses the 3-level cascade multilevel inverter that is, with a single H-bridge but with the control based on synchronous reference frame to mitigate the total harmonic distortion of a network, I see that in your video you use 6 IGBT and I want to know how to connect when I only want to use 4 IGBT. Please help
@tech simulator
The only problem I am facing is:
When I set the solver settings to "discrete", it gives the following error:
"The "FixedStepDiscrete" solver cannot be used to simulate block diagram because it contains continuous states"
Upon inspection, I found out that the PI controller is causing this issue.
How can I eradicate this issue ??
Thank you for your video sir. I was wondering what is the different between current control and voltage control grid connected inverter, can you explain it to me sir?
Excuse me, Which article did you refer to for the design of your control strategy?
My simulations are not based on any reference paper. i am just sharing my knowledge. But still you can get related papers from internet.
Incredible👍👍 .......Can you tell me the whole measures you taken to build this simulation .....how do you calculate diffrent elements .....is there any procedure to design the inverter and control signals .....pls help me
i have made a separate video for lcl filter design.
Very good explanation an expert simulation kindly let me know how can we plot the output frequency of this inverter in Matlab that is 50 or 60 HZ.
It was indeed a nice one. I was wondering whether it is possible to enter reference active power and reference reactive power instead of reference current in the DQ frame. Also, it would be great if the Simulink file could be shared by a link.
you can contact me via email for the file. instead of current you can enter the power referenes and it is possible
@@TechSimulator but with payment too right.Everyone do for payment nowdays
Great video, can you check the DC link control ? It looks like there is a a big steady state error
Why do you set the inductor value to 500uF and the capacitor value to 100uF? And Why do you set the Three Phase Source Voltage to 415 (VLL-RMS)?
Sir I have tired the same simulation but my current is not sinusoidal and also value is too high about 1000 amperes. Can you help me please
please try to match the parameter of LCL filter
Hello, can i ask why id_ref set minus? -205
Sir is it possible to reset the reference current for negative currents to convert this topology into a bidirectional inverter/rectifier?
Thanks for sharing
sir ,in which mode, this inverter topology can be operated ?grid forming ,grid supporting or grid feeding mode?
Grid feeding
when I bult this simulnk the Ir,Iy,and Ib are do not true simulated I think there is problem in PI Controller, please help me
Bro when i add ED EQ to abc block, i got "Error in port widths or dimensions. 'Input Port 2' of 'PICONTROL/Mux2' is a one dimensional vector with 1 elements." error . Can you help me ?
Please share the simulation
bagaimana cara membuat sistem kontrol untuk multilevel inverter menggunakan metode flying capasitor?
untuk video "simulasi inverter terhubung jaringan 3 fasa menggunakan matlab dengan control dq" paas di RUN masih error pak
Hello sir , i am trying this but there is some dimensional error .Ed and Eq i am getting 2 waveforms in each.
Sir .I have error in alpha beta block in port dimensions ,Plz help
sir with reference to this video i have tried to same model in MATLAB simulink , but it is showing some error in matrix multipication..can you help to resolve it?
You can mail the model
i dont get the same output.
sir you forget to multiple 2/vdc in simulink also.
in demux you choose 3 output and take only 2 output which aries as error .
what shall i do sir. help me
pls share the model at my email id
Sir, can you tell me the paper name or book that you followed to draw this work.
there any somany papers available. just go through IEEE Xplore
@@TechSimulator SIR CAN U SUGGEST ME THOSE PAPERS?
did u find any papers?@@bibhudattamishra387
Excellent work..!!!
Nafis Subhani thanks brother
Good for your labor, sir, I wonder something. I wonder what should be done to transfer to 400 V and 10 A to grid. I would be glad if you help. To transfer 4 kW
Sir I have connected as u connected but iam not getting result it showing error at controller can u clarify it pls
sir, why you sum Ud+Ed+ LwIq??
If you've already found this information, please, can you share it with me?
Hi do you have any references for the circuit?
Suppose I want to design an LC filter can I do using this design principle???
LC filter for grid connected system?
Can you tell me how did you chose the parameters of the repeating sequence block?
Sir which version is used in this circuit please
THANK YOU FOR YOUR VIDEO. VERY HELP FULL
Glad it helped
Nice one and excellency explained.please make any simulation video based on Micro Grid and reactive power control through any Facts devices.
Thank you.
micro grid will be doing later. statcom i have already made
Hi, with the help of you model I am trying to make PMSM, FOC , but i am not sure what to take iqref=? , can you please help me out
iq ref should be 0=zero to achieve unity power factor and get rid of reactive power
Great work sir
Sir please explain the synchronous frame theory and why we r using that theory for inverter controller...??
Explain the complete theory would be difficult. But i can answer for other question, that is why we are using it. The simple reason is that we can seperately control the active and reactive current. Another reason is that all control variable are in the DC frame, so by using simple PI controller, we can implement the complete controll algorithm
Thank you very much. I have questions if you permit me please.
Why do you divided by 2/VDC ?
Why do you set the reference current in negative ?
Of course, you can ask all your doubts.
1. For sine PWM 3 phase inverter, the relation between modulation index, DC link voltage and inverter output is given by Vd = md*(Vdc/2). Same applies for Vq also. Since our carrier triangular signal is scaled between 1 and -1, we need to convert our voltages to that scale in order to avoid over modulation. So we multiply it with 2/VDC.
2. If you had watched my previous video on PLL, there you can see that in order to generate active current reference, the function i used is -sine(angle). Here negative symbol i used because, as per park’s transformation theory, beta voltage should lead alpha voltage. But in matlab, alpha leading beta. Due to same reason, here i took current reference negative. If u take positive reference, the voltage and voltage will align 180 degree out of phase. If use any other pll u can avoid this issue.
Is it possible for me to obtain the similar output result because right now am using MATLAB 2019a
Yes
Thanks by your work. It is very valuable. I have a problem during simulation. It appears the warning: "Convergence problem when solving algebraic loop containing 'inversor/dq0 to abc/dq0 to Alpha-Beta-Zero/Subsystem1' at time 0.000117. Simulink will try to solve this loop using Simulink 3 (R11) strategy. Use feature('ModeIterationsInAlgLoops',0) to disable the strategy introduced in Simulink 4 (R12)". Would you know the reason and how to solve? I redid all the procedure. I have Matlab 2015.
Would it matter if we change the initial voltages, like 800 Vdc to say 1000 Vdc would it change the other things much?
Not much. Need to change 2/800 term into 2/1000
@@TechSimulator thanks a lot. This is much appreciated
If I want use it for Rectifier ...In place of DC supply. I had placed resistive load...I am not getting unity power factor .any changes in control part is required or what
I have already made a seperate video for 3 phase active rectifier
@@TechSimulator sir I tried but I am not getting same please help in this
Thank you so much for your explanation
How to make real power and reactive power positive I changed value -205 to 205 values become positive but tracking signal became higher than ideal one
How do you calculated the constants of pi controllers??
Sir, in matlab should I enter rms values or peak values in case of AC voltage source block and output in scope we are getting is rms or peak values?
in ac voltage source we enter peak value. in scope we see a sine wave, and max value of that sine wave represent the peak voltage.
@@TechSimulator Thank you Sir for your reply. Excellent videos. Please continue to post like these videos which is really very useful to many of us who are doing projects and Research. Once again thank you Sir.
Thanks for you good words.
how to vary current magnitude?
Sir, why did you take gain value of 2/800 for PWM ?
2/Vdc , check 2:34
i have smart grid model with documentation. if anyone need contact on whatsapp.. +923459160826
Thank u very much!
hi..i want to know what is the most common method of inverter controlling? Is it voltage control or current control?
I think current
Sir if I change the grid load on each phase its showing error how can I fixed this problem
Sir plz can you hlp in designing three phase shunt active power filter based on dq theory for power quality improvement
sir how to implement for the three phase IGBTs??? Need help please
Firstly, well wishes... to you sir, i need a help regarding my final output actual current waveforms, they are full of dimentional errors i.e actual current and reference currents. please kindly , help me out to solve this issue.
contact at my email
Sir please connect non-linear load to show before and after using filter
hello, sir, Can this modeling be tune based on SVPWM?
Yes. You can replace the spwm blocks with svpwm block and it will run
Can you tell me how to select the value of id ref in 500dc - 25kv ac system
excelent work ... how I can convert this design into bi-directional dc/ac.
Yes. In fact i have already made a video on 3 phase active rectifier. You can check out that
Sir can u plz explain in detail the working of current controller ...
Hey Amir Reyaz
Have you understood the current controller
Please make video on design of PI controller and how to calculate values of Kp and Ki
Calculation of kp and ki is different for different circuits. And it is always difficult to find a single equation that can be applied for any circuit. And some times we have to do the trial and error to find the values.
Really good !!
nice job, keep it up!
Tech Simulator
I hope next time adding Decoupled PQ Control to the same system to control Id&Iq automatically after applying different cases in load side .
sure. i will try that
@@TechSimulator really I appreciate that and I'm very enthusiastic to see it. thanks a lot
Sir,how did you select -205 for active current reference
I am simulating an 100kva inverter. So the line current will be 100kva/(root(3)*400). That cmes nearly 145A rms. To get prak, multiply it with root(2). So u will get 205
@@TechSimulator Thank you Sir
but why is it -205 not 205 sir
@@hoantran5087 when we design controller like this , the reference can take positive or negative depending on many factors like how we put the voltage/current sensors, how the PWM generated etc. so for my case, to get active power i had to put negative reference.
@@TechSimulator that makes zero sense I = (100kva/3*415) = 80.3 A and lrms=sqrt(2)*I = 133.6 A
Can u plz implement VF control instead of PQ control..in grid connected inverter..to control V n F of grid...
I'm getting very low inverter output currents. In the order of micro amperes. What should I do. Can you reply me asap.? Thank you
Send your model ashacademy01@gmail.com. I will check
Ive sent you through mail
Ok i will check
Thanks for looking into my model. its working fine.
@@akshaykapil4829 ok
Sir, can we have the same voltage for both DC (input) and grid? Can we have grid voltage greater than the DC input voltage?
for a 415 v grid voltage, we at least need to have 580 volt at the dc input. and we cannot have grid voltage more than dc input voltage.
@@TechSimulator Thank you Sir for your response.
Sir if the dc output volatge is 400 or415 how much voltage i can keep to the grid
Near 280 rms line to line
How you have found out these values sir?Your videos helped me a lot
could you tell me how to calculate Kp and Ki of PI controller
I followed the procedure step by step but my current is too much and unsymmetrical about the time axis
Me too
Sir ..can U please explain the model of 3 phase dual converter closed loop control by pq. Theory
Why transformer is not connected in output side of inverter .....can you explain @techsimulator
There inverters with transformer and without transformer. So you connect the transformer if you wnat, no issue
what is -205? Anyone please reply
Why you are taken negative value of active current?
incredible content!
Sir, can you explain pmsg wind generator mppt simulation??....I have searched a lot but I didn't get any video on this plz try to make video on this topic sir.
Hi Sir, Love your videos so much. Why are you controlling the inverter current instead of grid current (Can you explain why) ? PS: I tried it and the simulations acted out.
Hv u got output
@@shubhamsonawadekar5772 Yes. But doesn't work for grid current!
@@royaltyfreemusic2633 bro is that workng for inverter currnt can u gttng same results as per the video??
@@shubhamsonawadekar5772 yes
@@royaltyfreemusic2633 Dear brother
Please can you mail me the file bcz since 7 days I tried i m grrng dimension errors
@Tech Simulator . Do you have or are you planning to post videos related to Virtual Synchronous Generator VSG or Virtual Synchronous Machine VSM?
My Thesis are related to VSG/VSM and I am having difficulty in understanding and modeling VSG/VSM. Can you help me in this regards?
In the same manner like in this video, a VSG controller is used with inverter so that every individual inverter behave as Synchronous Generator which has the capabilities rotational inertia and damping properties.
Looking forward to receive a reply from you.
I am also working on the same...If you habe got your answer could you please share with me
Sir Plz do video on virtual inertia control of microgrid
Hey..Iam also working on virtual inertia in microgrid.
SIR what is the need of alpha beta control why u r using??? the direct abc to dq bloc k available in the matlab na why u r using that alpha beta transformation
I need alpha beta voltages for pll implementation and for current you can directly transform into dq. For better understnding i use transformation blocks separately
@@TechSimulator sir im connecting scope at dq the wave form should be different what is the reason behind that.. two phase are there in dq but one is positive and another one is negative...
The dq wave form properly not mainting constant sir plz kindly to say what is reason..??
GOOD JOB BRO keep going
Thank you