Skip to main content

Processed_PI_BigEasyDriver

Python class for continuous rotation of a PI controller regulated stepper motor in a separate process

Install

pip install ProcBigEasyDriver

Usage

Here's how this thing works. Once you initialize the object a second process is opened which toggles the step pin up and down at whatever interval is needed to reach to specified motor RPM. This is regulated by a PI controller. The speed and the microstepping regime used can be changed at anytime from the main process. The main process keeps control of the enable pin allowing the motor activity to be gated in the main process.

Basics

  import ProcBigEasyDriver as pbed
  from time import sleep

  #Init a stepper that turns at 10 rpm with no microstepping
  Stepper = pbed.ProcBigEasyDriver(step, direction, ms1, ms2, ms3, enable,
                                   microstepping=1, rpm=10, steps_per_rev=200,
                                   Kp=0.2, Ki=0.1)

  #Enable the big easy driver FETs
  Stepper.enable()

  #Let it go for 10s
  sleep(10)

  #Change the microstepping
  Stepper.set_microstep(2)
  sleep(10)

  #Speed it up to 20 rpm
  Stepper.set_rpm(20)
  sleep(10)

  #Stop the wheel (but keep the object active) for 10s
  Stepper.disable()
  sleep(10)

  #Turn it back on
  Stepper.enable()
  sleep(10)

  #Stop the wheel and release the pins (kill the object)
  Stepper.stop()

Contributors

Code was written and is maintained by (Matt Davenport)[https://github.com/mattisabrat/] (mdavenport@rockefeller.edu)

Metadata

Release files for ProcBigEasyDriver 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ProcBigEasyDriver 0.0.3
File Size Uploaded Provenance Actions
ProcBigEasyDriver-0.0.3.tar.gz 3.5 kB Without provenance Details for ProcBigEasyDriver-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ProcBigEasyDriver 0.0.3
File Interpreter ABI Platform Actions
ProcBigEasyDriver-0.0.3-py3-none-any.whl Python 3 none any Details for ProcBigEasyDriver-0.0.3-py3-none-any.whl

Total release size: 19.9 kB

Release files / ProcBigEasyDriver-0.0.3.tar.gz

Download URL ProcBigEasyDriver-0.0.3.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9bb27604cf5954dcb990aae9f8501defcaa7ff2d52d10ca66bfeafa9dd59ab3f
BLAKE2b-256 checksum
How to use checksums
64e46e851c26dfee3036ef6d5f486bb3e1bffd852f746c5cba27a9e4441a2bc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

Release files / ProcBigEasyDriver-0.0.3-py3-none-any.whl

Download URL ProcBigEasyDriver-0.0.3-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fc75ddaf4743bb1bea8331f39fc0026a50bd74f84151ab22345cec565513822
BLAKE2b-256 checksum
How to use checksums
0af66f8fef3d724db8c5ec4fb22a47baa78148d5cefb01d291f4f938dcd6567b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

Security for ProcBigEasyDriver 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page