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
    #45

    Now reads temperature and humidity from the si7021 and sends the values to Domoticz for graphing:
    0_1510597422867_TempHum.png

    1 Reply Last reply
    0
    • G Offline
      G Offline
      ghiglie
      wrote on last edited by
      #46

      ...another n00b question: what are the PCB dimensions?

      atmega328p serial killer
      HomeAssistant / gateway: ESP8266 & NRF24L01+ gateway

      NeverDieN 1 Reply Last reply
      0
      • G ghiglie

        ...another n00b question: what are the PCB dimensions?

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

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

        ...another n00b question: what are the PCB dimensions?

        The diameter is 27.15mm.

        G 1 Reply Last reply
        0
        • NeverDieN NeverDie

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

          ...another n00b question: what are the PCB dimensions?

          The diameter is 27.15mm.

          G Offline
          G Offline
          ghiglie
          wrote on last edited by
          #48

          @NeverDie Thanks! I'll ask the fab if they can do it without charging extra costs. Or I'll "square" it - maybe with a hole in the angles to screw it. Really like this design.

          atmega328p serial killer
          HomeAssistant / gateway: ESP8266 & NRF24L01+ gateway

          NeverDieN 1 Reply Last reply
          0
          • G ghiglie

            @NeverDie Thanks! I'll ask the fab if they can do it without charging extra costs. Or I'll "square" it - maybe with a hole in the angles to screw it. Really like this design.

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

            @ghiglie What is it that you'd want to screw it to? It might be easier to just tape it or glue it in place. It's light enough that it wouldn't need much holding strength. Screwing may be overkill.

            G 1 Reply Last reply
            0
            • NeverDieN NeverDie

              @ghiglie What is it that you'd want to screw it to? It might be easier to just tape it or glue it in place. It's light enough that it wouldn't need much holding strength. Screwing may be overkill.

              G Offline
              G Offline
              ghiglie
              wrote on last edited by
              #50

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

              @ghiglie What is it that you'd want to screw it to? It might be easier to just tape it or glue it in place. It's light enough that it wouldn't need much holding strength. Screwing may be overkill.

              I was thinking about the top of a door... You'r right, I overestimated its weight.

              atmega328p serial killer
              HomeAssistant / gateway: ESP8266 & NRF24L01+ gateway

              NeverDieN 1 Reply Last reply
              0
              • G ghiglie

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

                @ghiglie What is it that you'd want to screw it to? It might be easier to just tape it or glue it in place. It's light enough that it wouldn't need much holding strength. Screwing may be overkill.

                I was thinking about the top of a door... You'r right, I overestimated its weight.

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

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

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

                @ghiglie What is it that you'd want to screw it to? It might be easier to just tape it or glue it in place. It's light enough that it wouldn't need much holding strength. Screwing may be overkill.

                I was thinking about the top of a door... You'r right, I overestimated its weight.

                If you've never tried them, these things are great:
                https://www.amazon.com/Command-Poster-Hanging-60-Pairs-17024-60ES/dp/B01FIK56Q4/ref=sr_1_3?ie=UTF8&qid=1510769859&sr=8-3&keywords=3m%2Bcommand%2Bmounting&th=1
                They have a lot of holding power (more than ample for one of these sensors), and yet they can be cleanly removed without damaging the surface you hang it on.

                3M also has a velcro-like version so that you can attach, then detach and re-attach as much as you want.

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

                  First, the good news: it works! :) I've uploaded photos of the version 7 board that I just today received and put together. It powered up without a hitch and started sending temperature and humidity values to Domoticz like a champ. The one caveat is that I will need to increase the board diameter by a couple of millimeters, as there presently just isn't enough proper physical separation between the supportive male leak detection pins and the CR2032 battery holder. So, I will do that, and I will post a version 9 after I have received and tested the improved boards.

                  1 Reply Last reply
                  1
                  • NeverDieN NeverDie

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

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

                    @ghiglie What is it that you'd want to screw it to? It might be easier to just tape it or glue it in place. It's light enough that it wouldn't need much holding strength. Screwing may be overkill.

                    I was thinking about the top of a door... You'r right, I overestimated its weight.

                    If you've never tried them, these things are great:
                    https://www.amazon.com/Command-Poster-Hanging-60-Pairs-17024-60ES/dp/B01FIK56Q4/ref=sr_1_3?ie=UTF8&qid=1510769859&sr=8-3&keywords=3m%2Bcommand%2Bmounting&th=1
                    They have a lot of holding power (more than ample for one of these sensors), and yet they can be cleanly removed without damaging the surface you hang it on.

                    3M also has a velcro-like version so that you can attach, then detach and re-attach as much as you want.

                    G Offline
                    G Offline
                    ghiglie
                    wrote on last edited by
                    #53

                    @NeverDie Thanks! Here in Italy they's sold with another name, but it's still a 3M branded one. I'll look for a pack! :)

                    atmega328p serial killer
                    HomeAssistant / gateway: ESP8266 & NRF24L01+ gateway

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

                      I have uploaded version 9. This should fix the physical clearance issue. Also, I upgraded the cap to be a 1206 220uF ceramic capacitor, as the cost is nearly the same as for an 0805 100uF capacitor. I should think that 220uF will offer plenty of reserve for the future when the battery ultimately develops a high internal resistance.

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

                        More good news: I today received the PCB for a revision of my PIR module that's meant to be compatible with this Multi-Sensor. I just now did a dry-fitting, and, indeed, it should all fit together just fine:
                        0_1510859291669_PIR_dryFit.jpg
                        That means the entire PIR sensor can be quite small and compact! :)

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

                          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 1 Reply Last reply
                          1
                          • NeverDieN Offline
                            NeverDieN Offline
                            NeverDie
                            Hero Member
                            wrote on last edited by NeverDie
                            #57

                            I have an experimental version in the works which uses a micro USB connector instead of the 10-pin connector. The advantage is that it can be connected from the side rather than above, which means the PIR sensor can be snuggled up close to the rest of the Multi-Sensor PCB and then permanently soldered into place:
                            0_1511026956948_tempHum_v10.png
                            The result would be an even more compact PIR sensor.

                            Once there's an OTA bootloader, though, this issue will become moot, and so I think for most people the 10-pin solution will be easier, especially for noobs.

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

                              @nca78 Which do you think would be the best accelerometer to use? If affixed to a garbage can, for instance, it should be able to detect the trash can being emptied by the garbage truck.

                              Nca78N 1 Reply Last reply
                              0
                              • NeverDieN NeverDie

                                @nca78 Which do you think would be the best accelerometer to use? If affixed to a garbage can, for instance, it should be able to detect the trash can being emptied by the garbage truck.

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

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

                                @nca78 Which do you think would be the best accelerometer to use? If affixed to a garbage can, for instance, it should be able to detect the trash can being emptied by the garbage truck.

                                That's a very tough question :D
                                For low power the best is ADXL362 but it can only be controlled using SPI which is a problem for that specific NRF51 module. And it's not that convenient as low power comes with limited "advanced" capabilities that would be useful for this kind of sensor: tap/double tap detection, free fall detection, ...

                                I'm making a board with the same nrf51 module and my choice is LIS3DE because it has those advanced functions and can go as low as 2uA, it's very cheap (<1$) and it's small, but I'm only using the chip and not a breakout board. There are LIS3DH breakout boards on AliExpress, it's similar but the boards are big as they map all pins in a row. Only board with less pin is nearly as expensive as some NRF51 + LIS3DE combo so it's not worth buying the breakout.

                                I will make a version with a LSM303AGR too, it has accelerometer + magnetometer. Magnetometer is power hungry but you can use it only when accelerometer detects some movement, so you know the orientation of the sensor. That way you could easily know the difference between your garbage can being moved around, and it being turned over in the garbage truck. But here again bad news in term of breakout boards, the LSM303 breakout boards available are not the -AGR version, and I'm not sure they can run the accelerometer in a real low power way (LSM303AGR is 3.7uA in lowest power accelerator mode).

                                There are also some Bosh accelerometer but using more current (6.5uA for BMA255 for example) and same problems with the breakout boards: they are huge.

                                Sorry, no good answer to your question as there's no compact, low power, i2c compatible breakout board that I know about. If you want to use a breakout board my advice is to go for ADXL362, and if you're out of pins with this nrf51 module you can hardwire the chip select pin to save one.

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

                                  @NeverDie you can also measure tilt using an accelerometer (acceleration measured is the gravity in that case) but it's possible only if there is no movement, so I don't think it's usable in a garbage truck processing.

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

                                    I guess it's the land of compromise. By default I'm going with the BMA220, if only because the board is small and the low power mode current drain is 10ua: https://www.aliexpress.com/store/product/DFRobot-BMA220-3-Axis-Triple-Axis-Accelerometer-sensor-2-0-3-6V-I2C-Interface-Tiny-size/1681007_32791058717.html
                                    It's not cheap, but I only need a couple: one for trash can and the other for a curbside recycling bin.

                                    You're right though: maybe all I need is some kind of tilt detector, like maybe a mercury switch of some kind. Perhaps that would be cheaper, and the current drain could be almost nothing.... Thanks!

                                    Nca78N 1 Reply Last reply
                                    0
                                    • NeverDieN NeverDie

                                      I guess it's the land of compromise. By default I'm going with the BMA220, if only because the board is small and the low power mode current drain is 10ua: https://www.aliexpress.com/store/product/DFRobot-BMA220-3-Axis-Triple-Axis-Accelerometer-sensor-2-0-3-6V-I2C-Interface-Tiny-size/1681007_32791058717.html
                                      It's not cheap, but I only need a couple: one for trash can and the other for a curbside recycling bin.

                                      You're right though: maybe all I need is some kind of tilt detector, like maybe a mercury switch of some kind. Perhaps that would be cheaper, and the current drain could be almost nothing.... Thanks!

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

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

                                      I guess it's the land of compromise. By default I'm going with the BMA220, if only because the board is small and the low power mode current drain is 10ua

                                      At this price buy the small LIS3DH breakout, you'll enjoy the included tilt calculation and a 2uA consumption, 10uA for button cell it too high
                                      https://www.aliexpress.com/item/LIS3DH-Module-Acceleration-Sensor-Module-Evaluation-Board-Development-Board/32285377730.html

                                      Else go for that one it's cheaper and has the nrf51822 onboard
                                      https://www.aliexpress.com/item/Nrf51822-LIS3DH-Bluetooth-Module-CJMCU-8223-Bluetooth-acceleration-module/32821873481.html

                                      NeverDieN 1 Reply Last reply
                                      1
                                      • Nca78N Nca78

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

                                        I guess it's the land of compromise. By default I'm going with the BMA220, if only because the board is small and the low power mode current drain is 10ua

                                        At this price buy the small LIS3DH breakout, you'll enjoy the included tilt calculation and a 2uA consumption, 10uA for button cell it too high
                                        https://www.aliexpress.com/item/LIS3DH-Module-Acceleration-Sensor-Module-Evaluation-Board-Development-Board/32285377730.html

                                        Else go for that one it's cheaper and has the nrf51822 onboard
                                        https://www.aliexpress.com/item/Nrf51822-LIS3DH-Bluetooth-Module-CJMCU-8223-Bluetooth-acceleration-module/32821873481.html

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

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

                                        https://www.aliexpress.com/item/LIS3DH-Module-Acceleration-Sensor-Module-Evaluation-Board-Development-Board/32285377730.html

                                        Those are both good suggestions. Thinking now though of minimal effort, I may try some cheap ball sensors first:
                                        https://www.aliexpress.com/item/200PCS-LOT-Sensitive-SW-520D-Ball-Switch-Angle-Switch-SW-520D-Tilt-Switch/1967714977.html?ws_ab_test=searchweb0_0,searchweb201602_4_10152_10065_10151_10344_10068_10130_10345_10324_10342_10547_10325_10343_10546_10340_10341_10548_10545_10541_10562_10084_10083_10307_10178_10060_10155_10154_10539_10312_10059_10313_10314_10534_10533_100031_10103_10073_10594_10557_10558_10596_10595_10142_10107,searchweb201603_25,ppcSwitch_4&btsid=110cafb1-1528-4ca9-bf01-4df9ccf33b93&algo_expid=8506dd81-1d5d-4627-9ae5-f3df06594fbb-9&algo_pvid=8506dd81-1d5d-4627-9ae5-f3df06594fbb&rmStoreLevelAB=0
                                        I could stick it in one of the leak detection pinouts of my existing board, so it should be easy. :)

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

                                          Actually, this contraption looks even more promising than the ball switch: https://www.aliexpress.com/item/Vibration-Switch-Shock-Vibration-Sensor-Shaked-Switch-Shaked-Stick-Skates/32686838884.html?ws_ab_test=searchweb0_0,searchweb201602_4_10152_10065_10151_10344_10068_10130_10345_10324_10342_10547_10325_10343_10546_10340_10341_10548_10545_10541_10562_10084_10083_10307_10178_10060_10155_10154_10539_10312_10059_10313_10314_10534_10533_100031_10103_10073_10594_10557_10558_10596_10595_10142_10107,searchweb201603_25,ppcSwitch_4&btsid=8ee4bf46-c3de-4f6a-b23f-32b800aefc7a&algo_expid=d469a8ff-4dce-4442-8590-0e2fdefb1f4b-14&algo_pvid=d469a8ff-4dce-4442-8590-0e2fdefb1f4b&rmStoreLevelAB=0

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


                                          24

                                          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