Skip to content

ProcessSensingTechnologies/luminox_usart_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Luminox USART Communication with Python

See UG-001_LuminOx_UserGuide for full implementation details for LOX-01

See UG-007_LOX-02-S_UserGuide for full implementation details for LOX-02-S

See UG-008_LOX-02-F_UserGuide for full implementation details for LOX-02-F

This repository provides Python code for communicating with Luminox devices.

Getting Started

Prerequisites

  • Python 3.11 or newer (https://www.python.org/downloads/)
    • Older Python revisions are untested but may work.
  • Python library for serial communication:
    • Recommended: pyserial
  • A USB-to-ttl converter compatible with your system and the Luminox.
    • Recommended: PST Dev kit - Luminox

Installation

Clone this repository:

git https://github.com/ProcessSensingTechnologies/luminox_usart_python.git

Install dependencies:

It is highly recommended to use a virtual environment to isolate your project's dependencies and avoid conflicts with other Python projects.

cd luminox_usart_python

python -m pip install -r requirements.txt

Usage

A basic example that simply polls the sensor for O2 percent readings can be found in example_basic.py

For more in-depth usage the Lox class in luminox.py can be used. It's functionality is demonstrated in example_1.py.

Additional Notes

Contributing

Please feel free to open issues for support or to suggest changes.

License

This repository is licensed under the BSD 3-Clause License. See the LICENSE file for details.