Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Announcements
  3. 💬 Light Level Sensor - BH1750

💬 Light Level Sensor - BH1750

Scheduled Pinned Locked Moved Announcements
15 Posts 9 Posters 4.3k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ร Offline
    ร Offline
    รอเรือ
    wrote on last edited by
    #5

    Another important note... If doing it the way I suggested below, You will need to reconfigure the BH1750FVI before every reading. Something like this will do:

    lightSensor.configure(BH1750_ONE_TIME_HIGH_RES_MODE);
    delay(500); // Allow some time
    uint16_t lux = lightSensor.readLightLevel();// Get Lux value
    

    Cheers!

    1 Reply Last reply
    0
    • riochickenR Offline
      riochickenR Offline
      riochicken
      wrote on last edited by
      #6

      Hi,

      Is there a way to combine this sketch and sensor with the Atmospheric Pressure since they both use the same A4 and A5 connections on the Arduino...

      Thanks!

      mfalkviddM 1 Reply Last reply
      0
      • riochickenR riochicken

        Hi,

        Is there a way to combine this sketch and sensor with the Atmospheric Pressure since they both use the same A4 and A5 connections on the Arduino...

        Thanks!

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #7

        @riochicken yes. They both use the i2c bus, which supports multiple devices.

        1 Reply Last reply
        0
        • riochickenR Offline
          riochickenR Offline
          riochicken
          wrote on last edited by
          #8

          @mfalkvidd : Cool! So just combine the sketches and go?!?!?!!?!

          Thanks!

          mfalkviddM 1 Reply Last reply
          1
          • riochickenR riochicken

            @mfalkvidd : Cool! So just combine the sketches and go?!?!?!!?!

            Thanks!

            mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #9

            @riochicken yup. You're welcome :)

            1 Reply Last reply
            0
            • meanmrgreenM Offline
              meanmrgreenM Offline
              meanmrgreen
              wrote on last edited by
              #10
              This post is deleted!
              1 Reply Last reply
              0
              • checkupC Offline
                checkupC Offline
                checkup
                wrote on last edited by
                #11

                The BH1750FVI IC can handle 4.5V max and the normal operating voltage is 2.4V-3.6V.
                So it should be ok to desolder the voltage regulator and drive this thing from the 2xAlkaline or 3xNIMH

                1 Reply Last reply
                0
                • Dennis van der WolfD Offline
                  Dennis van der WolfD Offline
                  Dennis van der Wolf
                  wrote on last edited by
                  #12

                  Hi,

                  I have connected my BH1750 to an Arduino nano as indicated above. After that i uploaded the sketch. I defined a node id 16 and child id 1. Nothing is happend. When i read the log it's says child id 255
                  debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;TSP:MSG:BC
                  19:55:26debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;TSP:MSG:READ 16-16-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
                  19:55:25debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;!TSP:MSG:SEND 0-0-16-16 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=fail:0
                  19:55:24debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;TSP:MSG:GWL OK
                  19:55:24debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
                  19:55:24debug [pimatic-mysensors]: <- I_LOG_MESSAGE 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=16)

                  I don't know what i did wrong. Anyone an idea?

                  1 Reply Last reply
                  0
                  • checkupC Offline
                    checkupC Offline
                    checkup
                    wrote on last edited by
                    #13

                    try to flash the "clear eeprom" sketch from the mysensors library and try again with your sketch.

                    Dennis van der WolfD 1 Reply Last reply
                    0
                    • checkupC checkup

                      try to flash the "clear eeprom" sketch from the mysensors library and try again with your sketch.

                      Dennis van der WolfD Offline
                      Dennis van der WolfD Offline
                      Dennis van der Wolf
                      wrote on last edited by
                      #14

                      @checkup Hi, i have done that a few times now. Unfortunately, with the same result.

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        kiesel
                        wrote on last edited by
                        #15

                        What's the expected value range for this sensor in the evening with some lights on? It's not dark here atm but I am getting ca 10 lux only. Any ideas?

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        19

                        Online

                        11.7k

                        Users

                        11.2k

                        Topics

                        113.1k

                        Posts


                        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • MySensors
                        • OpenHardware.io
                        • Categories
                        • Recent
                        • Tags
                        • Popular