Community Forum
    • Blog
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    ULPNode Low Power Secret Revealead

    Scheduled Pinned Locked Moved ULPNode
    consumptionatmega328pbatteryarduinolow
    15 Posts 6 Posters 10.9k Views
    Loading More Posts
    • 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.
    • CharlesC Offline
      Charles
      last edited by

      @theDiver
      Thanks for your comment.
      I bought the MCP on digikey or mouser without any problem ๐Ÿ˜‰

      Schematics and library will be released by the end of this month.

      Charles

      1 Reply Last reply Reply Quote
      • D Offline
        drogus
        last edited by

        Thanks for this post, it's very informative!

        One thing I don't get is that in one of the other posts you mention that ULPNode wakes up every 30 seconds and in this post you say that it wakes up every 100 seconds. Is 100 seconds sleeping time just for prototyping purposes? I'd imagine that you can change that time by changing the value of a capacitor and for a final version you would use a capacitor that will discharge in 30 seconds. Is that correct?

        1 Reply Last reply Reply Quote
        • CharlesC Offline
          Charles
          last edited by

          @drogus
          Thanks for your comment,
          Well As far as I remember 30s was an example for calculation, but with proto boards and default caps, yes it's about 100 sec, that will be the values on production boards. It can be changed adding/removing capacitor.

          1 Reply Last reply Reply Quote
          • M Offline
            mj
            last edited by

            Hello,
            I was reading your article "ULPNode Low Power Secret Revealead" which sounds great, but I watched schematics on gtihub and I cant find your solution MCP1640 + NCP302LSN20T1.

            First question is ๐Ÿ˜‰ did you stuck with some problems during tests? I would like to build this part of powering the board and test it. Can you provide information about capacitor and resistor which gives you 2V limit ?

            According to http://ww1.microchip.com/downloads/en/DeviceDoc/22234B.pdf you picked "MCP1640" (without B/C/D) as it has "true disconnect" and PWM/PFM features. In chapter 5.2 and 5.4 I can get equation to calculate resistor and capacitor but... did you use any inductor to minimize noise and did calculated values fit your live tests?

            Sorry being so lazy and for direct asking ๐Ÿ˜‰ but I would like to use your experience and make big step forward ๐Ÿ˜‰

            Regards
            MJ

            1 Reply Last reply Reply Quote
            • S Offline
              scalz
              last edited by

              @mj : hi. I will let Charles answer but if it can help, as I have studied this very nice article too, and made my node myself. It was some work to understand and make it but was a very interesting learning curve ๐Ÿ™‚

              • In chapter 5.2 and 5.4 of MCP1640 datasheet, resistors and capacitor values are for Vout as MCP1640 is adjustable. Nothing to do with ulpnode, this is common to every adjustable Vout switching/LDO regulators.. where you can set Vout (output) to the voltage you want (says 3.3v if you need 3.3v vcc for your circuit, or 2.9, 3.6v...).
              • So if you look at Charles article, the 2V limit is not a matter of resistor or capa. Charles disable the mcp1640 then voltage falls to a 2v limit. and then he enables it again...we can call this a power sequence. So, the 2V limit is managed by the NCP302LSN20T1 supervisor. I suggest you to look at mcp1640 and ncp302 datasheets and appnotes ๐Ÿ˜‰
              1 Reply Last reply Reply Quote
              • M Offline
                mj
                last edited by

                I have read a little bit and... I'm a little bit wiser ๐Ÿ˜‰

                As I understand schema from https://hallard.me/ulpnode-low-power-secret/ atmega 328p must be on in deep sleep mode and monitor "Wake" pin. When NCP302 will turn PIN1 (Reset Output) to ground:

                • atmega will wake up
                • booster will charge capacitor
                • atmega will measure battery voltage (make some more operations like send info with NRF or aoter device*) and go to deep sleep again
                • meanwhile booster will charge capacitor and after reaching 3,6V NCP302 will disconnect it.

                `* this operation can be done after "n" wake-up cycles according to eeprom saved information

                Did I get it right?

                Second thing about NCP302.
                As I understand schematic ๐Ÿ˜‰ there are two mosfets N and P just before PIN1. One is turning of booster (P) and the second (N) is touching to the ground the pin from atmega 328?

                1 Reply Last reply Reply Quote
                • M Offline
                  mj
                  last edited by

                  Ok, I tried to draw this in eagle but I'm missing few things...

                  First I redraw input to get 3.3V as on picture below
                  Description

                  According to point 3.4 Enable Pin (EN)
                  The EN pin is a logic-level input used to enable or
                  disable device switching and lower quiescent current
                  while disabled. A logic high (>90% of VIN) will enable
                  the regulator output. A logic low (<20% of VIN) will
                  ensure that the regulator is disabled.

                  So my NCP has to enable booster by applying >90% of Vin - which for 1,5V AA battery = >1,35 V to enable the booster which is easy while we still have 2V limit from the NCP302. But to turn it off I need less then 20% of Vin which is <0,3V.

                  So my question is how to use NCP302 RST pin 1 to pass those two outputs ? 2V and <0,3V ?
                  Second thing is what capacitor should i use between MCP1640 and NCP302 ?

                  Can you point me to the right direction because I stuck on this:
                  Description

                  1 Reply Last reply Reply Quote
                  • S Offline
                    scalz
                    last edited by scalz

                    @mj : oki I see. So few things :

                    • drive you booster EN with ncp RST with mosfet.
                    • drive ncp CD with arduino. vin ncp to vin.
                    • for capa storage, it depends of your circuit,47 to 100uf for instance...
                      but to have the whole thing ultra low power there are lot of other tricks to do. schema is a little bit more complicated. Maybe you should wait a little bit. I think Charles is working hard to publish all his work ๐Ÿ˜‰ I will publish my work soon, this month I think, I am working on others projects actually but I will try to take some time...
                    1 Reply Last reply Reply Quote
                    • M Offline
                      mj
                      last edited by

                      Thanks for answer.
                      Eeee waiting for other people solution is good for business ๐Ÿ˜‰ and this is my fun to find the solution ๐Ÿ˜‰

                      So first of all I bought those parts NCP and MCP ๐Ÿ™‚ but I had to look for those in china ๐Ÿ˜‰ because in Poland no one would like to sell me 3-5 pcs. I could buy 100 or 50 pcs. ๐Ÿ˜‰ which is a way to much.

                      So I have a week to reorganize my schem and think about other "tricks". Of course It would be the best to touch those components and try a few things... but I'll have to wait.

                      I'll try to update my schema and then we can talk further.

                      M 1 Reply Last reply Reply Quote
                      • M Offline
                        mj @mj
                        last edited by

                        Hello,
                        finaly I have all needed parts and I started to build my own ULPNode.

                        To make as small current as possible I'm looking for best mosfets for this purpose.
                        I have found: IRLR6225PBF with n-channel (2V - ~10mOhm) or SiA436DJ (1,8V ~12,5mOhm)

                        and SiSS23DN with p-channel (Rds(on) (-1,8V - ~11,5 mOhm)

                        Did anyone found something better than this?

                        1 Reply Last reply Reply Quote
                        • M Offline
                          mj
                          last edited by

                          Hello,
                          I have finaly build (recreated) what Charles showed...

                          I have one problem now. How to turn MCP for the first time battery is inserted.
                          Can someone show me how he did it?

                          My schema looks like this and is EN by low state from voltage supervisor.
                          alt text

                          1 Reply Last reply Reply Quote
                          • First post
                            Last post

                          4

                          Online

                          5.7k

                          Users

                          534

                          Topics

                          5.0k

                          Posts

                          Top Topics

                          • Denky 4 - Domoticz - Triphasรฉ -
                            Nicolas BernaertsN
                            Nicolas Bernaerts
                            0
                            7
                            249

                          • Denky D4 et Linky Standard TInfo Rx Non Configurรฉ
                            CharlesC
                            Charles
                            0
                            5
                            282

                          • CC1101
                            CharlesC
                            Charles
                            0
                            2
                            117

                          Popular Tags

                          teleinfo
                          24 topics
                          arduino
                          19 topics
                          remora
                          16 topics
                          esp8266
                          10 topics
                          arduipi
                          10 topics
                          wifinfo
                          7 topics
                          raspberry
                          7 topics
                          broadcast
                          7 topics
                          Copyright ยฉ 2022 Charles-Henri Hallard | Return to blog page | Powered by NodeBB