Python scripts
All demos and tools are in this python module.
software/
motkin_pcb/
__init__.py
client.py
protocol.py
demo_sine_position.py
demo_motor_coupling.py
demo_motor_tone.py
monitor_zero_torque.py
plot_current_step_response.py
measure_host_timing.py
| Script | Purpose |
|---|---|
demo_sine_position.py |
Move both motors through a sinusoidal position trajectory. |
demo_motor_coupling.py |
Couple the two motors so each follows the other's motion. |
demo_motor_tone.py |
Generate an audible tone with alternating motor current. |
monitor_zero_torque.py |
Display motor state while continuously commanding zero torque. |
plot_current_step_response.py |
Apply a square-wave current target and plot the response. |
measure_host_timing.py |
Measure the Python command loop and USB echo latency. |
Place new controller scripts here and import the client with:
from motkin_pcb import MotorUsbController
The client checks readiness and faults automatically in initialize() and
update(). A fault prints its cause and raises an error to stop the command loop.
See the USB protocol for the API and packet format.
Opening a serial connection uses the existing pyserial dependency. Plotting
also uses matplotlib.
Metadata
Release files for motkin-pcb 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| motkin_pcb-1.1.1.tar.gz | 13.1 kB | With provenance | Details for motkin_pcb-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| motkin_pcb-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for motkin_pcb-1.1.1-py3-none-any.whl |
Total release size: 28.4 kB
Release files / motkin_pcb-1.1.1.tar.gz
| Download URL | motkin_pcb-1.1.1.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cbe31495548fc367f19b02a0048c7a16acce8b58f65839350f1d8225ff9788f
|
|
BLAKE2b-256 checksum How to use checksums |
fd4146ad76e4e066c3888190d708dd8096b8b0198c510a0b42afe9de2a4e1c04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logRelease files / motkin_pcb-1.1.1-py3-none-any.whl
| Download URL | motkin_pcb-1.1.1-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d34460a2642f3c22d743a224ae52d16d4fffc6e6985dccdc9add03df5429275
|
|
BLAKE2b-256 checksum How to use checksums |
4c26ccf65cae4bdbe076382a412d188fd3a98e5d5cdd172146b46c51d0f7c2fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logSecurity for motkin-pcb 1.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for motkin_pcb-1.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logA 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.