TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Control theory for fun and profit

195 pointsby evanweaveralmost 5 years ago

16 comments

rlandalmost 5 years ago
For a deeper dive, I can recommend the Astrom and Murray book. It&#x27;s free:<p><a href="http:&#x2F;&#x2F;www.cds.caltech.edu&#x2F;~murray&#x2F;amwiki&#x2F;index.php?title=Second_Edition" rel="nofollow">http:&#x2F;&#x2F;www.cds.caltech.edu&#x2F;~murray&#x2F;amwiki&#x2F;index.php?title=Se...</a><p>This subject is tightly coupled with system modeling, and can touch many different domains:<p><pre><code> Cruise Control Bicycle Dynamics Operational Amplifier Circuits Computing Systems and Networks Atomic Force Microscopy Drug Administration Population Dynamics </code></pre> Cheap computers are making it easy to make controllers that can reliably control systems with hundreds or thousands of variables and unknown dynamics.
dreamcompileralmost 5 years ago
PID loops are to control theory what PHP is to computer science: It barely scratches the surface but it sort of works some of the time.<p>If you <i>really</i> explore control theory you&#x27;ll learn when the P or the I or the D is unnecessary. Or when you need a second derivative (not just the first). And it&#x27;ll often give you closed-form solutions for the coefficients so you&#x27;re not just blindly hunting around in parameter space.
评论 #23580220 未加载
carapacealmost 5 years ago
I can recommend &quot;Feedback Control for Computer Systems, Introducing Control Theory to Enterprise Programmers&quot; by Philipp Janert
rozgoalmost 5 years ago
Control theory for fun can be really fun. Using control systems for solving problems you are familiar with can help develop an intuition, that you can then map to other problem domains. Years ago a peer at LucasArts taught me how to use PIDs for game cameras, and I&#x27;ve used them everywhere since.<p>Very simple rules can create lifelike emergent behavior. This is an example of 2 simple motors using PID to try to target a red dot, in 3D, with gravity on: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=8hfKs02QHR4&amp;list=PLpDgOnZpfh6E3uxv4OYbmEugYsaJJLa3L&amp;index=6&amp;t=0s" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=8hfKs02QHR4&amp;list=PLpDgOnZpfh...</a><p>I can watch control systems all day.
评论 #23579664 未加载
occamrazoralmost 5 years ago
They say they use a PID controller, but don’t write about the next step: how to choose the parameters for the controller?
评论 #23577435 未加载
评论 #23577096 未加载
评论 #23578170 未加载
评论 #23577007 未加载
评论 #23578409 未加载
评论 #23578840 未加载
评论 #23599532 未加载
kqralmost 5 years ago
In relation to this, I&#x27;ve relatively recently discovered statistical process control (SPC) and the common process behaviour charts (also known as control charts). Donald Wheeler has shown that by taking the detection limits of these charts and turning them into compensation thresholds, they can turn into very powerful process controllers, too! (And maybe even better than the standard PID controller -- without the hunt for parameters.)<p>Took me a while to find the article, but here it is: <a href="http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20160828042756&#x2F;https:&#x2F;&#x2F;www.qualitydigest.com&#x2F;inside&#x2F;operations-column&#x2F;071116-process-monitor-charts.html" rel="nofollow">http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20160828042756&#x2F;https:&#x2F;&#x2F;www.qualit...</a><p>The general idea is that PID controllers make unnecessary adjustments in response to regular, small, expected fluctuations in the input. These adjustments frequently increase variation beyond what a more tempered approach would have.
评论 #23583778 未加载
solumosalmost 5 years ago
I&#x27;m always curious about delving deeper into the history of control theory. Specifically, the work pertaining to Cybernetics in the late 40s&#x2F;50s. Has anyone gone down that rabbit hole and found anything interesting?
评论 #23579843 未加载
评论 #23599554 未加载
carlosfalmost 5 years ago
I have mixed feelings about control theory (education). On one hand, the maths are fun, on the other hand:<p>0 - For simple things PIDs work well, but then you don&#x27;t need an entire course on Control Theory to learn how PIDs work.<p>1 - Most books focus too much on maths an very little on applications. You&#x27;ll see the same toy examples repeated over and over in literature.<p>2 - For more complex things related to CT that&#x27;s even worse. I&#x27;ve read some Multi-variable Control Theory books that were 100% maths, 0% on how to apply the goddamn thing you&#x27;re learning.<p>3 - Complex CT techniques are often fragile (because you&#x27;re modeling systems with high order polynomials), so most people just skip to using Machine Learning.<p>4 - You often need to make too many assumptions about a system to apply CT techniques.<p>I&#x27;ve actually used CT for a few things related to electronics circuits in my life, but overall I think most courses I took in university (Analog CT and Digital CT, Multivariate and Adaptive CT) were complete overkill and way too much theory without practical insights.
评论 #23581405 未加载
ithkuilalmost 5 years ago
Another trick for reducing tail latency with minimal utilization increase is to fire the second call earlier but send a cancellation signal when the first response arrives (e.g. a udp packet is usually good enough).<p>This works when the cost of managing the request queue is low relative to the coat of serving the requests themselves (usually true whenever there is some IO involved).
thelittlenagalmost 5 years ago
At work we have a problem in a different domain that I had planned to use an approach like this on. The extra resources that folks have linked to or provided are quite helpful. Thank you!
ezconnectalmost 5 years ago
There was a youtube video series that explains the PID control system very well. It was a professor standing in front of a whiteboard, half body shot and the videos are 10 to 15mins long and about 20 of them. It&#x27;s now gone I wished bookmarks are forever. It&#x27;s probably been deleted or made private. He explained the concept very well and the length of the video is just enough so you can absorb what was discussed and take a pause before playing the next video.
评论 #23589688 未加载
p4bl0almost 5 years ago
I recently discussed about fuzzy logic with a colleague, and it seems to me it could be applied here for such controllers. The advantage with fuzzy logic controllers is that you do not have to know the system that well in advance. I just looked for a short video intro and found this if anyone is interested: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=rln_kZbYaWc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=rln_kZbYaWc</a>
nullcalmost 5 years ago
I for one am hoping to see a Zachtronics-like game where you get presented a chemical factory and then <i>program</i> all the relevant control logic.<p>Maybe part of the game could be determining where to add instrumentation of various kinds or making changes to the process. Extra fun is when the process behaviour depends on feedstock properties that aren&#x27;t directly observable or environmental conditions.
Scarbuttalmost 5 years ago
What&#x27;s the catch with this database? skimming the website, it seems to promise too much. Impressive if all those features work well together as advertised.
评论 #23580416 未加载
pidtuneralmost 5 years ago
As a control engineer and main developer of <a href="https:&#x2F;&#x2F;pidtuner.com" rel="nofollow">https:&#x2F;&#x2F;pidtuner.com</a>, I never expected control theory to be widely used outside the industrial world (specially for solving certain CS problems)
in9almost 5 years ago
are took longer