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. 💬 Button size radionode with sensors swarm extension

💬 Button size radionode with sensors swarm extension

Scheduled Pinned Locked Moved OpenHardware.io
atsha204aflashhumidityrf69lightuv lightbatterymysensortemperatureota
189 Posts 28 Posters 40.5k Views 25 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.
  • KoreshK Koresh

    @alexsh1 Very strange. I can't see a method write8 in current lib version (https://github.com/claws/BH1750). So I can't understand how is it possible to compile default code with this string

    lightMeter.write8(BH1750_POWER_DOWN);
    

    I couldn't put this sensor into power down mode without this.

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

    @Koresh One more observation. If I comment out:

    //lightMeter.write8(BH1750_POWER_DOWN);
    

    from the original sketch, the consumption goes up to 0.27mA.
    So BH1750 is not a problem. Something else is eating up a few milliamps.

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yury
      wrote on last edited by
      #60

      @alexsh1 said in 💬 Button size radionode with sensors swarm extension:

      Something else is eating up a few milliamps

      yes seems your board has bad capacitors. After rechecking many boards we found one eating a lot - 0.4 mA. Replacing caps fixed issue.

      2_1499267230472_noLDO.jpg 1_1499267230472_LDO.jpg 0_1499267230471_gooodCap.jpg

      can you check?

      alexsh1A 2 Replies Last reply
      0
      • Y yury

        @alexsh1 said in 💬 Button size radionode with sensors swarm extension:

        Something else is eating up a few milliamps

        yes seems your board has bad capacitors. After rechecking many boards we found one eating a lot - 0.4 mA. Replacing caps fixed issue.

        2_1499267230472_noLDO.jpg 1_1499267230472_LDO.jpg 0_1499267230471_gooodCap.jpg

        can you check?

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

        @yury There are two yellow caps in your photo. Do I have to change both of them? What's nominal please?

        EDIT: both are 107J SMD Tantalum

        1 Reply Last reply
        0
        • Y yury

          @alexsh1 said in 💬 Button size radionode with sensors swarm extension:

          Something else is eating up a few milliamps

          yes seems your board has bad capacitors. After rechecking many boards we found one eating a lot - 0.4 mA. Replacing caps fixed issue.

          2_1499267230472_noLDO.jpg 1_1499267230472_LDO.jpg 0_1499267230471_gooodCap.jpg

          can you check?

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

          @yury I was suspecting EEPROM (CS pin with pull-up resistor?) to be a culprit

          KoreshK 1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yury
            wrote on last edited by
            #63

            combined capacitance of booth should be 100 --200 microfarads . It is input capacitors.
            please try replacing them

            re:
            I was suspecting EEPROM (CS pin with pull-up resistor?) to be a culprit

            not pullups...

            alexsh1A 1 Reply Last reply
            0
            • Y Offline
              Y Offline
              yury
              wrote on last edited by
              #64

              0.4 ma here with the bad cap
              0_1499269945983_viber image.jpeg

              1 Reply Last reply
              0
              • alexsh1A alexsh1

                @yury I was suspecting EEPROM (CS pin with pull-up resistor?) to be a culprit

                KoreshK Offline
                KoreshK Offline
                Koresh
                Contest Winner
                wrote on last edited by
                #65

                @alexsh1 you can solder one or two capacitors ~50-200uf. But you should remove both because we do not know which of them is bad. Do not forget about polarity ;) Dot-key on the board means positive, so tantalum has positive key, but electrolitic capacitors has negative key.

                alexsh1A 1 Reply Last reply
                0
                • KoreshK Koresh

                  @alexsh1 you can solder one or two capacitors ~50-200uf. But you should remove both because we do not know which of them is bad. Do not forget about polarity ;) Dot-key on the board means positive, so tantalum has positive key, but electrolitic capacitors has negative key.

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

                  @Koresh thanks. It does not matter which caps, right?
                  I have a few 1206 100uF ceramic caps. They are not polarised and may be a good fit size wise

                  KoreshK 1 Reply Last reply
                  0
                  • Y yury

                    combined capacitance of booth should be 100 --200 microfarads . It is input capacitors.
                    please try replacing them

                    re:
                    I was suspecting EEPROM (CS pin with pull-up resistor?) to be a culprit

                    not pullups...

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

                    @yury what's your estimate of battery life based on a new consumption of about 25uA and the default sketch?

                    Y 1 Reply Last reply
                    0
                    • alexsh1A alexsh1

                      @yury what's your estimate of battery life based on a new consumption of about 25uA and the default sketch?

                      Y Offline
                      Y Offline
                      yury
                      wrote on last edited by
                      #68

                      @alexsh1 220 mAh(Duracell) / 0.025 (mA) = 8800 hrs = 366 days.

                      alexsh1A 1 Reply Last reply
                      0
                      • alexsh1A alexsh1

                        @Koresh thanks. It does not matter which caps, right?
                        I have a few 1206 100uF ceramic caps. They are not polarised and may be a good fit size wise

                        KoreshK Offline
                        KoreshK Offline
                        Koresh
                        Contest Winner
                        wrote on last edited by
                        #69

                        @alexsh1 There is no problem to use your capacitors. 1206imp = 3216metric (type A) so they are fit perfect :+1:
                        About consumption... This is quite universal board. If you plan to use CR2032 battery it can be worth to omit LDO. You can do it using existing 0603 jumper footprint near right storage capacitor.

                        alexsh1A 1 Reply Last reply
                        0
                        • Y yury

                          @alexsh1 220 mAh(Duracell) / 0.025 (mA) = 8800 hrs = 366 days.

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

                          @yury said in 💬 Button size radionode with sensors swarm extension:

                          @alexsh1 220 mAh(Duracell) / 0.025 (mA) = 8800 hrs = 366 days.

                          Not exactly - 25uA is a sleeping current.
                          There will be sending periods every 10 mins.
                          So I suppose the lifetime is less than a year

                          Y 1 Reply Last reply
                          0
                          • KoreshK Koresh

                            @alexsh1 There is no problem to use your capacitors. 1206imp = 3216metric (type A) so they are fit perfect :+1:
                            About consumption... This is quite universal board. If you plan to use CR2032 battery it can be worth to omit LDO. You can do it using existing 0603 jumper footprint near right storage capacitor.

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

                            @Koresh yes, I'm using it with the 2032 battery.
                            Which pads to your refer to please?

                            0_1499287012713_IMG_5557.PNG

                            KoreshK 1 Reply Last reply
                            0
                            • alexsh1A alexsh1

                              @yury said in 💬 Button size radionode with sensors swarm extension:

                              @alexsh1 220 mAh(Duracell) / 0.025 (mA) = 8800 hrs = 366 days.

                              Not exactly - 25uA is a sleeping current.
                              There will be sending periods every 10 mins.
                              So I suppose the lifetime is less than a year

                              Y Offline
                              Y Offline
                              yury
                              wrote on last edited by
                              #72

                              @alexsh1

                              @alexsh1 said in 💬 Button size radionode with sensors swarm extension:

                              @yury said in 💬 Button size radionode with sensors swarm extension:

                              @alexsh1 220 mAh(Duracell) / 0.025 (mA) = 8800 hrs = 366 days.

                              Not exactly - 25uA is a sleeping current.
                              There will be sending periods every 10 mins.
                              So I suppose the lifetime is less than a year

                              Yes, it is sleeping time estimate. When it wakes up it compares first, like : if ( abs(d) > 50 ) send(msg_vis.set(VIS_LIGHT), true); so it might send or not.
                              But this is just example sketch and you are very welcome to create pull-request or make suggestion how to improve.

                              alexsh1A 2 Replies Last reply
                              0
                              • alexsh1A alexsh1

                                @Koresh yes, I'm using it with the 2032 battery.
                                Which pads to your refer to please?

                                0_1499287012713_IMG_5557.PNG

                                KoreshK Offline
                                KoreshK Offline
                                Koresh
                                Contest Winner
                                wrote on last edited by Koresh
                                #73

                                @alexsh1 You can fit juper (or any small wire, R10 on the schematic) or remove LDO at all and short top two pads.
                                0_1499287544786_2017-07-05_23-41-54.png

                                alexsh1A 2 Replies Last reply
                                0
                                • Y yury

                                  @alexsh1

                                  @alexsh1 said in 💬 Button size radionode with sensors swarm extension:

                                  @yury said in 💬 Button size radionode with sensors swarm extension:

                                  @alexsh1 220 mAh(Duracell) / 0.025 (mA) = 8800 hrs = 366 days.

                                  Not exactly - 25uA is a sleeping current.
                                  There will be sending periods every 10 mins.
                                  So I suppose the lifetime is less than a year

                                  Yes, it is sleeping time estimate. When it wakes up it compares first, like : if ( abs(d) > 50 ) send(msg_vis.set(VIS_LIGHT), true); so it might send or not.
                                  But this is just example sketch and you are very welcome to create pull-request or make suggestion how to improve.

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

                                  @yury ok, you took the best case scenario (no messages as all) and if we take worst case scenario - sending every 10 mins in any case (suppose no if statement).

                                  Then we take life time somewhere in between.
                                  I think it make sense to take 18uA as a sleeping current removing the LDO from equation

                                  1 Reply Last reply
                                  0
                                  • KoreshK Koresh

                                    @alexsh1 You can fit juper (or any small wire, R10 on the schematic) or remove LDO at all and short top two pads.
                                    0_1499287544786_2017-07-05_23-41-54.png

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

                                    @Koresh said in 💬 Button size radionode with sensors swarm extension:

                                    @alexsh1 You can fit juper (or any small wire, R10 on the schematic) or remove LDO at all and short top two pads.
                                    0_1499287544786_2017-07-05_23-41-54.png

                                    More neat solution is to remove LDO and solder 0 ohm resistor (R10). Looks nice

                                    Ok, 18uA - this is more like it.
                                    Thank you very much for helping to get it sorted. Now I need to understand why the consumption has gone when using Si1132

                                    @yury Did you test power consumption of modules with Si1132 please? I hope it was a bad soldering on my side

                                    1 Reply Last reply
                                    0
                                    • Y yury

                                      @alexsh1

                                      @alexsh1 said in 💬 Button size radionode with sensors swarm extension:

                                      @yury said in 💬 Button size radionode with sensors swarm extension:

                                      @alexsh1 220 mAh(Duracell) / 0.025 (mA) = 8800 hrs = 366 days.

                                      Not exactly - 25uA is a sleeping current.
                                      There will be sending periods every 10 mins.
                                      So I suppose the lifetime is less than a year

                                      Yes, it is sleeping time estimate. When it wakes up it compares first, like : if ( abs(d) > 50 ) send(msg_vis.set(VIS_LIGHT), true); so it might send or not.
                                      But this is just example sketch and you are very welcome to create pull-request or make suggestion how to improve.

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

                                      @yury I suggest we use this:

                                      http://oregonembedded.com/batterycalc.htm

                                      Based on non-LDO board consumption of 18uA the battery life assuming constant updates 10 mins and 140ms wake-up time (120ms is needed by bh1750) is 1.03 years. Excellent

                                      1 Reply Last reply
                                      0
                                      • Y Offline
                                        Y Offline
                                        yury
                                        wrote on last edited by
                                        #77

                                        @alexsh1 said in 💬 Button size radionode with sensors swarm extension:

                                        Did you test power consumption of modules with Si1132 please? I hope it was a bad soldering on my side

                                        Could not find good code to send it to sleep. without it Si1132 was eating a lot...

                                        alexsh1A 1 Reply Last reply
                                        0
                                        • Y yury

                                          @alexsh1 said in 💬 Button size radionode with sensors swarm extension:

                                          Did you test power consumption of modules with Si1132 please? I hope it was a bad soldering on my side

                                          Could not find good code to send it to sleep. without it Si1132 was eating a lot...

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

                                          @yury Hmmmm. Datasheet is stating that the standby current < 500 nA

                                          However, actively measuring current - 4.5mA
                                          This would kill 2032 very quickly

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


                                          14

                                          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