BH1750 | Arduino library for the digital light sensor breakout

 by   claws C++ Version: 1.3.0 License: MIT

kandi X-RAY | BH1750 Summary

kandi X-RAY | BH1750 Summary

BH1750 is a C++ library typically used in Internet of Things (IoT), Arduino applications. BH1750 has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

The BH1750 has six different measurement modes which are divided in two groups; continuous and one-time measurements. In continuous mode the sensor continuously measures lightness value. In one-time mode, the sensor makes only one measurement and then goes into Power Down mode.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              BH1750 has a low active ecosystem.
              It has 229 star(s) with 104 fork(s). There are 19 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 12 open issues and 30 have been closed. On average issues are closed in 103 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of BH1750 is 1.3.0

            kandi-Quality Quality

              BH1750 has 0 bugs and 0 code smells.

            kandi-Security Security

              BH1750 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              BH1750 code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              BH1750 is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              BH1750 releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of BH1750
            Get all kandi verified functions for this library.

            BH1750 Key Features

            No Key Features are available at this moment for BH1750.

            BH1750 Examples and Code Snippets

            No Code Snippets are available at this moment for BH1750.

            Community Discussions

            QUESTION

            Read a word (2 byte) without providing a register address from userspace
            Asked 2021-Oct-17 at 11:01

            I am trying to read out an i2c ambient light sensor BH1750 from C in userspace. I am using a BeagleBone pocket with Linux.

            The Datasheet says, that after a measurement operation the result needs to be read with the following i2c sequence: S Adr Rd (A) (Data) A (Data) NA P.

            The issue I ran into: All examples/commands I have found either are only reading 1 byte or are requiring a register address to read more.

            The closest I found was the following command: i2c_master_recv(). However my interpretation of the documentation is that this command is used in kernel-device-drivers.

            How can I issue such a I2C-Read-Sequence from Userspace?

            ...

            ANSWER

            Answered 2021-Oct-17 at 11:01

            I was able to solve it using this comment from Ian Abbott:

            Assuming the I2C controller has been opened, and the I2C_SLAVE ioctl command has been used to set Adr, The read syscall with a length of 2 will perform the above I2C read transaction. – Ian Abbott Oct 4 at 13:45

            Here is a Logicanalyzer-Trace of the resulting I2C communication:

            Source https://stackoverflow.com/questions/69420114

            QUESTION

            How to get data from I2C device BH1750 over USB-I2C module in Python3?
            Asked 2020-Apr-05 at 12:11

            I am Linux user and I have those devices:
            USB-I2C convertor:
            https://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm
            GY-30 I2C module:
            https://5.imimg.com/data5/TY/AK/MY-1833510/gy-30-bh1750-intensity-digital-light-sensor-module.pdf
            And GY-30 is with BH1750 Ambient light sensor:
            https://www.mylms.cz/wp-content/uploads/2017/07/bh1750-datasheet.pdf

            I need to read Luxs from BH1750 over virtual serial port in Python3, but I am not sure how to do it. I ended with something like this:

            ...

            ANSWER

            Answered 2020-Apr-05 at 12:11

            There is final solution:

            Source https://stackoverflow.com/questions/61028083

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install BH1750

            (For Arduino >= 1.5.x) Install this package by searching for it in the Arduino Library Manager and then clicking install. Alternatively, this library can be installed manually by clicking "Clone or download" -> "Download ZIP" button. Then open Arduino IDE, click Sketch -> Include library -> Add .ZIP library and select the downloaded archive. (For Arduino < 1.5.x) Download this package as an archive by clicking "Clone or download" -> "Download ZIP" button. Then extract the archive to <Your User Directory>/My Documents/Arduino/libraries/ folder and rename it to BH1750. Restart IDE. The following YouTube video (specifically from 7:20 onwards) provides a good overview of manually installing this library and loading an example using the Arduino IDE. Information about the library installation process - https://www.arduino.cc/en/Guide/Libraries.
            (For Arduino >= 1.5.x) Install this package by searching for it in the Arduino Library Manager and then clicking install. Alternatively, this library can be installed manually by clicking "Clone or download" -> "Download ZIP" button. Then open Arduino IDE, click Sketch -> Include library -> Add .ZIP library and select the downloaded archive.
            (For Arduino < 1.5.x) Download this package as an archive by clicking "Clone or download" -> "Download ZIP" button. Then extract the archive to <Your User Directory>/My Documents/Arduino/libraries/ folder and rename it to BH1750. Restart IDE.
            The code in this project can be built locally using the arduino-cli tool. The tool can be installed using the instructions here. Once you have the tool installed you can compile the examples scripts using the convenience script (ci/compile-examples.bash). This script performs the same actions as the project's continuous integration compile checks.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link