Giter VIP home page Giter VIP logo

python-veml6070's Introduction

python-veml6070

ci

A Python library for accessing the VEML6070 digital UV light sensor from Vishay via python-smbus using the I2C interface.

Default settings are suitable for Raspberry Pi 2 and 3 and was successfully tested using a breakout.

I created this Python library in style of e.g. python-tsl2591 (of the TSL2591 light sensor) since I found either python code broken for my hardware or code targeted at Arduino.

Usage

Consult the datasheet, the application notes and see demo.py for clues how to use this library.

Not all functions of the chip are supported, especially not the interrupt handling since I had no use for this. Please send pull requests for improvements and bug fixes!

Serious Flaws before September 2019

In September 2019 it was discovered (and fixed) that:

  • previously the sensor was never shutdown between measurements which wastes power but still takes measurements successfully
  • the UVA light intensity was calculated wrongly (too high) for rset != RSET_240K due to wrong compensation: higher rset leads to higher sampling time leads to higher absolute ADC step counts which should lead to every ADC step indicating a smaller amount of W/(m*m) of UVA power and a higher precision of the final UVA power but it wrongly behaved the opposite way. The integration_time worked correctly all the time.

Develop

Run make help to find out about the available development commands.

License

Python files in this repository are released under the MIT license.

python-veml6070's People

Contributors

cmur2 avatar dependabot-preview[bot] avatar pyup-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-veml6070's Issues

Getting UV Index

Hi, thank you for your work. This library works ok in my setup, while others didn't. Do you know how can we convert the output to UV index? I need to report my readings to Wunderground, and they don't take w/m2 for UV readings.
Thanks again!

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

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.