Skip to main content

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

To install, run:

pip install simple-pid

License

Licensed under the MIT License.

Project details


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.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_pid-0.1.2-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file simple-pid-0.1.2.tar.gz.

File metadata

  • Download URL: simple-pid-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for simple-pid-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8fe3121c9b999cf5d1515e0e9d069531f997ab8d551fd9ebd6d44c3964c074c7
MD5 3a52dfbfe92824bca890d4c94ed4e91e
BLAKE2b-256 70e3097c29f90441bb472d32648f90f47e5d3d44b77ea0282ff1f3cb2716dc72

See more details on using hashes here.

File details

Details for the file simple_pid-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for simple_pid-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3b7b9f4c2e7e7b6063657b1d3b239582317ab4dd4d72fd9a45f8ea86e5165278
MD5 0b20b5f9d944d786b27c75515b7b8dcf
BLAKE2b-256 761fa71e315e1cab46f7c046b897de49479c5570cd77d9dafede32b312e57315

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page