Skip to main content

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

  1. STM17S-3RN

Reference

Project details


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-1.0.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moons_motor-1.0.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file moons_motor-1.0.0.tar.gz.

File metadata

  • Download URL: moons_motor-1.0.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.6

File hashes

Hashes for moons_motor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 aaddbc141fab0004fdea2c26b8399d0ffc37f29ff1d38007ebd5b5ea8c33f225
MD5 a08d6c0a198cbe0c0cbc6862f7ebea3e
BLAKE2b-256 432666c96ae7b19f115448a6850ee47a038139c456762741e3a013539b7b1a01

See more details on using hashes here.

File details

Details for the file moons_motor-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: moons_motor-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.6

File hashes

Hashes for moons_motor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fd850def6b07e3e019192320d3064499f5e4aceb459c80245f022840b129908
MD5 90efe553131552f7357a62a241778ba6
BLAKE2b-256 549c6afbb026f945552217c150bcc4a4e596aa38544536931d0c5770e25a56b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page