Buckboost Converter with PID control

Hey,
I have a final project to make a Buckboost converter with PID controller. I want to make a buckboost with 24v in the output.
Example, when the input is 12 v, the Buckboost working for boost mode to 24v. When the input is 50v, the buckboost working for buck mode to 24v.
.
Can somebody help to gimme a reference of arduino code to autotuning like that?
.
.
I use Proteus and Arduino IDE for the simulation.

diofp writes:

Hey,
I have a final project to make a Buckboost converter with PID controller.

'Hey' to you also.
Is not the idea of a final project, assuming you mean final year or course project as part of your study mean you go and work to design and understand the project concepts, rather than saying, as you do ?

Can somebody help to gimme

And, what cheek, to ask using a nonsensical word "gimme".

Based on that, I would find it difficult to offer help, except to say, use search and thee shall find many articles on PID.
Algorithms using PID does not involve black magic.

Spend time to learn and understand rather than trying to get what you 'want' for free.


Paul - VK7KPA