Python interface to Loadstar Sensors USB devices.
Project description
About
- Name: loadstar_sensors_interface
- Version: 0.2.0
- Description: Python interface to Loadstar Sensors USB devices.
- License: BSD 3-Clause License
- URL: https://github.com/janelia-pypi/loadstar_sensors_interface_python
- Author: Peter Polidoro
- Email: peter@polidoro.io
- Copyright: 2022 Howard Hughes Medical Institute
- Reference: [Loadstar Sensors](https://www.loadstarsensors.com/)
- Dependencies:
- serial_interface
Example Usage
from loadstar_sensors_interface import LoadstarSensorsInterface
dev = LoadstarSensorsInterface() # Try to automatically detect port
dev = LoadstarSensorsInterface(port='/dev/ttyUSB0') # Linux specific port
dev = LoadstarSensorsInterface(port='/dev/tty.usbmodem262471') # Mac OS X specific port
dev = LoadstarSensorsInterface(port='COM3') # Windows specific port
dev.tare()
sensor_value = dev.get_sensor_value()
model = dev.get_model()
id = dev.get_id()
units = dev.get_units()
load_capactiy = dev.get_load_capacity()
gain = dev.get_gain()
Installation
https://github.com/janelia-pypi/python_setup
Linux
udev rules
sudo cp 77-loadstar-sensors.rules /etc/udev/rules.d/
pip
python3 -m venv ~/venvs/loadstar_sensors_interface
source ~/venvs/loadstar_sensors_interface/bin/activate
pip install loadstar_sensors_interface
guix
Setup guix-janelia channel:
https://github.com/guix-janelia/guix-janelia
guix install python-loadstar-sensors-interface
Windows
python3 -m venv C:\venvs\loadstar_sensors_interface
C:\venvs\loadstar_sensors_interface\Scripts\activate
pip install loadstar_sensors_interface
Test
guix shell picocom
picocom -b 9600 -f n -y n -d 8 -p 1 -c /dev/ttyUSB0
?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for loadstar_sensors_interface-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a793629d8afc3d25d762c369532ffed574295337bb1e0c962dd4c2fa0ea048 |
|
MD5 | 4ecb0ad2fae7cc4dbc72b72c565936be |
|
BLAKE2b-256 | 1b3c0f335e3e0f98c1a73c02c557b6cfd3fa2bb655e8b6bd4fc77b8764d06d49 |
Close
Hashes for loadstar_sensors_interface-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0547dc83a0c6b66603dc718600b6e638a6273daf2ce37bfcf6c0dfbed9e1d958 |
|
MD5 | 389e6a5377e14a8fd2b7a8a2fdb47f3b |
|
BLAKE2b-256 | 6bb066a5caba8c96a4e024127df8d8b5b8ca2d66cea2f6f92708c1c4ae984a7a |