Coder Social home page Coder Social logo

sensirion / python-i2c-sf06-lf Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 3.0 6.64 MB

Sensirion Liquid Flow I2C driver for Python

Home Page: https://sensirion.github.io/python-i2c-sf06-lf/

License: BSD 3-Clause "New" or "Revised" License

Shell 3.14% Python 96.86%
python i2c driver sensor flow liquid-flow sensor-bridge linux ld20-2600b ld20-0600l

python-i2c-sf06-lf's Introduction

Python I2C Driver for Sensirion SF06-LF

This repository contains the Python driver to communicate with a Sensirion sensor of the SF06-LF family over I2C.

SF06-LF picture

Click here to learn more about the Sensirion SF06-LF sensor family.

Not all sensors of this driver family support all measurements. In case a measurement is not supported by all sensors, the products that support it are listed in the API description.

Supported sensor types

Sensor name I²C Addresses
SLF3C-1300F 0x08
SLF3S-1300F 0x08
SLF3S-0600F 0x08
SLF3S-4000B 0x08
LD20-0600L 0x08
LD20-2600B 0x08

The following instructions and examples use a SLF3C-1300F.

Connect the sensor

You can connect your sensor over a SEK-SensorBridge. For special setups you find the sensor pinout in the section below.

Sensor pinout

sensor wiring picture

Pin Cable Color Name Description Comments
1 NC Do not connect
2 green SDA I2C: Serial data input / output
3 red VDD Supply Voltage 3.2V to 3.8V
4 black GND Ground
5 yellow SCL I2C: Serial clock input
6 NC Do not connect

Documentation & Quickstart

See the documentation page for an API description and a quickstart example.

Contributing

We develop and test this driver using our company internal tools (version control, continuous integration, code review etc.) and automatically synchronize the master branch with GitHub. But this doesn't mean that we don't respond to issues or don't accept pull requests on GitHub. In fact, you're very welcome to open issues or create pull requests :-)

Check coding style

The coding style can be checked with flake8:

pip install -e .[test]  # Install requirements
flake8                  # Run style check

In addition, we check the formatting of files with editorconfig-checker:

pip install editorconfig-checker==2.0.3   # Install requirements
editorconfig-checker                      # Run check

License

See LICENSE.

python-i2c-sf06-lf's People

Contributors

leoniefierz avatar psachs avatar rol-la avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-i2c-sf06-lf's Issues

"pip install" does not work - sensirion requirement missing

Hello,

I tried to install the sensirion_i2c_sf06_lf according to the instructions here: https://sensirion.github.io/python-i2c-sf06-lf/installation.html , but I cannot succeed to install it, because I keep getting the error message in the picture below:
image

Could you please help me?
I need to be able to control (start measurements, save and extract data etc.) the SLF3S-1300F sensor from python, using the SCC1-USB cable. Do you have a working example for this?

Thank you for your time and help!

Best regards,
Paul

usage with i2c multiplexers

Would you please consider adding a minimal python example implementation for multiple sensors using an i2c mux (e.g., TCA9548A), such as the Arduino example. We haven't been able to reach the sensors in the TCA9548A beyond the one in channel 0, and even there, the behaviour is not consistent. This request might be more applicable to other sensors, if addressed for the sensirion_i2c_driver, too. In any case, the docs here and for the i2c_driver are lacking clear guidance for applications needing i2c multiplexing. Thank you

Micropython Implementation of Python-i2c-sf06-If

I have been trying to use the SLF3S-1300F Liquid Flow Sensor with an ESP32-S2 over I2C, but have been experiencing alot of issues with getting it to communicate on the bus when i stubbled across this python implementation. Has this been ported or able to be ported easily to Micropython? I realize that this is off topic but thought i would ask

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.