simple-pid
A simple and easy to use PID controller in Python. If you want a PID controller without external dependencies that just works, this is for you! The PID was designed to be robust with help from Brett Beauregards guide.
Usage is very simple:
from simple_pid import PID
pid = PID(1, 0.1, 0.05, setpoint=1)
v = controlled_system.update(0)
while True:
control = pid(v)
v = controlled_system.update(control)
Installation
To install, run:
python -m pip install simple-pid
Documentation
Documentation, including a user guide and complete API reference, can be found here.
Tests
This project has a test suite using pytest
. To run the tests, install pytest
and run:
pytest -v
License
Licensed under the MIT License.