TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Phenomenological Introduction to PID Controllers

92 点作者 vha3超过 3 年前

8 条评论

YZF超过 3 年前
I haven&#x27;t done PID for a looong time but the best method for tuning PID loops is to look at the frequency response, somewhat along these lines: <a href="https:&#x2F;&#x2F;eng.libretexts.org&#x2F;Bookshelves&#x2F;Industrial_and_Systems_Engineering&#x2F;Book%3A_Chemical_Process_Dynamics_and_Controls_(Woolf)&#x2F;09%3A_Proportional-Integral-Derivative_(PID)_Control&#x2F;9.04%3A_PID_tuning_via_Frequency_Responses_with_Bode_Plots" rel="nofollow">https:&#x2F;&#x2F;eng.libretexts.org&#x2F;Bookshelves&#x2F;Industrial_and_System...</a><p>This is much much better than the rules of thumb of increasing the proportional gain until the system becomes unstable etc. etc. You can tell what your gain and phase margins actually are which is difficult otherwise so you can push the correct parameters to the limit while maintaining margin.<p>There are also other approaches that rely on modelling the system and calculating the parameters based on the model... That can work but tends to be iffy for real world systems in my experience...
monkmartinez超过 3 年前
The old ship steering analogy:<p>P: is steering hard because you are off course.<p>I: is steering into the wind to counteract wind drift and into the current to counteract opposing currents as you move toward course.<p>D: is reducing steering input as you close on the intended course
评论 #29887576 未加载
oceanghost超过 3 年前
Please also see &quot;PID without a PHD&quot; (I am not affiliated with these people):<p><a href="https:&#x2F;&#x2F;wescottdesign.com&#x2F;articles&#x2F;pid&#x2F;pidWithoutAPhd.pdf" rel="nofollow">https:&#x2F;&#x2F;wescottdesign.com&#x2F;articles&#x2F;pid&#x2F;pidWithoutAPhd.pdf</a>
fortysixdegrees超过 3 年前
I would be interested to hear people here smarter than me explain why PID is better than some simple explicit control logic made by a person.<p>They work well, but you have to tune it properly and don&#x27;t have much flexibility to add in prior knowledge of non linearities etc which as a human we know about and know the complexities of.<p>I&#x27;ve found similar things with Kalman filters. Everyone is always keen to go PID, Kalman etc by default, but I&#x27;ve found getting them to behave correctly in complex systems can take ages and maybe never quite get there. Throw them out and do a few really simple explicit logic control steps like you would if you as a human were controlling it and bingo everything works great, the code is understandable by even non programmers as it&#x27;s explicit and easy to deal with.<p>Don&#x27;t get me wrong, I use all of the above, but I do find that PID and Kalman etc end up in places where a few if statements end up being just as good.<p>(Seriously not trying to flamebait here... Just never seen this discussed before)
评论 #29890889 未加载
评论 #29887347 未加载
评论 #29888705 未加载
评论 #29889320 未加载
评论 #29903899 未加载
condour75超过 3 年前
In case anyone else needs it, <a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;PID_controller" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;PID_controller</a>
synthos超过 3 年前
Control systems (analog) was one of the courses I did poorly in university. And of course, my first job after school was working on (digital) control systems! It turns out digital is a lot easier than analog (to me, at least).<p>A couple things I discovered:<p>- When changing setpoints for your controller it helps to slowly ramp them to prevent disturbing the system. Calculate a (end-start)&#x2F;steps and apply the delta every loop cycle.<p>- For integral wind-up, I found it more convenient to re-calculate the integral term when hitting a control limit.
entropicgravity超过 3 年前
When you get into the Z domain don&#x27;t forget to do your long division of the polynomials.
tanseydavid超过 3 年前
Very well-worded and understandable. Thanks for this.