Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.1 instead.

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()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylmscontroller-1.0.3.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

pylmscontroller-1.0.3-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file pylmscontroller-1.0.3.tar.gz.

File metadata

  • Download URL: pylmscontroller-1.0.3.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.14 Darwin/25.5.0

File hashes

Hashes for pylmscontroller-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b2c36622dd449b2ea365e7617454b57ada797c41698626344031083fe4ebbe9d
MD5 d39c3690fee57a88af4cd6888fd854a7
BLAKE2b-256 a14dbe81cf8603e804b9234a90edabf36939861ab6dabb4395ca6c8ed1cd6ca4

See more details on using hashes here.

File details

Details for the file pylmscontroller-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pylmscontroller-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.14 Darwin/25.5.0

File hashes

Hashes for pylmscontroller-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 65460fcfcc7965cdb65f55efc10e5c9c82775cdc9bf3bc15a486fd7e8bfc02df
MD5 e13e96fe019725561d007986237c176c
BLAKE2b-256 3ec0d8d3a7b9d0b3fa0ff931bed28bb729330c8ba86f00cd95a483ce6cf7591d

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1

2 files

This release

1.0.3 This release

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

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