you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 7 months ago* (last edited 7 months ago) (1 child)

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

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 7 months 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

  • source
  • parent