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.1.tar.gz
(18.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylmscontroller-1.1.tar.gz.
File metadata
- Download URL: pylmscontroller-1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c8409dff2b6a51db63dc21751bc262ec608b543c50c4e92318965a658528c9d
|
|
| MD5 |
145a378da6d715a03834396cea6afdf6
|
|
| BLAKE2b-256 |
41f0107ce1cb04989efef150d342cc28e2c252c7d78748937cfabbcf8471ab09
|
File details
Details for the file pylmscontroller-1.1-py3-none-any.whl.
File metadata
- Download URL: pylmscontroller-1.1-py3-none-any.whl
- Upload date:
- Size: 22.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0997e5617ec29cc2a3f3ddbabdf81f728d0d4fd3e3182807260c3d87dddc1cb1
|
|
| MD5 |
626a69d7a25d04fa11b2e7704914973c
|
|
| BLAKE2b-256 |
877c387672eb21d926f63d9d4c5469d23d198c08888bd24bac3c27bad65821ca
|