Skip to main content

PyLMSController

Python library for ALPhANOV's LMS controller.

Installation

The library can be installed using pip:

pip install pylmscontroller

Requirements

This library requires the following packages:

  • pyserial

Usage example

An example script is available in this repo.

List of available properties

from pylmscontroller import (
    LMSController,
    ControlMode,
    MotorState,
)

c = LMSController("/dev/ttyUSB0")
print("Version: ", c.version)
print("LED Control Mode:", c.led_control)
print("LED is active:", c.led_activation)
print("LED Current (mA):", c.led_current)
print("Motors Control Mode", c.motors_control_mode)
print("Motor 1 Position:", c.motor_1_position)
print("Motor 2 Position:", c.motor_2_position)
print("Motor 3 Position:", c.motor_3_position)

LED Control

from pylmscontroller import LMSController, ControlMode

c = LMSController('/dev/ttyUSB0')
print("Setting LED active, current 40 mA.")
c.led_control = ControlMode.SOFTWARE
c.led_activation = True
c.led_current = 40.0
c.apply()

Motor Control

from pylmscontroller import (
    LMSController,
    ControlMode,
    MotorState,
)

c = LMSController('/dev/ttyUSB0')
print("Setting Motors' position to IN/OUT/OUT.")
c.motors_control_mode = ControlMode.SOFTWARE
c.motor_1_position = MotorState.SLIDE_IN
c.motor_2_position = MotorState.SLIDE_OUT
c.motor_3_position = MotorState.SLIDE_OUT
c.apply()

Metadata

Release files for pylmscontroller 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylmscontroller 1.1
File Size Uploaded Provenance Actions
pylmscontroller-1.1.tar.gz 18.7 kB Without provenance Details for pylmscontroller-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pylmscontroller 1.1
File Interpreter ABI Platform Actions
pylmscontroller-1.1-py3-none-any.whl Python 3 none any Details for pylmscontroller-1.1-py3-none-any.whl

Total release size: 40.8 kB

Release files / pylmscontroller-1.1.tar.gz

Download URL pylmscontroller-1.1.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8c8409dff2b6a51db63dc21751bc262ec608b543c50c4e92318965a658528c9d
BLAKE2b-256 checksum
How to use checksums
41f0107ce1cb04989efef150d342cc28e2c252c7d78748937cfabbcf8471ab09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.14 Darwin/25.5.0

Release files / pylmscontroller-1.1-py3-none-any.whl

Download URL pylmscontroller-1.1-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0997e5617ec29cc2a3f3ddbabdf81f728d0d4fd3e3182807260c3d87dddc1cb1
BLAKE2b-256 checksum
How to use checksums
877c387672eb21d926f63d9d4c5469d23d198c08888bd24bac3c27bad65821ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.14 Darwin/25.5.0

Security for pylmscontroller 1.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page