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.
  • 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
                    • NeverDieN NeverDie

                      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 Offline
                      Nca78N Offline
                      Nca78
                      Hardware Contributor
                      wrote on last edited by
                      #94

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

                      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).

                      Guess this is not made for Vietnam then :D
                      I supposed this type of buzzer is made more for user feedback for things like touch sensors, than for raising alert.

                      NeverDieN 1 Reply Last reply
                      1
                      • Nca78N Nca78

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

                        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).

                        Guess this is not made for Vietnam then :D
                        I supposed this type of buzzer is made more for user feedback for things like touch sensors, than for raising alert.

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

                        @nca78 What strange is that if I cup my hand over it, it actually becomes louder. Not sure what's up with that. So, maybe I'm just not driving it right.

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

                          Here's the latest version of the PIR sensor embodiment:
                          0_1514738791273_compactPIR.jpg
                          It runs from two CR2032's.

                          Very compact! :)

                          ahmedadelhosniA 1 Reply Last reply
                          3
                          • NeverDieN NeverDie

                            Here's the latest version of the PIR sensor embodiment:
                            0_1514738791273_compactPIR.jpg
                            It runs from two CR2032's.

                            Very compact! :)

                            ahmedadelhosniA Offline
                            ahmedadelhosniA Offline
                            ahmedadelhosni
                            wrote on last edited by
                            #97

                            @neverdie how do you connect thr two Cr batteries ?

                            Another question ? I read in another comments that you need 100-200 uF capacitor so that the radio can work since thr CR battery wont be strong enough. Did you add this ?

                            NeverDieN 1 Reply Last reply
                            0
                            • ahmedadelhosniA ahmedadelhosni

                              @neverdie how do you connect thr two Cr batteries ?

                              Another question ? I read in another comments that you need 100-200 uF capacitor so that the radio can work since thr CR battery wont be strong enough. Did you add this ?

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

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

                              how do you connect thr two Cr batteries ?

                              This was recently discussed in the Bluetooth action! thread.

                              1 Reply Last reply
                              0
                              • NeverDieN NeverDie

                                @nca78 What strange is that if I cup my hand over it, it actually becomes louder. Not sure what's up with that. So, maybe I'm just not driving it right.

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

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

                                @nca78 What strange is that if I cup my hand over it, it actually becomes louder. Not sure what's up with that. So, maybe I'm just not driving it right.

                                Isn't that the principle for most speakers, using a sound box ?

                                1 Reply Last reply
                                1
                                • T Offline
                                  T Offline
                                  Tiwo85
                                  wrote on last edited by
                                  #100

                                  Wich board do you use in arduino? I can only use Waveshare BLE4.0. At Generic etc. It seems, that the oscillator doesn't work probably.

                                  NeverDieN 1 Reply Last reply
                                  0
                                  • T Tiwo85

                                    Wich board do you use in arduino? I can only use Waveshare BLE4.0. At Generic etc. It seems, that the oscillator doesn't work probably.

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

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

                                    Wich board do you use in arduino? I

                                    Not sure what you're asking.

                                    T 1 Reply Last reply
                                    0
                                    • NeverDieN NeverDie

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

                                      Wich board do you use in arduino? I

                                      Not sure what you're asking.

                                      T Offline
                                      T Offline
                                      Tiwo85
                                      wrote on last edited by Tiwo85
                                      #102

                                      @neverdie I mean this:
                                      0_1517742775930_ArduinoBoard.png
                                      When I use Generic nRF51 or something else, the onboard LED turns on and doesn't turns off. When I use Waveshare BLE400 the sketch works as usual

                                      NeverDieN 1 Reply Last reply
                                      0
                                      • T Tiwo85

                                        @neverdie I mean this:
                                        0_1517742775930_ArduinoBoard.png
                                        When I use Generic nRF51 or something else, the onboard LED turns on and doesn't turns off. When I use Waveshare BLE400 the sketch works as usual

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

                                        @tiwo85
                                        I use this:
                                        0_1517752283964_arduino_board_type.png
                                        You download it from @d00616 on github.

                                        1 Reply Last reply
                                        1
                                        • NeverDieN NeverDie

                                          For PIR capability, the multi-sensor can simply plug into this PIR module: https://www.openhardware.io/view/420/AM612-Passive-Infrared-Sensor-Breakout-Board

                                          T Offline
                                          T Offline
                                          Tiwo85
                                          wrote on last edited by
                                          #104

                                          @neverdie do you have a working example sketch. I try the example sketch from the 10years pir sensor an d modify a little bit, but it doesn't work. The sketch awake every 5 minutes and send the state from the pir and that's it.

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