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.
  • 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
                      • ferpandoF ferpando

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

                        MagiskeM Offline
                        MagiskeM Offline
                        Magiske
                        wrote on last edited by Magiske
                        #21

                        @ferpando You can enable a watchdog timer on your Arduino. If your code hangs your Arduino, it should reset/reboot it. But not sure that would reset the radio.

                        Found good description -> http://www.megunolink.com/how-to-detect-lockups-using-the-arduino-watchdog/

                        1 Reply 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

                          vladimirV Offline
                          vladimirV Offline
                          vladimir
                          wrote on last edited by
                          #22

                          @ferpando, @Magiske, You solved this problem? I realized what the problem, but unfortunately, I do not understand how to solve it. Can you explain exactly how to change node?

                          1 Reply 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.

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

                            @TimO said:

                            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.

                            That sounds like you keep the motor running and accept that the car crashes every once in a while ;) Better to find the root cause of the "freeze" and eliminate it.

                            T 1 Reply Last reply
                            0
                            • AWIA AWI

                              @TimO said:

                              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.

                              That sounds like you keep the motor running and accept that the car crashes every once in a while ;) Better to find the root cause of the "freeze" and eliminate it.

                              T Offline
                              T Offline
                              TimO
                              Hero Member
                              wrote on last edited by
                              #24

                              @AWI You're right of course! But ... if the Arduino is the root of all evil in this case, it will reset once in a while but still work. If it still freezes it could be the radio that crashes. So I'm still trying to solve the problem. :-)

                              All parts use the same 5V source (which I already switched) but the radio of course is connected through a regulator. If the watchdog solves the problem (so the radio is not the problem) I will add a bigger capacitor which I already ordered.

                              1 Reply Last reply
                              0
                              • ferpandoF Offline
                                ferpandoF Offline
                                ferpando
                                Hero Member
                                wrote on last edited by
                                #25

                                I made this regulator based on this schematic to power the node independently, to see if it solves the problem.

                                IMG_8863.JPG

                                7805-5V-Regulated-Power-Supply-Overvoltage-Protection-Circuit-diagram.jpg

                                1 Reply Last reply
                                0
                                • RJ_MakeR Offline
                                  RJ_MakeR Offline
                                  RJ_Make
                                  Hero Member
                                  wrote on last edited by
                                  #26

                                  Does this node by any chance have a temp. sensor also?

                                  My nightmare.. http://forum.mysensors.org/topic/338/reliability/3

                                  RJ_Make

                                  ferpandoF 1 Reply Last reply
                                  0
                                  • RJ_MakeR RJ_Make

                                    Does this node by any chance have a temp. sensor also?

                                    My nightmare.. http://forum.mysensors.org/topic/338/reliability/3

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

                                    @ServiceXp said:

                                    http://forum.mysensors.org/topic/338/reliability/3

                                    Mine doesn`t at the moment, but should be easy to add.

                                    1 Reply Last reply
                                    0
                                    • NuubiN Offline
                                      NuubiN Offline
                                      Nuubi
                                      wrote on last edited by
                                      #28

                                      Any update on this?
                                      Asking since I also have a multisensor that locks up every now and then. Thinking of some way to reset the radio a couple of times per day.
                                      Any suggestions how to implement this?

                                      ferpandoF 1 Reply Last reply
                                      0
                                      • NuubiN Nuubi

                                        Any update on this?
                                        Asking since I also have a multisensor that locks up every now and then. Thinking of some way to reset the radio a couple of times per day.
                                        Any suggestions how to implement this?

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

                                        @Nuubi
                                        No more node lock-ups since I installed that power supply, so it works as expected.

                                        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