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. Hardware
  3. 1mhz hardware

1mhz hardware

Scheduled Pinned Locked Moved Hardware
27 Posts 8 Posters 7.6k Views 5 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.
  • cimba007C Offline
    cimba007C Offline
    cimba007
    wrote on last edited by cimba007
    #21

    remove the power led (1-2mA), remove the voltage regulator if possible (1mA)

    CrankyCoderC 1 Reply Last reply
    0
    • cimba007C cimba007

      remove the power led (1-2mA), remove the voltage regulator if possible (1mA)

      CrankyCoderC Offline
      CrankyCoderC Offline
      CrankyCoder
      wrote on last edited by
      #22

      @cimba007 Led was already removed. :(

      Home Automation Tinkerer
      www.CrankyCoder.net

      Controller: HomeAssistant in Kubernetes
      Gateway: MQTTClientGateway
      MySensors: 2.3

      1 Reply Last reply
      0
      • cimba007C Offline
        cimba007C Offline
        cimba007
        wrote on last edited by
        #23

        I would only imagine that the VoltageRegulator might be the culprit.

        As you said you use a "3v battery" so there is no need for the VoltageRegulator at all. Where do you apply the power? RAW or VCC? To power your Arduino with higher voltages you connect them to RAW which leads to the regulator.

        On most of my projects I use 2x AA Battery which are connected directly to VCC .. even with the VoltageRegulator intact I am at 66% for the last 7 days .. not loosing a single %.

        PS: Sry .. I missed that you have already removed the voltage regulator + the led.
        The library states to use RISING, FALLING, CHANGE as the interrupt mode but you use LOW .. I don't know to which of the 3 this mapps.

        But my guess is you are using FALLING .. thus waking your node up if you connect pin 2 or 3 to ground .. which means you have some kind of pull up don't you?

        Do you have anything connected to the Arduino ProMini? If so maybe try an empty sketch and remove all connected peripherals. Maybe even you can find some inspiration on this link: http://electronics.stackexchange.com/questions/49182/how-can-i-get-my-atmega328-to-run-for-a-year-on-batteries

        Another really good test on the powerdown current is here:

        http://www.rocketscream.com/blog/2011/07/04/lightweight-low-power-arduino-library/

        with this library (not compatible with mysensor so dont't use at the same time)

        https://github.com/rocketscream/Low-Power

        CrankyCoderC 1 Reply Last reply
        0
        • cimba007C cimba007

          I would only imagine that the VoltageRegulator might be the culprit.

          As you said you use a "3v battery" so there is no need for the VoltageRegulator at all. Where do you apply the power? RAW or VCC? To power your Arduino with higher voltages you connect them to RAW which leads to the regulator.

          On most of my projects I use 2x AA Battery which are connected directly to VCC .. even with the VoltageRegulator intact I am at 66% for the last 7 days .. not loosing a single %.

          PS: Sry .. I missed that you have already removed the voltage regulator + the led.
          The library states to use RISING, FALLING, CHANGE as the interrupt mode but you use LOW .. I don't know to which of the 3 this mapps.

          But my guess is you are using FALLING .. thus waking your node up if you connect pin 2 or 3 to ground .. which means you have some kind of pull up don't you?

          Do you have anything connected to the Arduino ProMini? If so maybe try an empty sketch and remove all connected peripherals. Maybe even you can find some inspiration on this link: http://electronics.stackexchange.com/questions/49182/how-can-i-get-my-atmega328-to-run-for-a-year-on-batteries

          Another really good test on the powerdown current is here:

          http://www.rocketscream.com/blog/2011/07/04/lightweight-low-power-arduino-library/

          with this library (not compatible with mysensor so dont't use at the same time)

          https://github.com/rocketscream/Low-Power

          CrankyCoderC Offline
          CrankyCoderC Offline
          CrankyCoder
          wrote on last edited by
          #24

          @cimba007 thanks! will definitely test out some of this stuff. I am connecting power to vcc and the regulator has been removed.

          2 buttons connected to the interrupt pins, 1 for on 1 for off.

          here is my sleep statement

          whichbutton = sleep(digitalPinToInterrupt(2),LOW,digitalPinToInterrupt(3),LOW,86400000);
          

          Could my resistors connected to the buttons be causing the extra power?

          I would expect that to be the cause because even a door sensor or something would have to trigger the interrupt.

          A buddy of mine suggested I throw an additional multimeter in line so i am actually measuring with 2 and see if maybe my readings are just off or my multimeter is wonky reading it. He thinks maybe the fact i am measuring it is causing the extra current... (sounds like quantum entanglement stuff there, "It changed cause you measured it!!")

          Home Automation Tinkerer
          www.CrankyCoder.net

          Controller: HomeAssistant in Kubernetes
          Gateway: MQTTClientGateway
          MySensors: 2.3

          1 Reply Last reply
          0
          • cimba007C Offline
            cimba007C Offline
            cimba007
            wrote on last edited by
            #25

            Putting a multimeter in series will most likeley only cause a voltage drop of up to 200mV (just a rough number). If your circuit draws very little current even routing this current trough the resistor (which is causing the voltage drop) would not result in additional consumption.

            Lets look at your switches .. if you are using a setup like this:

            http://www.starting-point-systems.com/images/pullup_example.gif

            http://www.microchip.com/forums/m341654.aspx states that there should be zero current consumption while the button is not pressed. Are u using this button setup? If not can u provide a drawing?

            I don't think that the multimeter is to blame. You reported a very weak batterylife even when you are not measuring the current I guess.

            He thinks maybe the fact i am measuring it is causing the extra current... (sounds like quantum entanglement stuff there, "It changed cause you measured it!!")
            

            https://en.wikipedia.org/wiki/Multimeter#Burden_voltage
            http://alternatezone.com/electronics/ucurrent/uCurrentArticle.pdf

            Long story short .. I would not suspect the burden Voltage to be the problem .. I can measure in the 200µA range with my cheapish Multimeter when the Atmega328p is in deep sleep mode .. so something must be drawing current in your setup.

            CrankyCoderC 1 Reply Last reply
            0
            • cimba007C Offline
              cimba007C Offline
              cimba007
              wrote on last edited by cimba007
              #26

              To get the fastest results I would try to disconnect everything from your circuit .. hook up the Multimeter to measure current in lets say 200mA range (if available) and try the deep sleep example from https://github.com/rocketscream/Low-Power

              If the pro mini is in deep sleep mode you can switch from 200mA to 2mA or even 200µA range if available. (just don't let the pro mini wake up while you have the range set very low)

              Lower measure range = higher burden voltage = potential less power for your µC .. maybe even to the point it will go into brown out or start to behave strange

              1 Reply Last reply
              0
              • cimba007C cimba007

                Putting a multimeter in series will most likeley only cause a voltage drop of up to 200mV (just a rough number). If your circuit draws very little current even routing this current trough the resistor (which is causing the voltage drop) would not result in additional consumption.

                Lets look at your switches .. if you are using a setup like this:

                http://www.starting-point-systems.com/images/pullup_example.gif

                http://www.microchip.com/forums/m341654.aspx states that there should be zero current consumption while the button is not pressed. Are u using this button setup? If not can u provide a drawing?

                I don't think that the multimeter is to blame. You reported a very weak batterylife even when you are not measuring the current I guess.

                He thinks maybe the fact i am measuring it is causing the extra current... (sounds like quantum entanglement stuff there, "It changed cause you measured it!!")
                

                https://en.wikipedia.org/wiki/Multimeter#Burden_voltage
                http://alternatezone.com/electronics/ucurrent/uCurrentArticle.pdf

                Long story short .. I would not suspect the burden Voltage to be the problem .. I can measure in the 200µA range with my cheapish Multimeter when the Atmega328p is in deep sleep mode .. so something must be drawing current in your setup.

                CrankyCoderC Offline
                CrankyCoderC Offline
                CrankyCoder
                wrote on last edited by
                #27

                @cimba007 Thanks for the details. Let me get you back some info.

                yes, my buttons are setup like the pullup example image

                i didn't think the multimeter would do it, but at this point i am willing to try anything :)

                I will pull my mini tonight and remove everything and do a test.

                my code only wakes up when button is pressed or every 24 hours. so it shouldn't come on while testing. Ill try with my code and with the sleep example you referenced.

                Thanks!!!!

                Home Automation Tinkerer
                www.CrankyCoder.net

                Controller: HomeAssistant in Kubernetes
                Gateway: MQTTClientGateway
                MySensors: 2.3

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


                17

                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