A Python interface for the STSPIN stepper motor drivers from STMicroelectronics (ST).
The STSPIN family of stepper motor drives has a lot of really nice built-in functions that You normally must implement in Python. Position counter Advanced commands such as go_to, go_home
This library has been developed and tested using the L6470HTR circuit connected via SPI to a Raspberry Pi 4 with Raspbian Bookworm. This will probably work with most circuits in this family, but scaling of some values might need adjustment.
Documentation on the L6470 circuit can be downloaded here: https://www.st.com/en/motor-drivers/l6470.html SparkFun has developed a really nice board ned AutoDriver for playing with this circuit, but this product is now retired. https://github.com/sparkfun/L6470-AutoDriver ST has an evaluation board called EVAL6470H https://www.st.com/en/evaluation-tools/eval6470h.html
This is a fork from the st-spin package https://github.com/m-laniakea/st_spin by eir. But it has been re-worked from the ground up to be more pythonic and to handle most of the commands.
Our purpose with this library was to solve our internal needs. We use this for internally developed lab and production equipment. We have no affiliation with STMicroelectronics.
Development
This project uses Ruff for linting and formatting, run automatically as a pre-commit hook.
To set it up, install the dev dependencies and enable the git hook:
pip install -e ".[dev]"
pre-commit install
Ruff will then check and format the staged files on every commit. You can also run the hooks manually against all files:
pre-commit run --all-files
Metadata
Release files for spin-stepper 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spin_stepper-0.1.0.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spin_stepper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.9 kB
Release files / spin_stepper-0.1.0.tar.gz
| Download URL | spin_stepper-0.1.0.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6bb4eb5bee0b2d90bdeabb5be36e9373c681f63d871fbd93e8966298d9da809
|
|
BLAKE2b-256 checksum How to use checksums |
a2aefb2910ffbc51fe1cb7b7aad22d5ad93b9a698c532de0c9589c3e1e113782
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / spin_stepper-0.1.0-py3-none-any.whl
| Download URL | spin_stepper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73029c8bd9691d591110b0ee38ad55272216590f282553ab00794a41805b6d30
|
|
BLAKE2b-256 checksum How to use checksums |
d48dcef4b482d9e39bd0cb5a4268fd7769d66dbc5fec9ccd7d00458629c273a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|