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. My Project
  3. Multisensor_PIR_DHT_LDR_Battery

Multisensor_PIR_DHT_LDR_Battery

Scheduled Pinned Locked Moved My Project
20 Posts 5 Posters 11.0k Views 8 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.
  • n3roN Offline
    n3roN Offline
    n3ro
    wrote on last edited by
    #4

    Hey folks,

    I have just tried to reduce the sleep current of the nodes. With

    *a transistor to turn on and off the stepup
    *a second transistor to disconnect the ldr
    *a external pullup with 680k for the pir

    Now I have a sleep current of 220-240uA.

    Any ideas to tune it a little bit more?
    Is it possible to check if the node is wake up from the interrupt or the timer?

    Regards
    n3ro

    pimatic + MySensors + Homeduino + z-way
    https://github.com/n3roGit/MySensors_n3ro

    icebobI 1 Reply Last reply
    0
    • F Offline
      F Offline
      floris
      wrote on last edited by
      #5

      maybe a stupid question, but can i use this sketch for the recommenced sensors ?
      it's just exactly the sketch im looking for thanks!!

      1 Reply Last reply
      0
      • n3roN Offline
        n3roN Offline
        n3ro
        wrote on last edited by
        #6

        What do you mean with you recommenced sensors?

        pimatic + MySensors + Homeduino + z-way
        https://github.com/n3roGit/MySensors_n3ro

        F 1 Reply Last reply
        0
        • n3roN n3ro

          Hey folks,

          I have just tried to reduce the sleep current of the nodes. With

          *a transistor to turn on and off the stepup
          *a second transistor to disconnect the ldr
          *a external pullup with 680k for the pir

          Now I have a sleep current of 220-240uA.

          Any ideas to tune it a little bit more?
          Is it possible to check if the node is wake up from the interrupt or the timer?

          Regards
          n3ro

          icebobI Offline
          icebobI Offline
          icebob
          wrote on last edited by
          #7

          @n3ro Yes, you can. The sleep function has a return value. If it is < 0, timer is timed out. Otherwise it waked up by interrupt.

          I'm working on a same multi sensor PCB with batteries. The PIR consumes 150uA. So you can reduce consume if your search a low power PIR sensor. Like this: http://forum.mysensors.org/topic/2387/low-power-pir-breakout-board-for-mysensors-and-evaluation/6
          @scalz said it consumes only ~24uA.

          n3roN 1 Reply Last reply
          0
          • icebobI icebob

            @n3ro Yes, you can. The sleep function has a return value. If it is < 0, timer is timed out. Otherwise it waked up by interrupt.

            I'm working on a same multi sensor PCB with batteries. The PIR consumes 150uA. So you can reduce consume if your search a low power PIR sensor. Like this: http://forum.mysensors.org/topic/2387/low-power-pir-breakout-board-for-mysensors-and-evaluation/6
            @scalz said it consumes only ~24uA.

            n3roN Offline
            n3roN Offline
            n3ro
            wrote on last edited by n3ro
            #8

            @icebob hey :) the used pir consumes ~50uA. Since my last modifications I replaced the stepup and the dht with a si7021 sensor and the external pullup with 1m ohm. Now the sleeping current is ~190uA

            https://github.com/n3roGit/MySensors_n3ro/blob/master/Multisensor_PIR_SI7021_LDA_Battery/Multisensor_PIR_SI7021_LDA_Battery.ino

            pimatic + MySensors + Homeduino + z-way
            https://github.com/n3roGit/MySensors_n3ro

            icebobI 1 Reply Last reply
            0
            • n3roN n3ro

              @icebob hey :) the used pir consumes ~50uA. Since my last modifications I replaced the stepup and the dht with a si7021 sensor and the external pullup with 1m ohm. Now the sleeping current is ~190uA

              https://github.com/n3roGit/MySensors_n3ro/blob/master/Multisensor_PIR_SI7021_LDA_Battery/Multisensor_PIR_SI7021_LDA_Battery.ino

              icebobI Offline
              icebobI Offline
              icebob
              wrote on last edited by
              #9

              @n3ro ohh, it's great. Which PIR are you using?

              n3roN 1 Reply Last reply
              0
              • icebobI icebob

                @n3ro ohh, it's great. Which PIR are you using?

                n3roN Offline
                n3roN Offline
                n3ro
                wrote on last edited by
                #10

                @icebob
                http://www.amazon.de/Niederspannung-PIR-Infrarot-Bewegungssensor-erkennt-Modul/dp/B008EGH3FM/ref=sr_1_1?ie=UTF8&qid=1433801387&sr=8-1&keywords=B008EGH3FM&tag=wwwmysensorso-20

                pimatic + MySensors + Homeduino + z-way
                https://github.com/n3roGit/MySensors_n3ro

                1 Reply Last reply
                0
                • n3roN n3ro

                  What do you mean with you recommenced sensors?

                  F Offline
                  F Offline
                  floris
                  wrote on last edited by
                  #11

                  @n3ro I Mean the sensors advised by the Mysensors store...

                  1 Reply Last reply
                  0
                  • n3roN n3ro

                    Hey Guys,
                    Today I have completed my first multisensor.

                    As base I used a cheap china fire detectors and the MYS PCB board.

                    http://www.ebay.de/itm/like/Optisch-Feuermelder-Rauchmelder-Funkrauchmelder-Rauchdetektor-Rauchwarnmelder/141252448370?hlpht=true&ops=true&viphx=1&_trksid=p5197.c100068.m2280&_trkparms=ao%3D1%26asc%3D20140211130857%26meid%3D07bc95de38bb49768007aea7e82e859d%26pid%3D100068%26clkid%3D6724945852786999307&_qi=RTM2052467

                    All components fits very well in the housing.

                    Unfortunately, the modified HC-SR501 do not work well with <= 3V with the DHT (delay in the sketch). Now I use this:
                    http://www.amazon.de/Niederspannung-PIR-Infrarot-Bewegungssensor-erkennt-Modul/dp/B008EGH3FM/ref=sr_1_1?ie=UTF8&qid=1433801387&sr=8-1&keywords=B008EGH3FM

                    And it works very great!

                    The used Sketch is this:

                    https://github.com/n3roGit/MySensors_n3ro/blob/master/Multisensor_PIR_DHT_LDA_Battery/Multisensor_PIR_DHT_LDA_Battery.ino

                    wiring diagram coming soon;)

                    IMG_20150608_203950.jpg IMG_20150608_183116.jpg IMG_20150608_183138.jpg

                    D Offline
                    D Offline
                    Dylano
                    wrote on last edited by
                    #12

                    @n3ro

                    Great...
                    Hope this will work for a long time on a battery?
                    What battery's you are using?

                    1 problem< WHERE CAN I FIND:
                    #include <readVcc.h>

                    Domoticz, with a lot of working hardware, include mysensors :-)
                    OpenPLI, RuneAudio, Solarmeter, etc......

                    Not a great builder of software and hardware, more a user...
                    Only i try to do my best :-(

                    n3roN 2 Replies Last reply
                    0
                    • D Dylano

                      @n3ro

                      Great...
                      Hope this will work for a long time on a battery?
                      What battery's you are using?

                      1 problem< WHERE CAN I FIND:
                      #include <readVcc.h>

                      n3roN Offline
                      n3roN Offline
                      n3ro
                      wrote on last edited by
                      #13

                      @Dylano
                      Hey,
                      Yes it works very good with 2 aaa Batts.

                      You can find the read library here

                      https://github.com/sweebee/Arduino-home-automation/tree/master/libraries/readVcc

                      pimatic + MySensors + Homeduino + z-way
                      https://github.com/n3roGit/MySensors_n3ro

                      1 Reply Last reply
                      0
                      • D Dylano

                        @n3ro

                        Great...
                        Hope this will work for a long time on a battery?
                        What battery's you are using?

                        1 problem< WHERE CAN I FIND:
                        #include <readVcc.h>

                        n3roN Offline
                        n3roN Offline
                        n3ro
                        wrote on last edited by
                        #14

                        @Dylano

                        But I don't use the dht anymore.
                        https://github.com/n3roGit/MySensors_n3ro/tree/master/Multisensor_PIR_SI7021_LDA_Battery

                        This works much better!

                        pimatic + MySensors + Homeduino + z-way
                        https://github.com/n3roGit/MySensors_n3ro

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          Dylano
                          wrote on last edited by
                          #15

                          yes i saw your better solution..the si7021 is using less power i read..
                          Where do i have to place the: long readVcc
                          And how do ik make that .H file?

                          How long is the multisensor running? on what battery?

                          Domoticz, with a lot of working hardware, include mysensors :-)
                          OpenPLI, RuneAudio, Solarmeter, etc......

                          Not a great builder of software and hardware, more a user...
                          Only i try to do my best :-(

                          n3roN 1 Reply Last reply
                          0
                          • D Dylano

                            yes i saw your better solution..the si7021 is using less power i read..
                            Where do i have to place the: long readVcc
                            And how do ik make that .H file?

                            How long is the multisensor running? on what battery?

                            n3roN Offline
                            n3roN Offline
                            n3ro
                            wrote on last edited by
                            #16

                            @Dylano what do you mean with long readVcc?

                            The battery life is different because of the frequency of triggering from the pir.

                            Some nodes works for 2 month. Other ones for 6..

                            pimatic + MySensors + Homeduino + z-way
                            https://github.com/n3roGit/MySensors_n3ro

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              Dylano
                              wrote on last edited by
                              #17

                              sorry, it is working now: what do you mean with long readVcc?
                              I use the sketch battery pir, to test

                              Only the report of the vcc how many times is the sketch reading this?
                              And where can i see the status?
                              I use Domoticz as controller.

                              Domoticz, with a lot of working hardware, include mysensors :-)
                              OpenPLI, RuneAudio, Solarmeter, etc......

                              Not a great builder of software and hardware, more a user...
                              Only i try to do my best :-(

                              n3roN 1 Reply Last reply
                              0
                              • D Dylano

                                sorry, it is working now: what do you mean with long readVcc?
                                I use the sketch battery pir, to test

                                Only the report of the vcc how many times is the sketch reading this?
                                And where can i see the status?
                                I use Domoticz as controller.

                                n3roN Offline
                                n3roN Offline
                                n3ro
                                wrote on last edited by
                                #18

                                @Dylano the sketch send the battery percentage everytime the voltage is changed

                                pimatic + MySensors + Homeduino + z-way
                                https://github.com/n3roGit/MySensors_n3ro

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  Dylano
                                  wrote on last edited by
                                  #19

                                  great, i see in domoticz the value great!!!...[ when power is low i get an alert. ]
                                  You have a lot of sketches :-)
                                  Is het possible that you build a sketch include your pir-battery-ldr, and a light switch, or a option so i can switch a ledlight.
                                  Like a pir-battery-ldr-switch... :-)

                                  I will try to rebuild a solarpowerlight
                                  With a solar powerbank, and a:Light

                                  So i can have a Domoticz controlled solarpower light and motion/ldr [my]sensor
                                  Only i cannot make a sketch for this... [ if you want, i will pay for it..., or a donation to charity organization ]

                                  Domoticz, with a lot of working hardware, include mysensors :-)
                                  OpenPLI, RuneAudio, Solarmeter, etc......

                                  Not a great builder of software and hardware, more a user...
                                  Only i try to do my best :-(

                                  n3roN 1 Reply Last reply
                                  0
                                  • D Dylano

                                    great, i see in domoticz the value great!!!...[ when power is low i get an alert. ]
                                    You have a lot of sketches :-)
                                    Is het possible that you build a sketch include your pir-battery-ldr, and a light switch, or a option so i can switch a ledlight.
                                    Like a pir-battery-ldr-switch... :-)

                                    I will try to rebuild a solarpowerlight
                                    With a solar powerbank, and a:Light

                                    So i can have a Domoticz controlled solarpower light and motion/ldr [my]sensor
                                    Only i cannot make a sketch for this... [ if you want, i will pay for it..., or a donation to charity organization ]

                                    n3roN Offline
                                    n3roN Offline
                                    n3ro
                                    wrote on last edited by
                                    #20

                                    @Dylano

                                    you cold try to modify this sketch:
                                    https://github.com/n3roGit/MySensors_n3ro/tree/master/in_process/Multisensor_PIR_DHT_light_switch_battery
                                    its not finished but there is all you need ;)

                                    pimatic + MySensors + Homeduino + z-way
                                    https://github.com/n3roGit/MySensors_n3ro

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


                                    21

                                    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