A simple, easy to use PID controller
Project description
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)
# assume we have a system we want to control in controlled_system
v = controlled_system.update(0)
while True:
# compute new ouput from the PID according to the systems current value
control = pid(v)
# feed the PID output to the system and get its current value
v = controlled_system.update(control)
Complete API documentation can be found here.
Installation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simple-pid-0.1.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for simple_pid-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60089c0fbfd70dad9e17fd805067dc44aeee166836a57a575bed4f46bdc4a6d5 |
|
MD5 | 3dec95375aed0589ca5301ce7ddc82fa |
|
BLAKE2b-256 | 33a8d3ea0a42c3d73fad90d96bcc1c01627a9df7bb1f31f9e6cae4a43df75fd5 |