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

    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
                              • scalzS scalz

                                @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 Offline
                                C Offline
                                clel
                                wrote on last edited by
                                #175

                                @scalz Thanks for your answer. Assembling a sensor by my own is not really what I want (or am able to achieve). So buying assembled sensor is the only option for me. Thus probably commercially available sensors will fit better, since they can use the scaling factor of assembling a huge amount of sensors. My HA is driven by cost to performance ratio, where cost also include somewhat the amount of time to invest and performance also covers things like the ease of use, appearance etc.

                                Interesting to hear though that those commercial sensors might be less premium regarding the part quality, battery life etc.

                                1 Reply Last reply
                                0
                                • alexsh1A Offline
                                  alexsh1A Offline
                                  alexsh1
                                  wrote on last edited by
                                  #176

                                  @scalz I have just updated to MySensors 2.3.2 and the sketch with interrupts stopped working. Any changes in any lib?

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


                                  13

                                  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