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.4k 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
    #3

    Using a Arduino Pro Mini with BURNED FUSES, set to 1MHz I've built a low power battery sensor using the BH1750FVI. When using the statement "lightSensor.begin();" as in the example above, the BH1750FVI is set to continuous reading, hence will not sleep. Including the radio the measuread DC current when sleep() is 140μA and my 2 AA batteries will not last for more than maybe 1,5 years. However if I change that statement to "lightSensor.begin(BH1750_ONE_TIME_HIGH_RES_MODE);", the BH1750FVI device is automatically set to Power Down after measurement. I end up using about 6μA while sleeping which is a great improvement.My batteries will die due to old age and that's nice for the environment and to my wallet!

    1 Reply Last reply
    0
    • ร Offline
      ร Offline
      รอเรือ
      wrote on last edited by
      #4

      Ohh... I forgot to mention that I unsoldered the power regulator on the BH1750FVI and bridged Volt In with Volt Out. By doing that I hope that the BH1750FVI will work on lower voltages than specified. Time will tell.

      1 Reply Last reply
      0
      • ร 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


                            16

                            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