PI Controller Software implementation for any microcontroller using C
ฝัง
- เผยแพร่เมื่อ 27 ส.ค. 2024
- in this video, i am explaining how to to write pi controller code(software) for any microcontroller using C programming language. discretization of pi controller is explained in detail. iam also demonstrating everything using a psim simulation of closed loop buck converter .
Feel free to ask any doubt regrading this video. Thank you for watching.
Background music- NCS
If you like my work, please do consider subscribing to this channel.Thank you. th-cam.com/channels/58DFky5Fm9AxH9UmWHHYmQ.html
clear and straight to the point, great video sir.
Thank you very much. Really appreciated. Please continue to make such videos...
glad it helped!
I would like to thank you for your kindness to explain, it is very interesting and useful. Is it possible to continue publishing such lectures?
Yes, absolutely
nice work
Thank you
Great Video. Can you make more video like this using C language in PSIM. and can you help where to learn this C language for PSIM .
Why is there no multiplication by Ts in the integrator?
thanks
😭 you saved my life
Thanks
Nice explanation sir..
Can you please give some idea about how to apply Ziegler Nichols method in PSIM for PI controller...
thank you & good luck
very good work!
Thank you
Thank you for the awesome video!
Question: where did you define the sampling time for the discrete controller?
simulation step size is the sampling time, which we set in the simulation control block available in psim
If I use the PI controller block in PSIM, how do I find the Gain and Time Constant Value?
You use classical control techniques such as root locus and Nyquist plot (with delay) and then convert the controller to discrete domain using tustin's method.
Thank you
CAN U please show how to do pi tuning in MATLAB Simulink in any of the grid connected model
thank you too much
hello it could be a funny question but where did "T/2" go in coding ??
Ki*T/2 again become another constant and i taken this value as ki in coding
Tech Simulator I understand thank you
Allah razı olsun kral güzel soru
@Tech simulator can I implement PI controller in microcontroller please make one video on this topic also generate the PWM singal
will try
what's timestep do you setup ?
can we do this in LTSpice @TechSimulator
how??
what is the value of 'integral', it is defined as double, mean to say that it might have some numerical value, if there's no numerical value, then how it is working without the value.
initial value of intehral is 0. once the code is running it starts getting updated
question about transformation to n domain, where did Kp go?, you never added it back (the e(n)*Kp)
I have added it when i did the demonstration. Check from time 09.00
@@TechSimulator I missed it thank you!
can you add derivative? (pid closed loop)
Thank you, what is the initial value of integral variable ? is it Zero or same as the Setpoint ?
You can keep it zero
All static variables are initiated as zero by default, if not specifically assigned
Can you please share the ieee paper which you referred??? It will be a great help
I havnt refered any paper for this. I just made it myself. But if i find any paper which expalains the same, i will share
can u please convert and share c code in m file format
sir. can u input value all component control, i need example with value sir. and can calculate with formula.
sorry, i didn get you question
Same type of simulation can we do in matlab
By using discrete PID by c program
It doesn't matter what form of integration is used. Irritating computer voice, annoying music background
Sorry for the bad audio.
Integration matters when u implement PR controller. The system become unstable for some particular integration methods.
Voice and music don’t matter but the knowledge does. Thank you for the video.
Thanks brother
Why did the trapezoidal rule and bilinear transformation get the same result for integral discretization ?