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. Troubleshooting
  3. Wiring a separate power supply for the radio

Wiring a separate power supply for the radio

Scheduled Pinned Locked Moved Troubleshooting
21 Posts 7 Posters 8.5k 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.
  • YveauxY Yveaux

    @Dan-S. Could you try connecting the IRQ line through a small resistor (e.g 100 ohms) to the Arduino to limit the current to the Arduino and see if this solves your problem?

    Dan S.D Offline
    Dan S.D Offline
    Dan S.
    Hero Member
    wrote on last edited by
    #12

    @Yveaux

    Good suggestion. Certainly worth a try. Will let you know how it works out.

    1 Reply Last reply
    0
    • YveauxY Yveaux

      @Dan-S. Could you try connecting the IRQ line through a small resistor (e.g 100 ohms) to the Arduino to limit the current to the Arduino and see if this solves your problem?

      Dan S.D Offline
      Dan S.D Offline
      Dan S.
      Hero Member
      wrote on last edited by
      #13

      @Yveaux

      Didn't work with 100 o 1k, but did work with 10k. Wonder if the interrupt would still function with that value of a resistor in line?

      Dan S.D 1 Reply Last reply
      0
      • Dan S.D Dan S.

        @Yveaux

        Didn't work with 100 o 1k, but did work with 10k. Wonder if the interrupt would still function with that value of a resistor in line?

        Dan S.D Offline
        Dan S.D Offline
        Dan S.
        Hero Member
        wrote on last edited by
        #14

        @Dan-S. last message should read Didn't work with 100 or 1k ohm

        1 Reply Last reply
        0
        • A Offline
          A Offline
          a-lurker
          wrote on last edited by
          #15

          @DAN S "...do I really need the IRQ line?"

          As far as I can see the IRQ is not used by the NRF24 radio library. I don't ever wire it to the radio.

          YveauxY 1 Reply Last reply
          0
          • A a-lurker

            @DAN S "...do I really need the IRQ line?"

            As far as I can see the IRQ is not used by the NRF24 radio library. I don't ever wire it to the radio.

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by Yveaux
            #16

            @a-lurker the current implementation of the library does not use the interrupt, but future implementations might.
            Still it is an interesting case why connecting it causes the setup to fail.

            http://yveaux.blogspot.nl

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              Zeph
              Hero Member
              wrote on last edited by Zeph
              #17

              Hmm. I remember connecting two Arduino Uno's via the serial lines to test that inter-uC communication; each was powered by a USB connection to a different laptop. ONLY ground, TC and RX connected between the two Unos. It worked fine.

              But I was surprised to see that even after I unpowered one of the Unos after the test (removed the USB cable), it was still operating and blinking an LED. It would even echo back characters it received from the powered Uno, as it had been programmed to do. All this with no power supply, period. I was a bit puzzled!

              It turns out that the nominally unpowered ATMega328P was receiving power THROUGH the powered Uno's TX digital pin connected to the unpowered Uno's RX digital pin, probably through the latter's static protection diode. (TX was high most of the time). The powered Uno's digital output pin can supply up to 40 ma. The supposedly unpowered Uno was runnning at lower than 5V (due to the diode drop) but still had enough voltage and power for the uC to operate, as well as to light the led on the Uno board (ie: power flowed into the digital pin and back out the VCC pin of the processor.

              I wonder if something similar is happening here, with the nRF24L01+ IRQ output feeding power into the Nano via the latter's digital pin, such that the Nano at least partially operates, and then does not do a clean startup when it receives its own normal power. Given that the Nano would be running on 3.3v minus the protection diode drop, it may not run as well as the Uno did. Also the nRF's IRQ output may not supply as much current as another ATMega pin, but the ATMega can run on surprisingngly low voltage and current, so maybe it at least achieved some kind of zombie state using power from the nRF's IRQ.

              The nRF may not have this tendency to run with no VCC supplied power by relying instead on parasitic power from a digital input, so powering the Nano first is OK.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                a-lurker
                wrote on last edited by
                #18

                Nice analysis - powering up devices in an appropriate order can definitely cause problems such as via the (parasitic) static protection diodes seen on various pins. Presumably this invokes Yveaux's interest in current limiting resistors.

                It's a bit unclear how the layout under discussion is actually powered. A cct diagram would be useful here but generally speaking, everything should be powered up pretty much simultaneously, if possible. Regardless the various arduino ccts in existence seem to provide a variety of power paths, many of which are perhaps undesirable. eg supplying power directly to power lines that have on board regulators and hoping that "back driving" those regulators will not cause problems. Likewise various arduinos use the serial chip to provide some power and it's quickly overloaded.

                A detailed cct is required to provide any definitive PSU analysis.

                1 Reply Last reply
                0
                • Dan S.D Offline
                  Dan S.D Offline
                  Dan S.
                  Hero Member
                  wrote on last edited by
                  #19

                  Thanks to everyone for their input. Was a great help. In the end I decided to connect the IRQ line even thought it is not used now, since as pointed out by A-LURKER, it may be in the future. Thanks to Yveaux's suggestion I ended up using a 10k ohm resistor on the IRQ line and now everything works, even if the separate power supply to the radio is fired up first. I think, although I didn't prove it, that the IRQ should work fine even with a 10k ohm resistor in series. A 10k ohm resistor value is usually recommended for use in Arduino as a pull down/up resistor so I think it should work fine here also.

                  1 Reply Last reply
                  0
                  • jocke4uJ Offline
                    jocke4uJ Offline
                    jocke4u
                    wrote on last edited by
                    #20

                    Hi,
                    I think this is a good thread since power supply seems to be the most tricky one in this. Shouldn't it be possible to have a "reference architecture" for power supply to eliminate 80-90% of the issues people (including me) run into?!

                    I made some tests on a problematic sensor yesterday and sicne I use NRF24L01+PA+LNA (Antenna version) I added 5V external supply and AMS1117 5V-3.3V Step Down Module, with IRQ connected over 10k resistor but got a number of problems e.g. MySensors complaining "check wires". Maybe it's possible/ok (the logic detecting presence of the radio) if the radio isn't alive before Arduino starts?!

                    Got tired of it and setup a new sensor...

                    Dan S.D 1 Reply Last reply
                    0
                    • jocke4uJ jocke4u

                      Hi,
                      I think this is a good thread since power supply seems to be the most tricky one in this. Shouldn't it be possible to have a "reference architecture" for power supply to eliminate 80-90% of the issues people (including me) run into?!

                      I made some tests on a problematic sensor yesterday and sicne I use NRF24L01+PA+LNA (Antenna version) I added 5V external supply and AMS1117 5V-3.3V Step Down Module, with IRQ connected over 10k resistor but got a number of problems e.g. MySensors complaining "check wires". Maybe it's possible/ok (the logic detecting presence of the radio) if the radio isn't alive before Arduino starts?!

                      Got tired of it and setup a new sensor...

                      Dan S.D Offline
                      Dan S.D Offline
                      Dan S.
                      Hero Member
                      wrote on last edited by
                      #21

                      @jocke4u I have since put the set up I have described above in permanent operation as my Vera gateway and have not had any problems with it. I do have a cap across the NRF24L01+PA+LNA power and ground terminals--that may make a difference, even with external power. I did power up the radio before the Arduino.

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


                      20

                      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