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. OpenHardware.io
  3. 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel

💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel

Scheduled Pinned Locked Moved OpenHardware.io
117 Posts 18 Posters 23.9k Views 17 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.
  • D DerManni

    @NeverDie
    Did you or anybody else could write to the NRF5xxx via the Arduino IDE and a ST-Link V2 programmer?
    I find the DK for approx. 32€ a little bit to expensive for just testing.

    Edit: Maybe this one could work:
    http://s.aliexpress.com/FRzU3miM

    Thanks.

    NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by
    #74

    @DerManni said in 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel:

    ST-Link V2 programmer

    Not me. As I said, I'm using the nRF52 DK as my programmer of choice. I think others may be using the ST-Link V2. Not 100% sure though.

    rmtuckerR 1 Reply Last reply
    0
    • NeverDieN NeverDie

      @DerManni said in 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel:

      ST-Link V2 programmer

      Not me. As I said, I'm using the nRF52 DK as my programmer of choice. I think others may be using the ST-Link V2. Not 100% sure though.

      rmtuckerR Offline
      rmtuckerR Offline
      rmtucker
      wrote on last edited by
      #75

      @NeverDie
      Yes i am using the STLink v2 without any problems.

      D 1 Reply Last reply
      1
      • rmtuckerR rmtucker

        @NeverDie
        Yes i am using the STLink v2 without any problems.

        D Offline
        D Offline
        DerManni
        wrote on last edited by
        #76

        @rmtucker Could you please explain in weich was you connect the STLINK to the NRF Module to usw the Arduino IDE. Thanks

        rmtuckerR 1 Reply Last reply
        0
        • D DerManni

          @rmtucker Could you please explain in weich was you connect the STLINK to the NRF Module to usw the Arduino IDE. Thanks

          rmtuckerR Offline
          rmtuckerR Offline
          rmtucker
          wrote on last edited by
          #77

          @DerManni

          STLink<----------------->NRF

          SWCLK<--------------->SWD
          SWDIO<---------------->SWIO
          3.3v<--------------------->3.3v
          GND<-------------------->GND

          1 Reply Last reply
          0
          • NeverDieN Offline
            NeverDieN Offline
            NeverDie
            Hero Member
            wrote on last edited by
            #78

            I received the version 9 PCB's today. Here's one assembled as a minimalist water leak sensor:
            0_1511408166526_v9_1.jpg
            0_1511408180982_v9_2.jpg

            There's now enough physical clearance between the male header leak detection pins and the CR2032 battery holder that I feel comfortable declaring the hardware as finished. :)

            1 Reply Last reply
            1
            • NeverDieN NeverDie

              @Nca78 said in 💬 CR2032 Small Wireless Temperature-Humidity Sensor:

              Also, what about moving the led to the center next to its resistor, it would leave enough space to squeeze in a SOT 23 ultra low power hall sensor and it's 100nF capacitor.

              Yes, with the Version 4 design serving as the basis, I think there will be enough room to do this.

              I'd also like to add a light sensor of some kind: something that will trigger an interrupt when, say, a refrigerator light goes on or off (for the case where the temperature node is in a refrigertor or freezer). Do you have any particular suggestions for that? A simple photoresistor, or would there be something better (lower current)?
              alt text

              NeverDieN Offline
              NeverDieN Offline
              NeverDie
              Hero Member
              wrote on last edited by NeverDie
              #79

              @NeverDie said in 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel:

              @Nca78 said in 💬 CR2032 Small Wireless Temperature-Humidity Sensor:

              Also, what about moving the led to the center next to its resistor, it would leave enough space to squeeze in a SOT 23 ultra low power hall sensor and it's 100nF capacitor.

              Yes, with the Version 4 design serving as the basis, I think there will be enough room to do this.

              I'd also like to add a light sensor of some kind: something that will trigger an interrupt when, say, a refrigerator light goes on or off (for the case where the temperature node is in a refrigertor or freezer). Do you have any particular suggestions for that? A simple photoresistor, or would there be something better (lower current)?
              alt text

              A photoresistor turns out to work just fine for binary detection of whether a light is on or off:
              0_1512275545150_photo_resistor.jpg
              I put it in one of the header pin hole pairs otherwise reserved for the leak detection pins and then ran the leak detection sketch. When a light goes on, the resistance of the photoresistor goes from about 20 megaohms in the dark down to well under 100K ohms (exactly amount depends on the light intensity) in the light. So, under light stimulus the photoresistor behaves essentially the same as leak detection pins which have come into contact with water. :)

              The one I used is this: https://www.digikey.com/product-detail/en/luna-optoelectronics/NSL-19M51/NSL-19M51-ND/5039794 Perhaps a cheaper photoresistor would have worked just as well, but for proof of concept prototyping I wanted to try this one, which had desirable specs.

              NeverDieN 1 Reply Last reply
              1
              • NeverDieN NeverDie

                @NeverDie said in 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel:

                @Nca78 said in 💬 CR2032 Small Wireless Temperature-Humidity Sensor:

                Also, what about moving the led to the center next to its resistor, it would leave enough space to squeeze in a SOT 23 ultra low power hall sensor and it's 100nF capacitor.

                Yes, with the Version 4 design serving as the basis, I think there will be enough room to do this.

                I'd also like to add a light sensor of some kind: something that will trigger an interrupt when, say, a refrigerator light goes on or off (for the case where the temperature node is in a refrigertor or freezer). Do you have any particular suggestions for that? A simple photoresistor, or would there be something better (lower current)?
                alt text

                A photoresistor turns out to work just fine for binary detection of whether a light is on or off:
                0_1512275545150_photo_resistor.jpg
                I put it in one of the header pin hole pairs otherwise reserved for the leak detection pins and then ran the leak detection sketch. When a light goes on, the resistance of the photoresistor goes from about 20 megaohms in the dark down to well under 100K ohms (exactly amount depends on the light intensity) in the light. So, under light stimulus the photoresistor behaves essentially the same as leak detection pins which have come into contact with water. :)

                The one I used is this: https://www.digikey.com/product-detail/en/luna-optoelectronics/NSL-19M51/NSL-19M51-ND/5039794 Perhaps a cheaper photoresistor would have worked just as well, but for proof of concept prototyping I wanted to try this one, which had desirable specs.

                NeverDieN Offline
                NeverDieN Offline
                NeverDie
                Hero Member
                wrote on last edited by NeverDie
                #80

                @NeverDie It appears that photoresistors of type 5539 and/or 5549 may work as well: https://www.aliexpress.com/item/Free-shipping-20pcs-5549-light-dependent-resistor-photoresistor-resistor-5mm-photosensitive-resistance-35513/32346773727.html?ws_ab_test=searchweb0_0,searchweb201602_4_10152_10065_5000015_10151_10344_10068_10130_10345_10324_10342_10547_10325_10343_10546_10340_10341_10548_10545_5130015_10541_10084_10083_10307_5690015_10539_5080015_10312_10059_10313_10314_10534_100031_10604_10603_10103_10605_5060015_10596_10142_10107,searchweb201603_12,ppcSwitch_4&algo_expid=14488cca-cb1a-4d45-b8d2-d8b444735f2a-16&algo_pvid=14488cca-cb1a-4d45-b8d2-d8b444735f2a&rmStoreLevelAB=2

                YveauxY 1 Reply Last reply
                0
                • Nca78N Offline
                  Nca78N Offline
                  Nca78
                  Hardware Contributor
                  wrote on last edited by
                  #81

                  @NeverDie and what is your approximative power consumption with the photoresistor ?

                  NeverDieN 1 Reply Last reply
                  0
                  • NeverDieN NeverDie

                    @NeverDie It appears that photoresistors of type 5539 and/or 5549 may work as well: https://www.aliexpress.com/item/Free-shipping-20pcs-5549-light-dependent-resistor-photoresistor-resistor-5mm-photosensitive-resistance-35513/32346773727.html?ws_ab_test=searchweb0_0,searchweb201602_4_10152_10065_5000015_10151_10344_10068_10130_10345_10324_10342_10547_10325_10343_10546_10340_10341_10548_10545_5130015_10541_10084_10083_10307_5690015_10539_5080015_10312_10059_10313_10314_10534_100031_10604_10603_10103_10605_5060015_10596_10142_10107,searchweb201603_12,ppcSwitch_4&algo_expid=14488cca-cb1a-4d45-b8d2-d8b444735f2a-16&algo_pvid=14488cca-cb1a-4d45-b8d2-d8b444735f2a&rmStoreLevelAB=2

                    YveauxY Offline
                    YveauxY Offline
                    Yveaux
                    Mod
                    wrote on last edited by
                    #82

                    @NeverDie When using a voltage-divider setup with the LDR you'll have better control over the tripping point and consume less standby power:

                    0_1512289467502_upload-3f3a91f9-2d14-4ceb-bcae-120d4f9022ed

                    Make sure to select an LDR with high resistance, like the 5549 in my example.

                    http://yveaux.blogspot.nl

                    1 Reply Last reply
                    1
                    • Nca78N Nca78

                      @NeverDie and what is your approximative power consumption with the photoresistor ?

                      NeverDieN Offline
                      NeverDieN Offline
                      NeverDie
                      Hero Member
                      wrote on last edited by
                      #83

                      @Nca78 said in 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel:

                      @NeverDie and what is your approximative power consumption with the photoresistor ?

                      With the photoresistor installed, current consumption for the entire node measures out at 4ua in the dark and 7.2ua in full saturation brightness. That compares to 3.9ua current consumption for the node with no photoresistor installed.

                      I'm still waiting for the I2C light sensor to arrive. However, as these photoresistors cost only a little more than 2 cents each for a pack of 50 (see above Aliexpress link), I think they're a reasonable choice for a refrigerator app, where it's going to be completely dark most of the time anyway.

                      Nca78N 1 Reply Last reply
                      1
                      • NeverDieN NeverDie

                        @Nca78 said in 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel:

                        @NeverDie and what is your approximative power consumption with the photoresistor ?

                        With the photoresistor installed, current consumption for the entire node measures out at 4ua in the dark and 7.2ua in full saturation brightness. That compares to 3.9ua current consumption for the node with no photoresistor installed.

                        I'm still waiting for the I2C light sensor to arrive. However, as these photoresistors cost only a little more than 2 cents each for a pack of 50 (see above Aliexpress link), I think they're a reasonable choice for a refrigerator app, where it's going to be completely dark most of the time anyway.

                        Nca78N Offline
                        Nca78N Offline
                        Nca78
                        Hardware Contributor
                        wrote on last edited by
                        #84

                        @NeverDie said in 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel:

                        I'm still waiting for the I2C light sensor to arrive. However, as these photoresistors cost only a little more than 2 cents each for a pack of 50 (see above Aliexpress link), I think they're a reasonable choice for a refrigerator app, where it's going to be completely dark most of the time anyway.

                        Yes it's nearly not changing the consumption in sleep so if you have only a basic use for dark/light it's a waste to use an i2c sensor, which will use more energy most of the time.

                        1 Reply Last reply
                        1
                        • NeverDieN Offline
                          NeverDieN Offline
                          NeverDie
                          Hero Member
                          wrote on last edited by NeverDie
                          #85

                          @nca78 What would be a good tiny buzzer to put on it, for making one of those ever popular location tags? I'm guessing something piezo? I'm not finding anything tiny though.

                          NeverDieN 1 Reply Last reply
                          0
                          • NeverDieN NeverDie

                            @nca78 What would be a good tiny buzzer to put on it, for making one of those ever popular location tags? I'm guessing something piezo? I'm not finding anything tiny though.

                            NeverDieN Offline
                            NeverDieN Offline
                            NeverDie
                            Hero Member
                            wrote on last edited by
                            #86

                            For instance, anything smaller than this?
                            https://www.aliexpress.com/item/2731HZ-3x4-5x1-9mm-Super-small-miniature-AAC-electromagnetic-DET402-G-1-SMD-Passive-buzzer-3/32839766133.html?spm=2114.search0204.3.177.AclxtY&ws_ab_test=searchweb0_0,searchweb201602_4_10152_10065_5000015_10151_10344_10068_10130_10345_10324_10342_10547_10325_10343_51102_10546_10340_10341_10548_10545_5130015_10541_10084_10083_10307_5690015_10539_5080015_10312_10059_10313_10314_10534_100031_10604_10603_10103_10605_10594_5060015_10596_10142_10107,searchweb201603_14,ppcSwitch_4_ppcChannel&algo_expid=692cffc2-e301-4616-a6f8-76921652c1ba-23&algo_pvid=692cffc2-e301-4616-a6f8-76921652c1ba&rmStoreLevelAB=0

                            Nca78N 1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              For instance, anything smaller than this?
                              https://www.aliexpress.com/item/2731HZ-3x4-5x1-9mm-Super-small-miniature-AAC-electromagnetic-DET402-G-1-SMD-Passive-buzzer-3/32839766133.html?spm=2114.search0204.3.177.AclxtY&ws_ab_test=searchweb0_0,searchweb201602_4_10152_10065_5000015_10151_10344_10068_10130_10345_10324_10342_10547_10325_10343_51102_10546_10340_10341_10548_10545_5130015_10541_10084_10083_10307_5690015_10539_5080015_10312_10059_10313_10314_10534_100031_10604_10603_10103_10605_10594_5060015_10596_10142_10107,searchweb201603_14,ppcSwitch_4_ppcChannel&algo_expid=692cffc2-e301-4616-a6f8-76921652c1ba-23&algo_pvid=692cffc2-e301-4616-a6f8-76921652c1ba&rmStoreLevelAB=0

                              Nca78N Offline
                              Nca78N Offline
                              Nca78
                              Hardware Contributor
                              wrote on last edited by
                              #87

                              @neverdie this looks pretty small for a buzzer already. Sorry no idea about smaller ones, but please post your results I'm interested :)

                              NeverDieN 2 Replies Last reply
                              0
                              • Nca78N Nca78

                                @neverdie this looks pretty small for a buzzer already. Sorry no idea about smaller ones, but please post your results I'm interested :)

                                NeverDieN Offline
                                NeverDieN Offline
                                NeverDie
                                Hero Member
                                wrote on last edited by NeverDie
                                #88

                                @nca78 Will do. I ordered 20 of them. Might be a nice addition on a leak detector also.

                                1 Reply Last reply
                                1
                                • NeverDieN Offline
                                  NeverDieN Offline
                                  NeverDie
                                  Hero Member
                                  wrote on last edited by NeverDie
                                  #89

                                  I finally received the MAX44009 board:
                                  https://www.aliexpress.com/item/Smart-Electronics-5PCS-lot-MAX44009-ambient-light-sensor-is-the-I2C-digital-output-module-development-board/32767691971.html?spm=a2g0s.9042311.0.0.sOFetX
                                  I'm able to read lux values by pulling A0 on the board to Vcc and using this library and sketch:
                                  https://github.com/dantudose/MAX44009/blob/master/Example/Luxmeter.ino
                                  Very easy. :)

                                  Nca78N 1 Reply Last reply
                                  1
                                  • NeverDieN NeverDie

                                    I finally received the MAX44009 board:
                                    https://www.aliexpress.com/item/Smart-Electronics-5PCS-lot-MAX44009-ambient-light-sensor-is-the-I2C-digital-output-module-development-board/32767691971.html?spm=a2g0s.9042311.0.0.sOFetX
                                    I'm able to read lux values by pulling A0 on the board to Vcc and using this library and sketch:
                                    https://github.com/dantudose/MAX44009/blob/master/Example/Luxmeter.ino
                                    Very easy. :)

                                    Nca78N Offline
                                    Nca78N Offline
                                    Nca78
                                    Hardware Contributor
                                    wrote on last edited by
                                    #90

                                    @neverdie you don't even need to bother with a lib, just 2 functions are enough.
                                    https://blog.kkessler.com/tag/max44009/

                                    1 Reply Last reply
                                    0
                                    • scalzS Offline
                                      scalzS Offline
                                      scalz
                                      Hardware Contributor
                                      wrote on last edited by scalz
                                      #91

                                      even if it's two functions only, if i need to reuse them in others sketch, I would prefer them in a lib. Only "one line" (include) in the sketch compared to x lines ;)

                                      1 Reply Last reply
                                      2
                                      • Nca78N Nca78

                                        @neverdie this looks pretty small for a buzzer already. Sorry no idea about smaller ones, but please post your results I'm interested :)

                                        NeverDieN Offline
                                        NeverDieN Offline
                                        NeverDie
                                        Hero Member
                                        wrote on last edited by NeverDie
                                        #92

                                        @nca78 said in 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel:

                                        @neverdie this looks pretty small for a buzzer already. Sorry no idea about smaller ones, but please post your results I'm interested :)

                                        Received it today. Putting just DC across it produces no sound at all. Driving it with a pulsed voltage (say 10K hertz at 50% duty cycle) directly from an arduino pin produces sound, but at very low volume. Since it draws 220ma with a straight 3v DC voltage across it, I'm guessing a current more like that is what it will take to get it to produce louder sound, but that's only just a wild guess.

                                        NeverDieN 1 Reply Last reply
                                        0
                                        • NeverDieN NeverDie

                                          @nca78 said in 💬 Multi-Sensor: Temp/Humidity/PIR/ Leak/Magnet/Light/Accel:

                                          @neverdie this looks pretty small for a buzzer already. Sorry no idea about smaller ones, but please post your results I'm interested :)

                                          Received it today. Putting just DC across it produces no sound at all. Driving it with a pulsed voltage (say 10K hertz at 50% duty cycle) directly from an arduino pin produces sound, but at very low volume. Since it draws 220ma with a straight 3v DC voltage across it, I'm guessing a current more like that is what it will take to get it to produce louder sound, but that's only just a wild guess.

                                          NeverDieN Offline
                                          NeverDieN Offline
                                          NeverDie
                                          Hero Member
                                          wrote on last edited by NeverDie
                                          #93

                                          I tried driving it from a load switch controlled by the arduino, and that helped increase the volume somewhat.

                                          Doing that, and using this script, I think it will be audible if you're in the same room as it (and if the room is otherwise quiet).

                                          long lastMicrosTime=0;  //timestamp in microseconds
                                          
                                          void setup() {
                                            pinMode(10,OUTPUT);
                                          }
                                          
                                          void loop() {
                                            for (int x=0;x<1000;x++) {
                                              digitalWrite(10,HIGH);
                                              lastMicrosTime=micros();
                                              while ((micros()-lastMicrosTime)<300) {} //wait until 300 microseconds have passed
                                              digitalWrite(10,LOW);
                                              while ((micros()-lastMicrosTime)<x) {} //wait until another x microseconds have passed
                                            }
                                          }
                                          

                                          So, if you were to use it as a locator beacon attached to something you wanted to find, it might be good enough for that.

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


                                          12

                                          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