Node freezing up
-
Can you give more details of what your node is? what hardware have you used? do you have a circuit diagram?
-
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. -
@AWI
Relays are isolated using opto-couplers so it should`t be a problem.
The relay board is this or very similar:Power goes to the relay board and then it powers the arduino
@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
-
@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
-
@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.
-
@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.
-
@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
-
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. -
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. -
@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/
-
@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
-
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.@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.
-
@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.
@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.
-
I made this regulator based on this schematic to power the node independently, to see if it solves the problem.


-
Does this node by any chance have a temp. sensor also?
My nightmare.. http://forum.mysensors.org/topic/338/reliability/3
-
Does this node by any chance have a temp. sensor also?
My nightmare.. http://forum.mysensors.org/topic/338/reliability/3
@ServiceXp said:
Mine doesn`t at the moment, but should be easy to add.
-
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?