Hi,
If you have only 30$, I could offer you a simulink subsystem (I have used it in other project) which contains a PI adaptive controller based on IFT (Iterative Feedback Tunning) analisys.
Perhaps you could include it in your system.
If you are interested, contact me.
Best regards.