chaz2x4 / brew_machine

0 stars 0 forks source link

Create a PID tuning loop #6

Closed chaz2x4 closed 3 years ago

chaz2x4 commented 4 years ago

Also build out tests for PID

chaz2x4 commented 4 years ago

We're going to use the Zielger-Nichols method for this https://en.wikipedia.org/wiki/Ziegler%E2%80%93Nichols_method

chaz2x4 commented 4 years ago

Theory right now (we'll update later if it works) is to write out a test that handles the PID controller.

1st step is going to be to figure out our Kp and Ku methods. We'll plan on incrementing by 0.1 steps every 100 milliseconds for now.

I'll program in a decay of the graph by 0.25 on the same 100ms cycle

chaz2x4 commented 3 years ago

Scrap the Ziegler Nichols method we're just going to do manual tuning to speed this up.