br3ttb / Arduino-PID-Library

1.91k stars 1.1k forks source link

How to implement Interactive PID method with this library #131

Closed FelixWT closed 1 year ago

FelixWT commented 1 year ago

Hi, I'm working on PID Auto Tuning and I'm using Inflection Point method to determin the PID coefficient

the detail how it work is as link below https://blog.opticontrols.com/archives/477

since I'm using ZN method the correct equation should be as follow according to https://blog.opticontrols.com/archives/124/comment-page-1?unapproved=105207&moderation-hash=d1f7b1da31e051a5a7ef1a8725e8eb73#comment-105207 image

thus,there is a extra term compare to your Comput() function which is Derivative of Integral Error so when I'm computing should i add something likedOiTerm = iTerm-last_iTerm; to it?

side note: I'm not using P_ON_M beacuse as you discribe in your blog it only works for Integrating Processes, and I don't think heater temperature control is one of them, but I might be wrong

I apologize for asking something that isn't totally relate to your work but I really need some help Any advice is greatly appreciated

FelixWT commented 1 year ago

.