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. 💬 MyMultisensors

💬 MyMultisensors

Scheduled Pinned Locked Moved OpenHardware.io
328pmotionatsha204amulti sensorhumiditytemperaturepirambiant lightlow powercoincell
176 Posts 33 Posters 61.2k Views 35 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.
  • scalzS scalz

    @alexsh1 looks weird, because there is nothing special on the board which could consumes like that, all parts are ultra low power..I tested mine with uCurrent gold device.
    so I would say if it's consistent on 3sensors boards, it could be:

    • software
    • bad caps, out of specs parts..(I usually order my parts at Mouser, arrow etc..)

    what do you get when using sketch J from gammon for example + shutdown sensors in case, no serial connected.

    alexsh1A Offline
    alexsh1A Offline
    alexsh1
    wrote on last edited by
    #155

    @scalz Sketch J is giving 1.5mA consumption.

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

      @alexsh1
      so you get 1.5mA with sketch J but 35uA with your code ?? something is wrong..you may have forgotten to shutdown some peripherals.
      with sketch J, you need to shutdown everything on your board in case peripherals are not well initialized. So that implies you include libs for radio etc in sketch J. Then disconnect your ftdi for power consumption tests. the PIR sensor itself won't consume more than 2-3uA, I tested it too.
      On other side, sketch J is just a basic test, because almost same code is used in MySensors lib for sleep()

      Sometimes I read people saying they have x uA power consumption for 328p standalone in deep sleep mode, but this is strange because here, on different 328p design, I have always been able to confirm the current consumption from the datasheet which is nA range. But I always used uCurrent..and reliable capa (X7R etc), hopefully I never got one capa extra leaking so far.
      There is no magics, especially for this board, you should get what datasheets say..
      When I made this board, I started by soldering only 328p circuit and checked power consumption, then tested step by step additional peripheral.

      alexsh1A 1 Reply Last reply
      0
      • scalzS scalz

        @alexsh1
        so you get 1.5mA with sketch J but 35uA with your code ?? something is wrong..you may have forgotten to shutdown some peripherals.
        with sketch J, you need to shutdown everything on your board in case peripherals are not well initialized. So that implies you include libs for radio etc in sketch J. Then disconnect your ftdi for power consumption tests. the PIR sensor itself won't consume more than 2-3uA, I tested it too.
        On other side, sketch J is just a basic test, because almost same code is used in MySensors lib for sleep()

        Sometimes I read people saying they have x uA power consumption for 328p standalone in deep sleep mode, but this is strange because here, on different 328p design, I have always been able to confirm the current consumption from the datasheet which is nA range. But I always used uCurrent..and reliable capa (X7R etc), hopefully I never got one capa extra leaking so far.
        There is no magics, especially for this board, you should get what datasheets say..
        When I made this board, I started by soldering only 328p circuit and checked power consumption, then tested step by step additional peripheral.

        alexsh1A Offline
        alexsh1A Offline
        alexsh1
        wrote on last edited by
        #157

        @scalz No, I copied and pasted sketch J so no radio peripherals included.
        Strange that I have the same consumption on both boards - I think caps may be the reason! I'll try to desolder a few and test it again.

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

          @alexsh1
          where did you source your passive parts like capa, especially the bigger like 100uF ? (for curiosity)
          I guess you sourced others ic like opamp and comparator from a known source.

          alexsh1A 1 Reply Last reply
          0
          • scalzS scalz

            @alexsh1
            where did you source your passive parts like capa, especially the bigger like 100uF ? (for curiosity)
            I guess you sourced others ic like opamp and comparator from a known source.

            alexsh1A Offline
            alexsh1A Offline
            alexsh1
            wrote on last edited by
            #159

            @scalz different sources - arrow.com for opamp.
            For caps and resistors it is Aliexpress :))

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

              oki maybe try removing some of the big capa to see if it improves, use a simpler sketch where you just powerdown everything. there is no reason you don't get the low power consumption.
              regarding sketch J, yes, for sure you got 1.5ma because others peripherals were not initialized/shutdown

              alexsh1A 2 Replies Last reply
              0
              • scalzS scalz

                oki maybe try removing some of the big capa to see if it improves, use a simpler sketch where you just powerdown everything. there is no reason you don't get the low power consumption.
                regarding sketch J, yes, for sure you got 1.5ma because others peripherals were not initialized/shutdown

                alexsh1A Offline
                alexsh1A Offline
                alexsh1
                wrote on last edited by
                #161

                @scalz I have desoldered all caps down to 1uF. Tried a different bootloader. However, I cannot get consumption down. I have opt3001 + atsha204a + AT25DF512C (all obtained from a good source). All resistor values are correct (resistor tolerance is 1%). Not sure what else I can do...

                1 Reply Last reply
                0
                • scalzS scalz

                  oki maybe try removing some of the big capa to see if it improves, use a simpler sketch where you just powerdown everything. there is no reason you don't get the low power consumption.
                  regarding sketch J, yes, for sure you got 1.5ma because others peripherals were not initialized/shutdown

                  alexsh1A Offline
                  alexsh1A Offline
                  alexsh1
                  wrote on last edited by alexsh1
                  #162

                  @scalz I managed to narrow down the problem. Consumption (no radio attached) with Si7021 and opt3001 is 4.8uA, but with flash it goes up to 29uA while sleeping. This is a batch of AT25DF512C-MAHN-T I received from the US so quality is not an issue here. Seems to me that flash is not sleeping?

                  My tests are showing that CJ2305 MOSFET consumption is negligible

                  1 Reply Last reply
                  0
                  • scalzS scalz

                    @alexsh1 looks weird, because there is nothing special on the board which could consumes like that, all parts are ultra low power..I tested mine with uCurrent gold device.
                    so I would say if it's consistent on 3sensors boards, it could be:

                    • software
                    • bad caps, out of specs parts..(I usually order my parts at Mouser, arrow etc..)

                    what do you get when using sketch J from gammon for example + shutdown sensors in case, no serial connected.

                    alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by alexsh1
                    #163

                    @scalz said in 💬 MyMultisensors:

                    @alexsh1 looks weird, because there is nothing special on the board which could consumes like that, all parts are ultra low power..I tested mine with uCurrent gold device.
                    so I would say if it's consistent on 3sensors boards, it could be:

                    • software
                    • bad caps, out of specs parts..(I usually order my parts at Mouser, arrow etc..)

                    what do you get when using sketch J from gammon for example + shutdown sensors in case, no serial connected.

                    @scalz
                    Here we go - you said "software" and I tested SPIFlash lib modified by lowpowerlab and consumption has gone down to 15uA with flash onboard vs 30uA with Mysensors SPIFlash. For whatever season, the default MySensors SPIFlash (drivers\SPIFlash) is giving a higher consumption with flash.initialize() and flash.sleep(). @tbowmo Thomas, any ideas please?

                    @scalz What lib are you using for flash to get such a low uA?

                    tbowmoT 1 Reply Last reply
                    0
                    • alexsh1A alexsh1

                      @scalz said in 💬 MyMultisensors:

                      @alexsh1 looks weird, because there is nothing special on the board which could consumes like that, all parts are ultra low power..I tested mine with uCurrent gold device.
                      so I would say if it's consistent on 3sensors boards, it could be:

                      • software
                      • bad caps, out of specs parts..(I usually order my parts at Mouser, arrow etc..)

                      what do you get when using sketch J from gammon for example + shutdown sensors in case, no serial connected.

                      @scalz
                      Here we go - you said "software" and I tested SPIFlash lib modified by lowpowerlab and consumption has gone down to 15uA with flash onboard vs 30uA with Mysensors SPIFlash. For whatever season, the default MySensors SPIFlash (drivers\SPIFlash) is giving a higher consumption with flash.initialize() and flash.sleep(). @tbowmo Thomas, any ideas please?

                      @scalz What lib are you using for flash to get such a low uA?

                      tbowmoT Offline
                      tbowmoT Offline
                      tbowmo
                      Admin
                      wrote on last edited by
                      #164

                      @alexsh1

                      It's been a while (a couple of years now) since I looked at the first sensebender micro.. (other than the data that they submit to my gateway :) )

                      So I'm not entirely sure what is going on..

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

                        @alexsh1
                        yes the mosfet power consumption is negligeable (nA), else there would be a problem ;)

                        I had to make some changes to get such low power, I agree (including spiflash lib you're right). actually i have too much work, rather 'lazy' and no time to sort my libs.sorry.

                        Note: Spiflash lib from lowpowerlab (mysensors too i guess..) doesn't use the lowest power mode in sleep function.

                        Does the sensebender micro have a spiflash too?? then that would explain some posts I read..

                        As usual datasheets to the rescue, did you take a look? would have saved you time.
                        Easy one, in datasheet you can read:

                        • 200nA Ultra Deep Power Down current (Typical)
                        • 5μA Deep Power-Down Current (Typical)
                        • 25uA Standby current (Typical)
                        • 4.5mA Active Read Current (Typical

                        why don't you get this super low <uA ??
                        section 12-5 of the datasheet is what you need, use the right opcode (command) which is 0x79 for ultra deep powerdown. create your own or tweak sleep function in lib
                        So now you can save at least 5uA + (other sensors not optimized maybe) + multimeter imprecision
                        I hope this helps!

                        alexsh1A 1 Reply Last reply
                        0
                        • scalzS scalz

                          @alexsh1
                          yes the mosfet power consumption is negligeable (nA), else there would be a problem ;)

                          I had to make some changes to get such low power, I agree (including spiflash lib you're right). actually i have too much work, rather 'lazy' and no time to sort my libs.sorry.

                          Note: Spiflash lib from lowpowerlab (mysensors too i guess..) doesn't use the lowest power mode in sleep function.

                          Does the sensebender micro have a spiflash too?? then that would explain some posts I read..

                          As usual datasheets to the rescue, did you take a look? would have saved you time.
                          Easy one, in datasheet you can read:

                          • 200nA Ultra Deep Power Down current (Typical)
                          • 5μA Deep Power-Down Current (Typical)
                          • 25uA Standby current (Typical)
                          • 4.5mA Active Read Current (Typical

                          why don't you get this super low <uA ??
                          section 12-5 of the datasheet is what you need, use the right opcode (command) which is 0x79 for ultra deep powerdown. create your own or tweak sleep function in lib
                          So now you can save at least 5uA + (other sensors not optimized maybe) + multimeter imprecision
                          I hope this helps!

                          alexsh1A Offline
                          alexsh1A Offline
                          alexsh1
                          wrote on last edited by alexsh1
                          #166

                          @scalz Yes, sensebender micro does have flash and using spiflash from mysensors. I never managed to get it below 20uA in the deep sleep, but then I never looked into the libs. My sensebender micro is running from two AA batteries and 20uA is just fine. It does make difference though if running on a coin cell.

                          When you say ultra deep power down, which mode are you referencing?
                          There are six sleep modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby, and Extended Standby.

                          The datasheet - yes, I am referencing to it from time to time. I guess I'll have to dive in if I want to get it sorted. I would need to get Ucurrent Gold or get one built to measure such a low current.

                          EDIT: For CR2032 3uA would be a self-discharge current (1% a month)

                          1 Reply Last reply
                          0
                          • tbowmoT tbowmo

                            @alexsh1

                            It's been a while (a couple of years now) since I looked at the first sensebender micro.. (other than the data that they submit to my gateway :) )

                            So I'm not entirely sure what is going on..

                            alexsh1A Offline
                            alexsh1A Offline
                            alexsh1
                            wrote on last edited by
                            #167

                            @tbowmo I meant SPIFlash lib

                            scalzS 1 Reply Last reply
                            0
                            • alexsh1A alexsh1

                              @tbowmo I meant SPIFlash lib

                              scalzS Offline
                              scalzS Offline
                              scalz
                              Hardware Contributor
                              wrote on last edited by scalz
                              #168

                              @alexsh1
                              I'm not talking about the mcu sleep modes. I mentioned the spiflash sleep modes (or I don't get what you asked previously regarding spiflash..)
                              datasheet see here, ic can go <uA, if you do what i said above, you'll get the better power consumption you want,
                              https://www.adestotech.com/wp-content/uploads/DS-AT25DF512C_030.pdf

                              alexsh1A 1 Reply Last reply
                              1
                              • scalzS scalz

                                @alexsh1
                                I'm not talking about the mcu sleep modes. I mentioned the spiflash sleep modes (or I don't get what you asked previously regarding spiflash..)
                                datasheet see here, ic can go <uA, if you do what i said above, you'll get the better power consumption you want,
                                https://www.adestotech.com/wp-content/uploads/DS-AT25DF512C_030.pdf

                                alexsh1A Offline
                                alexsh1A Offline
                                alexsh1
                                wrote on last edited by
                                #169

                                @scalz Sorry, yes, I thought you were talking about mcu.
                                No, I did not check the datasheet for the chip. Thanks for the link. I'll see what can be done to save some power here :v:

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

                                  oki, i think you now have the solution to what happened in your other post here ;)
                                  https://forum.mysensors.org/topic/6846/sensebender-micro-rfm69w-consumption/14

                                  alexsh1A 2 Replies Last reply
                                  1
                                  • scalzS scalz

                                    oki, i think you now have the solution to what happened in your other post here ;)
                                    https://forum.mysensors.org/topic/6846/sensebender-micro-rfm69w-consumption/14

                                    alexsh1A Offline
                                    alexsh1A Offline
                                    alexsh1
                                    wrote on last edited by
                                    #171

                                    @scalz Yes, I think I mentioned sensebender micro, didn't I?
                                    20+ uA is not too bad and given the power source is 2xAA, I never bothered to spend too much time troubleshooting it, but now things are different as I know what causes such high consumption.

                                    BTW - Sketch J in my case was giving me 1.5mA as radio was not sleeping.

                                    1 Reply Last reply
                                    0
                                    • scalzS scalz

                                      oki, i think you now have the solution to what happened in your other post here ;)
                                      https://forum.mysensors.org/topic/6846/sensebender-micro-rfm69w-consumption/14

                                      alexsh1A Offline
                                      alexsh1A Offline
                                      alexsh1
                                      wrote on last edited by
                                      #172

                                      @scalz Voalá! 5.2uA consumption with flash in Ultra Deep Power-Down!
                                      Will have to test OTA functionality though (waking up from Ultra Deep Power-Down), but in my experience this is going to be very hard on a coin battery.

                                      1 Reply Last reply
                                      1
                                      • C Offline
                                        C Offline
                                        clel
                                        wrote on last edited by
                                        #173

                                        This sensor looks pretty promising with its capabilities, size and low power consumption. Currently the only way to get it seems to be to order PCBs and then solder everything manually, correct?

                                        I know this has been asked before, but is there progress in ordering this assembled? I might be interested, but have to say that this will be competing with other commercially available solutions like Aquara.

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

                                          @clel
                                          sure it was fun to make, I mean when you design your devices you can choose the best parts, try to get the best perf.., even if it's a bit more expensive than a very cheap commercial product, in the end, you know what you put in.
                                          If I remember it cost me 15-20$ when I assembled it, not that expensive, vs versatility, sensors, and possibility to change fw.

                                          It's a quite old project, I wouldn't really advise to use 328p nowadays, it could be limited in future, says if mysensors someday get more advanced features, who knows.. it's really just my opinion. Still, I understand it's maybe easier to get started with it.
                                          I made more modern projects, but miss time for release etc

                                          No, I'm still not selling anything. No enough time for the moment. I think it wouldn't be worth my time. Same about compete with commercial products, like a topchef or a craftsman, I prefer to focus on other aspects when designing (quality, verstatility, perf).

                                          If your HA is cost driven, then maybe you're right to go for Aquara. Imho diy for sensors like you mentioned will often cost the same or more than the cheapest commercial products, vs time&learning curve, parts&tools in diy.

                                          Are these commercial products as low power, better range etc as a good care diy device, not sure.. But like I said "premium" has a cost. Pros and cons.
                                          I think for the moment, you can't compare the range of rfm69 module vs 2.4ghz aquara. afaik aqara/zigbee needs more repeaters.

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


                                          11

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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