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

ความคิดเห็น • 54

  • @TechSimulator
    @TechSimulator  3 ปีที่แล้ว +3

    If you like my work, please do consider subscribing to this channel.Thank you. th-cam.com/channels/58DFky5Fm9AxH9UmWHHYmQ.html

  • @arturmagnus6674
    @arturmagnus6674 3 ปีที่แล้ว +1

    clear and straight to the point, great video sir.

  • @chinmoytahbildar3278
    @chinmoytahbildar3278 2 ปีที่แล้ว

    Thank you very much. Really appreciated. Please continue to make such videos...

  • @engg.w1983
    @engg.w1983 ปีที่แล้ว

    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?

  • @aninstone5216
    @aninstone5216 4 ปีที่แล้ว

    nice work

  • @md.rezanulhaque1062
    @md.rezanulhaque1062 3 ปีที่แล้ว

    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 .

  • @doquockhoa
    @doquockhoa 3 หลายเดือนก่อน

    Why is there no multiplication by Ts in the integrator?
    thanks

  • @onlytruth9321
    @onlytruth9321 2 ปีที่แล้ว

    😭 you saved my life

  • @bhavyapandya2361
    @bhavyapandya2361 3 ปีที่แล้ว

    Nice explanation sir..
    Can you please give some idea about how to apply Ziegler Nichols method in PSIM for PI controller...

  • @energeiamohammed308
    @energeiamohammed308 5 ปีที่แล้ว

    thank you & good luck

  • @stefano.a
    @stefano.a 4 ปีที่แล้ว

    very good work!

  • @lorhancosta622
    @lorhancosta622 4 ปีที่แล้ว

    Thank you for the awesome video!
    Question: where did you define the sampling time for the discrete controller?

    • @TechSimulator
      @TechSimulator  3 ปีที่แล้ว +3

      simulation step size is the sampling time, which we set in the simulation control block available in psim

  • @PK-mh1ir
    @PK-mh1ir 3 ปีที่แล้ว +1

    If I use the PI controller block in PSIM, how do I find the Gain and Time Constant Value?

    • @BalajiSankar
      @BalajiSankar 3 ปีที่แล้ว

      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.

  • @engg.w1983
    @engg.w1983 ปีที่แล้ว

    Thank you

  • @ashishshah8650
    @ashishshah8650 3 ปีที่แล้ว

    CAN U please show how to do pi tuning in MATLAB Simulink in any of the grid connected model

  • @achraf2699
    @achraf2699 3 ปีที่แล้ว

    thank you too much

  • @ahmetpehlivan5494
    @ahmetpehlivan5494 4 ปีที่แล้ว +1

    hello it could be a funny question but where did "T/2" go in coding ??

    • @TechSimulator
      @TechSimulator  4 ปีที่แล้ว +1

      Ki*T/2 again become another constant and i taken this value as ki in coding

    • @ahmetpehlivan5494
      @ahmetpehlivan5494 4 ปีที่แล้ว

      Tech Simulator I understand thank you

    • @kubilayakbulut5302
      @kubilayakbulut5302 7 หลายเดือนก่อน

      Allah razı olsun kral güzel soru

  • @viralvideo1694
    @viralvideo1694 2 ปีที่แล้ว

    @Tech simulator can I implement PI controller in microcontroller please make one video on this topic also generate the PWM singal

  • @chunshouse7937
    @chunshouse7937 2 ปีที่แล้ว

    what's timestep do you setup ?

  • @vr0sh7
    @vr0sh7 10 หลายเดือนก่อน

    can we do this in LTSpice @TechSimulator

  • @vijaykumardubey1807
    @vijaykumardubey1807 4 ปีที่แล้ว

    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.

    • @TechSimulator
      @TechSimulator  3 ปีที่แล้ว

      initial value of intehral is 0. once the code is running it starts getting updated

  • @timilebar
    @timilebar 4 ปีที่แล้ว

    question about transformation to n domain, where did Kp go?, you never added it back (the e(n)*Kp)

    • @TechSimulator
      @TechSimulator  4 ปีที่แล้ว +1

      I have added it when i did the demonstration. Check from time 09.00

    • @timilebar
      @timilebar 4 ปีที่แล้ว

      @@TechSimulator I missed it thank you!

  • @NoahsArtistry
    @NoahsArtistry 3 ปีที่แล้ว

    can you add derivative? (pid closed loop)

  • @eng.shh80
    @eng.shh80 3 ปีที่แล้ว

    Thank you, what is the initial value of integral variable ? is it Zero or same as the Setpoint ?

    • @TechSimulator
      @TechSimulator  3 ปีที่แล้ว

      You can keep it zero

    • @TheCzarsoham
      @TheCzarsoham 3 ปีที่แล้ว

      All static variables are initiated as zero by default, if not specifically assigned

  • @shibabratasarangi
    @shibabratasarangi 4 ปีที่แล้ว

    Can you please share the ieee paper which you referred??? It will be a great help

    • @TechSimulator
      @TechSimulator  3 ปีที่แล้ว

      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

  • @ashishshah8650
    @ashishshah8650 3 ปีที่แล้ว

    can u please convert and share c code in m file format

  • @marliusardi9973
    @marliusardi9973 3 ปีที่แล้ว

    sir. can u input value all component control, i need example with value sir. and can calculate with formula.

    • @TechSimulator
      @TechSimulator  3 ปีที่แล้ว

      sorry, i didn get you question

  • @raviteja5684
    @raviteja5684 3 ปีที่แล้ว

    Same type of simulation can we do in matlab

    • @raviteja5684
      @raviteja5684 3 ปีที่แล้ว

      By using discrete PID by c program

  • @odissey2
    @odissey2 4 ปีที่แล้ว

    It doesn't matter what form of integration is used. Irritating computer voice, annoying music background

    • @TechSimulator
      @TechSimulator  4 ปีที่แล้ว

      Sorry for the bad audio.

    • @TechSimulator
      @TechSimulator  4 ปีที่แล้ว

      Integration matters when u implement PR controller. The system become unstable for some particular integration methods.

    • @AliAusAachen
      @AliAusAachen 4 ปีที่แล้ว +3

      Voice and music don’t matter but the knowledge does. Thank you for the video.

    • @TechSimulator
      @TechSimulator  4 ปีที่แล้ว

      Thanks brother

    • @artline242
      @artline242 3 ปีที่แล้ว

      Why did the trapezoidal rule and bilinear transformation get the same result for integral discretization ?