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. Development
  3. Problem with MY_RF24_POWER_PIN

Problem with MY_RF24_POWER_PIN

Scheduled Pinned Locked Moved Development
4 Posts 2 Posters 66 Views 2 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.
  • Takato UmedaT Offline
    Takato UmedaT Offline
    Takato Umeda
    wrote on last edited by
    #1

    I am trying to configure an arduino pro mini/nRF24L01 radio module that will run on 2 AA batteries for at least a few months.
    I think I can do this by using some power saving techniques (removing the LED) and using the sleep() function. However, when I power the nRF24 via pin d2, set MY_RF24_POWER_PIN to 2, and loop between delay(20000) and sleep(20000,true) the voltage on pin d2 does not change--it is constant at 3 volts and the current flow to RAW is a constant about 20 milliamps. Most of the power seems to be needed for the nRF24 module.

    The message I get when sleep() is call is:

    MCO:SLP:MS=20000,SMS=1,I1=255,I2=255,M2=255
    !MCO:SLP:REP

    What am I doing wrong?

    Thank you
    Tom

    mfalkviddM 1 Reply Last reply
    0
    • Takato UmedaT Takato Umeda

      I am trying to configure an arduino pro mini/nRF24L01 radio module that will run on 2 AA batteries for at least a few months.
      I think I can do this by using some power saving techniques (removing the LED) and using the sleep() function. However, when I power the nRF24 via pin d2, set MY_RF24_POWER_PIN to 2, and loop between delay(20000) and sleep(20000,true) the voltage on pin d2 does not change--it is constant at 3 volts and the current flow to RAW is a constant about 20 milliamps. Most of the power seems to be needed for the nRF24 module.

      The message I get when sleep() is call is:

      MCO:SLP:MS=20000,SMS=1,I1=255,I2=255,M2=255
      !MCO:SLP:REP

      What am I doing wrong?

      Thank you
      Tom

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      Welcome to the forum @Takato-Umeda

      !MCO SLP REP means Sleeping not possible, repeater feature enabled

      Documentation: https://www.mysensors.org/apidocs/group__MySensorsCoregrp.html

      Log parser: https://www.mysensors.org/build/parser

      Takato UmedaT 1 Reply Last reply
      0
      • mfalkviddM mfalkvidd

        Welcome to the forum @Takato-Umeda

        !MCO SLP REP means Sleeping not possible, repeater feature enabled

        Documentation: https://www.mysensors.org/apidocs/group__MySensorsCoregrp.html

        Log parser: https://www.mysensors.org/build/parser

        Takato UmedaT Offline
        Takato UmedaT Offline
        Takato Umeda
        wrote on last edited by
        #3

        @mfalkvidd
        Thank you for pointing to my error.
        Subsequently, I tried again without setting the MY_REPEATER_FEATURE and ran into what seems like a radio communications problem. My program which cycles between a sleep() state and awake state with an interval of 20 seconds works for the one or two cycles, but then seems to get stuck when waking up.
        In this stuck state the LED next to the reset button flashes at ~5hz, and the hardware reset button stops the flashing, but does not reset the program--it returns to the stuck state. Only cycling power to the Arduino resets to program.
        The last radio communication received comes from the presentation() stage.
        The loop() portion starts with a delay(timeMS) instruction where in the original case timeMS=20000. Experimenting with an timeMS<8000 causes no problem; however, for several timeMS >9000 the program gets stuck.

        What is the cause of this behavior?

        Thank you

        mfalkviddM 1 Reply Last reply
        0
        • Takato UmedaT Takato Umeda

          @mfalkvidd
          Thank you for pointing to my error.
          Subsequently, I tried again without setting the MY_REPEATER_FEATURE and ran into what seems like a radio communications problem. My program which cycles between a sleep() state and awake state with an interval of 20 seconds works for the one or two cycles, but then seems to get stuck when waking up.
          In this stuck state the LED next to the reset button flashes at ~5hz, and the hardware reset button stops the flashing, but does not reset the program--it returns to the stuck state. Only cycling power to the Arduino resets to program.
          The last radio communication received comes from the presentation() stage.
          The loop() portion starts with a delay(timeMS) instruction where in the original case timeMS=20000. Experimenting with an timeMS<8000 causes no problem; however, for several timeMS >9000 the program gets stuck.

          What is the cause of this behavior?

          Thank you

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @Takato-Umeda if the hardware reset button stops working, the only possible cause is hardware fault. No software can affect the hardware reset.

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


          25

          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