Skip to content

A python driver for the Keller LD line of pressure sensors.

License

Notifications You must be signed in to change notification settings

bluerobotics/KellerLD-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KellerLD-python

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

See the Keller Communication Protocol 4LD-9LD document for more details on the I2C communication protocol, and the Keller 4LD-9LD Datasheet for sensor specification details.

Requirements

The python SMBus library must be installed.

sudo apt-get install python-smbus

Installation

Run the following to install KellerLD-python

python3 setup.py install --user

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.

About

A python driver for the Keller LD line of pressure sensors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages