Spectral-BLDC
Python lib for controlling Spectral BLDC motor controllers over CAN bus. For more info about this API and all available commands check DOCS
Related projects
| Product | Description | Links |
|---|---|---|
| Spectral Micro BLDC Controller | Compact brushless motor controller with CAN bus, position/velocity/torque/impedance control modes | GitHub |
| SSG-48 Adaptive Electric Gripper | Adaptive electric gripper controllable over CAN bus | GitHub |
| MSG Gripper | Compliant AI stepper gripper with force control, open-source firmware, GUI and Python API; designed for assembly tasks and AI training | Store · GitHub · Docs |
| STEPFOC Stepper Controller | FOC-based stepper motor controller that turns low-cost steppers into high-performance robotic servos; CAN & UART, 14-bit encoder, open-source | Store · GitHub · Docs |
How to install
pip install Spectral-BLDC
Basic example
import Spectral_BLDC as Spectral
import time
Communication1 = Spectral.CanCommunication(bustype='slcan', channel='COM41', bitrate=1000000)
Motor1 = Spectral.SpectralCAN(node_id=0, communication=Communication1)
while True:
Motor1.Send_Respond_Encoder_data()
message, UnpackedMessageID = Communication1.receive_can_messages(timeout=0.2)
if message is not None:
Motor1.UnpackData(message,UnpackedMessageID)
print(f"Motor position is: {Motor1.position}")
print(f"Motor speed is: {Motor1.speed}")
else:
print("No message after timeout period!")
print("")
time.sleep(1 )
More examples
Check out the Examples folder for more examples!
Available examples:
-
Send_respond_1
-
Get_encoder_data
-
SSG48_gripper_test
This project is entirely open-source and free for all to use. Any support, whether through donations or advice, is greatly appreciated. Thank you!
Metadata
Release files for Spectral-BLDC 1.20
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 |
|---|---|---|---|---|
| spectral_bldc-1.20.tar.gz | 10.7 kB | Without provenance | Details for spectral_bldc-1.20.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spectral_bldc-1.20-py3-none-any.whl | Python 3 | none | any | Details for spectral_bldc-1.20-py3-none-any.whl |
Total release size: 20.1 kB
Release files / spectral_bldc-1.20.tar.gz
| Download URL | spectral_bldc-1.20.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ab8591cc1f387a62c20da31055fd399997e3b0bf49fafc0eccea43e7efafbd8
|
|
BLAKE2b-256 checksum How to use checksums |
b4168b86467724d9381fc089151e959eb3856b9b7318e69b6828587caf1c87da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / spectral_bldc-1.20-py3-none-any.whl
| Download URL | spectral_bldc-1.20-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c6cc713ea1196b6967e886089a519b954c1f47c3f1f87e56e254c469e50ba8b
|
|
BLAKE2b-256 checksum How to use checksums |
388be35863a990ed3ad99847c8d11a83e41219aa3bc8b2588c8e4ff6c6cb6bc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Security for Spectral-BLDC 1.20
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.