I was working on designing a feedback compensator for my buck converter. I decided to use the compensator circuit in the feedback and give its output to Arduino which gives the duty cycle as shown below. The Arduino senses the voltage and directly generates a duty cycle without any other calculations. I have figured out my transfer functions and is of the form shown below. :
An example of how my compensator equation will look like.
This compensator will give me some analog circuit based on OP-amps, capacitors and resistors.
I have seen some people implementing PID controllers in other applications, but I want to ask if an Arduino would be sufficient implementing the transfer function of this type. Also, which one should be preferred in this case...should I go for the analog hardware or the digital one in this case.
Finally, I want to ask that if I want to implement the given transfer function is a microcontroller than do I have to process it in the time domain i.e. converting this complete equation in time domain and then performing the calculations like integrations derivative etc.???
I need some suggestions as I am new into this.