GithubHelp home page GithubHelp logo

enjoyneering / bh1750fvi Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 3.0 175 KB

This is an Arduino library for the ROHM BH1750FVI Ambient Light Sensor

C++ 100.00%
bh1750fvi light arduino-library bh1750 gy-30 gy-302 arduino

bh1750fvi's People

Contributors

enjoyneering avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bh1750fvi's Issues

Sensitivity compensation

Thanks for developing this library. I just bought a breakout board with BH1750FVI and found this library works great!

But one thing I found is that readLightLevel gives a very different value when the sensitivity is changed from 1 to another. I believe the reason is that, in the readLightLevel method, rawLightLevel is multiplied by _sensitivity. If I divided by _sensitivity, it could give me consistent values regardless of the sensitivity. Could you take a look? Thanks in advance.

integrationTime in readLightLevel

Dear @enjoyneering,

was it your intention that other modes than BH1750_ONE_TIME_HIGH_RES_MODE_2, BH1750_ONE_TIME_LOW_RES_MODE do have a integration time greater than zero?
My understanding is that in continuous operation mode you don't have to necessarily wait before reading out the sensor.

If it wasn't your intention you could add a break statement after each case of switch(_sensorResolution). If it is your intention you might want to adjust the documentation string of readLightLevel accordingly.

Thanks for consideration and kind regards,
randombitflip

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.