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
pylmscontroller-1.1.tar.gz 18.7 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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