PymateIO-PID-controler

From pymate.io wiki
Revision as of 02:06, 30 June 2026 by Dodomi (talk | contribs)
Jump to navigation Jump to search


Software PID

The PymateIO includes the PID class (pid library). This controller have been deployed with success into the Plancha-CMS project.

The PID controler do use a Time to perform its treatments.

As for each PID Controller, the following parameter are required:

  • Kp : Proportional constant
  • Ki : Integral constant
  • Kd : Derivated constant

The software controler requires additional parameters:

  • dt: time (ms) between two consecutive measurement
  • measure_func : the function that returns the PID input value.
  • output_func : the function(value) called by the PID controler to set the output.
  • output_min : minimal value for the output.
  • output_max : maximal value for the output.

The PID controller starts when setting the setpoint (see setpoint(value) ) and stop when stop() is called.

{{{1}}}

PymateIO all right reserved © 2026 - Written by MCHobby for PymateIO