• fleck@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    5 days ago

    PIDs for can be very fun. And essentially its just 5 or so lines of code, which is something I wish they told us in uni (instead, it was mostly theory, as in the meme). I recently built a kiln which goes to 1000-something °C with a PID controller and I just set the parameters by vibes, not even some formal method. And it just works. So here is my resource: The (bit messy) controller code for my oven The code is obviously a bit more than those few lines, but I just wanted to say that the implementation is very simple, which I would have liked to know when I started out with this.

    Edit: just found a bug after looking at the code again haha, so thank you :D

    • ggtdbz@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 days ago

      Yeah I’ve been involved in stuff on that level by pulling in a library in a university project. But there were higher level research projects going on where they were going into real nitty gritty fine control, I think they had a control model with an obscene number of degrees (as in xth order physical model implemented as a PPIIIIDDD system or whatever). That was a little intuitive since there was a physical process that you can observe.

      But the theory is definitely something I’d like to at least understand a little