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. Node freezing up

Node freezing up

Scheduled Pinned Locked Moved Troubleshooting
29 Posts 9 Posters 14.7k Views 3 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.
  • ferpandoF Offline
    ferpandoF Offline
    ferpando
    Hero Member
    wrote on last edited by
    #1

    Hello,

    I have a node that every once in a while just stops responding.
    I have to unplug it to get it back working.
    It is strange because it doesn't appear to be a reason.
    Anyone had issues like this before?

    1 Reply Last reply
    1
    • korttomaK Offline
      korttomaK Offline
      korttoma
      Hero Member
      wrote on last edited by
      #2

      I had similar behavior when I accidentally feed 5V to the NRF24L01+ so my guess is a power issue like in most cases. Check the voltage on the NRF24L01+.

      • Tomas
      ferpandoF 1 Reply Last reply
      0
      • korttomaK korttoma

        I had similar behavior when I accidentally feed 5V to the NRF24L01+ so my guess is a power issue like in most cases. Check the voltage on the NRF24L01+.

        ferpandoF Offline
        ferpandoF Offline
        ferpando
        Hero Member
        wrote on last edited by
        #3

        @korttoma
        Yes I did check the power but maybe is a defective module?
        It only happens when not connected to the console, so it's hard to track down

        1 Reply Last reply
        0
        • MagiskeM Offline
          MagiskeM Offline
          Magiske
          wrote on last edited by
          #4

          What are you powering it with ?? 5v usb or battery ??

          ferpandoF 1 Reply Last reply
          0
          • AWIA Offline
            AWIA Offline
            AWI
            Hero Member
            wrote on last edited by AWI
            #5

            It happened frequently to me when using relays (inductive load). Spikes on the powerline can easily freeze the radio.

            ferpandoF 1 Reply Last reply
            0
            • GuyPG Offline
              GuyPG Offline
              GuyP
              wrote on last edited by
              #6

              Can you give more details of what your node is? what hardware have you used? do you have a circuit diagram?

              ferpandoF 1 Reply Last reply
              0
              • MagiskeM Magiske

                What are you powering it with ?? 5v usb or battery ??

                ferpandoF Offline
                ferpandoF Offline
                ferpando
                Hero Member
                wrote on last edited by
                #7

                @Magiske
                12V power supply

                1 Reply Last reply
                0
                • AWIA AWI

                  It happened frequently to me when using relays (inductive load). Spikes on the powerline can easily freeze the radio.

                  ferpandoF Offline
                  ferpandoF Offline
                  ferpando
                  Hero Member
                  wrote on last edited by
                  #8

                  @AWI
                  Relays are isolated using opto-couplers so it should`t be a problem.
                  The relay board is this or very similar:

                  http://www.ebay.com/itm/Durable-New-16-Channel-12V-Relay-Module-Interface-Board-For-Arduino-PIC-ARM-DSP-/331477749403

                  Power goes to the relay board and then it powers the arduino

                  AWIA 1 Reply Last reply
                  0
                  • MagiskeM Offline
                    MagiskeM Offline
                    Magiske
                    wrote on last edited by
                    #9

                    And you have added a cap for the radio ?
                    Try to add a blink, just to see if the board crashed/freezes. If not it's properly the radio.

                    ferpandoF 1 Reply Last reply
                    0
                    • GuyPG GuyP

                      Can you give more details of what your node is? what hardware have you used? do you have a circuit diagram?

                      ferpandoF Offline
                      ferpandoF Offline
                      ferpando
                      Hero Member
                      wrote on last edited by
                      #10

                      @GuyP
                      sorry no diagram, but the node is basically an arduino with radio connected to this relay board

                      1 Reply Last reply
                      0
                      • MagiskeM Magiske

                        And you have added a cap for the radio ?
                        Try to add a blink, just to see if the board crashed/freezes. If not it's properly the radio.

                        ferpandoF Offline
                        ferpandoF Offline
                        ferpando
                        Hero Member
                        wrote on last edited by
                        #11

                        @Magiske
                        Yes it has a cap on the radio.
                        What do you mean by add a blink?

                        1 Reply Last reply
                        0
                        • MagiskeM Offline
                          MagiskeM Offline
                          Magiske
                          wrote on last edited by Magiske
                          #12

                          Just add blink code or add an ekstra led to see if the code is running..

                          ferpandoF 1 Reply Last reply
                          0
                          • MagiskeM Magiske

                            Just add blink code or add an ekstra led to see if the code is running..

                            ferpandoF Offline
                            ferpandoF Offline
                            ferpando
                            Hero Member
                            wrote on last edited by
                            #13

                            @Magiske
                            Ok got it.
                            I have a led on board, so I'll make it blink to see if it is still alive

                            1 Reply Last reply
                            0
                            • ferpandoF ferpando

                              @AWI
                              Relays are isolated using opto-couplers so it should`t be a problem.
                              The relay board is this or very similar:

                              http://www.ebay.com/itm/Durable-New-16-Channel-12V-Relay-Module-Interface-Board-For-Arduino-PIC-ARM-DSP-/331477749403

                              Power goes to the relay board and then it powers the arduino

                              AWIA Offline
                              AWIA Offline
                              AWI
                              Hero Member
                              wrote on last edited by
                              #14

                              @ferpando The optocoupler takes care of the load on the Arduino outputs. What I tried to say is that the inductive load of the relays on the power lines can be substantiall. I there is any sharing of power (same supply) of the relay and the radio it is very hard to avoid lock-ups.

                              below an excerpt from Jeelabs
                              upload-17c0f15c-c9de-4b00-9e21-80017497b551

                              ferpandoF 1 Reply Last reply
                              0
                              • AWIA AWI

                                @ferpando The optocoupler takes care of the load on the Arduino outputs. What I tried to say is that the inductive load of the relays on the power lines can be substantiall. I there is any sharing of power (same supply) of the relay and the radio it is very hard to avoid lock-ups.

                                below an excerpt from Jeelabs
                                upload-17c0f15c-c9de-4b00-9e21-80017497b551

                                ferpandoF Offline
                                ferpandoF Offline
                                ferpando
                                Hero Member
                                wrote on last edited by ferpando
                                #15

                                @AWI
                                I don't have an oscilloscope to test this.
                                I'll try to power both devices separately, but at least they always have a common ground. Could this also affect the radio?
                                Adding some capacitors could improve things?

                                1 Reply Last reply
                                0
                                • AWIA Offline
                                  AWIA Offline
                                  AWI
                                  Hero Member
                                  wrote on last edited by
                                  #16

                                  @ferpando A common ground is ok (and necessary).. A capacitor can improve things. Many times it is trial & error. What worked for me is having a seperate regulator and decoupling capacitor of 470uF for the feed to the relay. It is hard to read the schematic of the relay board on e-bay but measures like a diode over the relay-coil need to be in (and probably are). Switching inductive loads with the relay can also introduce EM problems.

                                  It's science... using Solid State relays is a long term reliable (short term expensive) alternative. ... good luck, there may be experts around on the forum.

                                  ferpandoF 1 Reply Last reply
                                  0
                                  • AWIA AWI

                                    @ferpando A common ground is ok (and necessary).. A capacitor can improve things. Many times it is trial & error. What worked for me is having a seperate regulator and decoupling capacitor of 470uF for the feed to the relay. It is hard to read the schematic of the relay board on e-bay but measures like a diode over the relay-coil need to be in (and probably are). Switching inductive loads with the relay can also introduce EM problems.

                                    It's science... using Solid State relays is a long term reliable (short term expensive) alternative. ... good luck, there may be experts around on the forum.

                                    ferpandoF Offline
                                    ferpandoF Offline
                                    ferpando
                                    Hero Member
                                    wrote on last edited by
                                    #17

                                    @AWI
                                    Looks like it has a regulator and a 1000uF capacitor plus a smaller one.
                                    I'll try to add a second regulator with capacitor just for the arduino and see what happens

                                    image.jpg

                                    AWIA vladimirV 2 Replies Last reply
                                    0
                                    • ferpandoF ferpando

                                      @AWI
                                      Looks like it has a regulator and a 1000uF capacitor plus a smaller one.
                                      I'll try to add a second regulator with capacitor just for the arduino and see what happens

                                      image.jpg

                                      AWIA Offline
                                      AWIA Offline
                                      AWI
                                      Hero Member
                                      wrote on last edited by
                                      #18

                                      @ferpando That certainly looks like a power supply. Please keep me informed.

                                      1 Reply Last reply
                                      0
                                      • T Offline
                                        T Offline
                                        TimO
                                        Hero Member
                                        wrote on last edited by
                                        #19

                                        I have exactly the same Problem. But I'm not sure the relays are the problem.
                                        I've added a keep alive message to know when it stops working and implemented a watchdog.

                                        ferpandoF AWIA 2 Replies Last reply
                                        0
                                        • T TimO

                                          I have exactly the same Problem. But I'm not sure the relays are the problem.
                                          I've added a keep alive message to know when it stops working and implemented a watchdog.

                                          ferpandoF Offline
                                          ferpandoF Offline
                                          ferpando
                                          Hero Member
                                          wrote on last edited by
                                          #20

                                          @TimO
                                          Could you elaborate a bit more about the watchdog?

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


                                          12

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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