This is a python library for controlling the Moons' motor through the serial port.
Project description
Moons Motor
This is a python library for control moons motor through serial port.
Compatibility
Now only support Windows.
Installing
Install through pip
python -m pip install moons_motor
Usage
from motor import MoonsStepper, StepperModules, StepperCommand
import simulate
from time import sleep
motor = MoonsStepper(StepperModules.STM17S_3RN, "0403", "6001", "TESTA")
MoonsStepper.list_all_ports()
motor.connect()
motor.send_command(address="@", command=StepperCommand.JOG)
sleep(5)
motor.send_command(address="@", command=StepperCommand.STOP_JOG)
Tested Motor
- STM17S-3RN
Reference
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moons_motor-0.1.5.tar.gz
(9.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moons_motor-0.1.5.tar.gz.
File metadata
- Download URL: moons_motor-0.1.5.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7886a92584833fdde988180aa65040a8d9343b880442686ab5d9a9c75a0486d
|
|
| MD5 |
b910a3bbe79e25071a566f7d51b65e49
|
|
| BLAKE2b-256 |
e4e4aa580d3328c22afba611376d9e34a03829767a9659ec4b8e772df71dcf24
|
File details
Details for the file moons_motor-0.1.5-py3-none-any.whl.
File metadata
- Download URL: moons_motor-0.1.5-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
937a9f05a5fee272c3e37214490a8591fc37083b40640841297c41ceb04d9ae2
|
|
| MD5 |
71d576fa5fd437a8aadab98d49e8dea8
|
|
| BLAKE2b-256 |
8390b266d1ef00830355fdc533f4a4885ee034eb1ff61b95a26ece6464394ceb
|