A python driver for the Keller LD line of pressure sensors.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
example.py
kellerLD.py

README.md

KellerLD-python

A python module to interface with the LD line of pressure sensors from Keller. Tested on Raspberry Pi 3 with Raspbian.

The python SMBus library must be installed.

sudo apt-get install python-smbus

Usage

from kellerLD import KellerLD
sensor = KellerLD()

init()

Initialize the sensor. This needs to be called before using any other methods.

sensor.init()

Returns true if the sensor was successfully initialized, false otherwise.

read()

Read the sensor and update the pressure and temperature.

sensor.read()

Returns True if read was successful, False otherwise.

pressure()

Get the most recent pressure measurement.

sensor.pressure()

Returns the most recent pressure in bar. Call read() to update.

temperature()

Get the most recent temperature measurement.

sensor.temperature()

Returns the most recent temperature in degrees Centigrade. Call read() to update.