my Arduino nano is resetting the loop without apparent reason.
I found, following the Serial Monitor that is happening when I try to print millis(). I just update the Windows 11 IDE [ 2.3.0 ] [ CLI 0.35.2 ] and I don't remember this happens before.
SOLVED : Serial.print uses lots of memory. My Arduino was running out of memory. That's why it was resetting. [ pretty sure ]. Once removed few of them, the problem went away.
Sorry for the late update. Hope it will helps somebody else
dc
Sorry I cannot see your machine or code.
Posting the code following forum guidelines using code tags will also help. With this information we should be able to answer your question accurately. "How to get the best from this forum". How to get the best out of this forum
Yes @gilshultz , Thank you.
Nano is controlling a water process machine, lots of codes and functions. I will try to find repeatability and post that code, but twice the execution trace goes just until the instruction to print the millis(). The next line to print is the announcement of a new loop.
Thank you again for your interest. I a can't find repeatability, i will delete the post.
dc
This sounds like it may be a EMI (Electromagnetic Interference) problem. Why delete it, then you will never know the problem. There are many possibilities. The next thing I would like is an annotated schematic showing exactly how it was wired. Note any wires over 10"/25cm. Also include links to technical information on the modules you have used.