This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
bms:guides:pid [2022/02/15 19:49] – [PID Regulator] mk | bms:guides:pid [2022/08/06 07:57] (current) – mk | ||
---|---|---|---|
Line 12: | Line 12: | ||
You can use 3 methods, P, PI or PID | You can use 3 methods, P, PI or PID | ||
- | === P-regulator == | + | ==== P-regulator |
A P-regulator, | A P-regulator, | ||
It will then take the output variable and add the error. If the output was 0, after the calculation it will be 3. | It will then take the output variable and add the error. If the output was 0, after the calculation it will be 3. | ||
Line 20: | Line 20: | ||
- | === Pseudo code === | + | ==== Pseudo code ==== |
On [[https:// | On [[https:// | ||
Line 43: | Line 43: | ||
- | === Proportional or P-band === | + | ==== Proportional or P-band |
- | === Integral or I-time === | + | ==== Integral or I-time |
- | === Derivative === | + | I or Integral, will make the output go faster, the longer it takes for the control variable to reach the setpoint. |
- | === Illustrative examble | + | === Practically explained |
- | With a little help from [[http:// | + | Where P will @@@@@@@@@@@@@@ ADD MORE TEKST HERE IN THE FUTURE @@@@@@@@@@@@ |
+ | |||
+ | ==== Derivative ==== | ||
+ | |||
+ | D or Derivative, is pretty much never used in in regulators used for BMS systems. | ||
+ | (Heating, cooling and air handling) | ||
+ | |||
+ | D will try to avoid an overshoot, by predicting where the output will be. | ||
+ | If set too high, it will slow the output too much, and " | ||
+ | |||
+ | === Practically explained === | ||
+ | If you have control variable of 20 degrees but setpoint is 23 degrees, the regulator will raise the output, eg. from 0 towards 100%. | ||
+ | If 50% is where the output needs to be for the control variable to stay at 23 degrees, and D is too low, the output will raise to 60% and control variable could reach 23,5, before it will lower the output and finally settle down. | ||
+ | See green line in graph above. | ||
+ | ==== Illustrative examble ==== | ||
+ | |||
+ | With a little help from [[http:// | ||
Theese simulations open out side this wiki, so you have to press back button to get back here. | Theese simulations open out side this wiki, so you have to press back button to get back here. | ||
What you can do is change the control variable and adjust parameters accordingly. | What you can do is change the control variable and adjust parameters accordingly. | ||
+ | |||
**TIP: Change control variable slowly to simulate a change in temperature or pressure.** | **TIP: Change control variable slowly to simulate a change in temperature or pressure.** | ||
+ | |||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | \\ | ||
+ | [[https:// | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | |||
~~DISCUSSION~~ | ~~DISCUSSION~~ |