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-0.1.6.tar.gz (9.5 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-0.1.6-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: moons_motor-0.1.6.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

Hashes for moons_motor-0.1.6.tar.gz
Algorithm Hash digest
SHA256 8b39b27868925105103a1a328b7f633bac2c227f1a5319fbf4775649dab8180d
MD5 dfbdc7bda8b374561fe54cf9b53f4ed2
BLAKE2b-256 ed45844d2e4ecf00faf3ce0b0014b482c87d15d04f92d2d4a6b29ebd37434dd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moons_motor-0.1.6-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

Hashes for moons_motor-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 96386df0ceeeba1a6d53b7c78806f0dbfa41f70e9b1b229af6fd79da7f11af02
MD5 557dced62efe088c6a639ec5dcdea105
BLAKE2b-256 6b81b0b7dc280275c9327124634e2d42976652f69183d540b99f0cf09527e406

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