Skip to content
/ vsr53 Public
forked from IFAEControl/pyvsr53dl

Python package to interface with Thyracont's VSR53 pressure sensors via RS485 (VSR53DL) and USB (VSR53USB)

License

Notifications You must be signed in to change notification settings

lobis/vsr53

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version

Build and Test

This is a Python library to communicate with Thyracont's VSR53USB pressure gauge. It should also work with the VSR53DL model (over RS485) but I haven't tested it as I don't have access to one.

This library is a fork of this repository. All credits go to the original author.

The original library was designed for the RS485 protocol and does not work out of the box for the USB version of this sensor, however, with some minor modifications such as allowing the user to set the baudrate and updating the default value (to 9600 instead of 115200) it works perfectly.

Installation

This library is available in PyPI and can be installed with pip:

pip install vsr53

Usage

from vsr53 import VSR53USB

port = "/dev/ttyUSB0"  # replace with the device port of your gauge
with VSR53USB(port) as gauge:
    print(gauge.get_device_type())
    print(gauge.get_product_name())
    print(gauge.get_measurement_value())

About

Python package to interface with Thyracont's VSR53 pressure sensors via RS485 (VSR53DL) and USB (VSR53USB)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%