Skip to main content

A Python library for interfacing with the MKS Servo42C closed-loop stepper.

Project description

pyservo42c

This is a library for interfacing to the MKS Servo42C closed-loop steppe motor via UART.

See https://github.com/makerbase-mks/MKS-SERVO42C for details on the hardware.

Note the serial protocol spec claims to include a checksum at the end of response messages. This doesn't seem to be true in practice. Also the set-angle command only accepts two bytes in the "pulse number" field, not the four bytes the spec claims.

Many of the commands are implemented, but not all. Pull requests encouraged!

Modules

servo42c

This provides methods that generate and consume byte arrays for commanding the servo and interpreting results.

servo42cTCPUartBridge

This wraps servo42c and provides an interface to a UART-over-TCP bridge, used for testing.

servo42cUart

This wraps servo42c and provides a direct interface to a UART port.

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

pyservo42c-0.2.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

pyservo42c-0.2.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file pyservo42c-0.2.0.tar.gz.

File metadata

  • Download URL: pyservo42c-0.2.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pyservo42c-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1dfd3e01daae2291fd8f27289a25296943f2e4477086789ba551c5b2c786ed1e
MD5 cb5f03620da5d1957051150356d8f74f
BLAKE2b-256 7666b32d6b90a37d9b7ca9ded9a3e6f72f1af4fdb8432915c089e4f33bdd7d3b

See more details on using hashes here.

File details

Details for the file pyservo42c-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyservo42c-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pyservo42c-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62a4d7cd306ebaf72c4c41b2384599e1a7b339652754784695fbfbb553bc51a4
MD5 7a221eaebac5ef9c13a6b8f3e3b0a328
BLAKE2b-256 fb31fe5935c352188a00412ea6c2f415295b1e8cf9438337a382b257ca886adc

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