Strange Nano behaviour

Arduino forum,

Just recently I've started encountering some strange behaviour with my Nano.

The loop() in sketches I have been using for some time suddenly don't execute all the code inside of them. In one I turn on an led at the top of the loop and that works but that's all. It will blink on and off as if the restart button has been pressed. If I just sit there and let it continue in that mode all the code will suddenly begin to be executed perfectly. After that if I push the restart button it works every time. This may or may happen again when the sketch is upload again.

I haven't tried all of my sketches but the several I am working with right now all have this problem.

I re-installed arduino 1.8.7 but it didn't help.

jerdon

Interesting project but we are not a free design or code writing service. We will be happy help out with your design and or code but first you have to make an attempt to design it, write it, post it and explain what is not working properly. Please be assured we cannot accurately guess what your code is and what the problem is.

If there is hardware as there is in your case it is always best to post links to technical information as there are many versions of the same or different items. Since we cannot see your project, my eyes are to weak, you need to post using the language of electronics, an annotated schematic, (best) or a clear picture of a drawing. Pictures never hurt. Frizzing diagrams are not considered schematics here, they are wiring diagrams, great for assembly lousy for troubleshooting.

Useful links - check here for reference posts / tutorials

Yep I think I see it, it is the third pin on the unit to the right. That is about an accurate answer you can get with the information given. What board, what shield, how is it wired, how is it powered all helps. A annotated schematic would have all of this information except the links to the hardware items technical information you need to supply.

HINT: Hardware and software (firmware) are closely related and knowledge of one does not guarantee knowledge of the other so post both.

gilshultz,
Thanks for the reply,

I'm actually not looking for someone to debug my software or hardware but since you think this was the wrong category to post this I'll try a different one.

jerdon

Arduino forum,

Just recently I've started encountering some strange behaviour with my classic Nano.

The loop() in sketches I have been using for some time suddenly don't execute all the code inside of them. In one I turn on an led at the top of the loop and that works but that's all. It will blink on and off as if the restart button has been pressed. If I just sit there and let it continue in that mode all the code will suddenly begin to be executed perfectly. After that if I push the restart button it works every time. This may or may happen again when the sketch is upload again.

I haven't tried all of my sketches but the several I am working with right now all have this problem.

USB 5 volts checks out.

I re-installed arduino 1.8.7 but it didn't help.

jerdon

I think that to be able to assist, we need a schematic / wiring diagram that shows everything that is connected to the Nano as well as all power/gnd and an example of the code that exhibits the behaviour.

1 Like

You should not; please read How to get the best out of this forum (and specifically How to get the best out of this forum).

I've merged your two topics on the same subject.

The problems you describe could be due to code, wiring or both. Post the details.

1 Like

What are you looking for in not one or both of these?

1 Like

Sounds like something is overloading the power supply, pulling voltage down until "brownout" resets / restarts the Arduino, then repeats until voltage stabilizes. Post a wiring diagram and your code.

1 Like

JCA34F,
Thanks for steering me toward the power supply. I found a flaky switch on the side of my battery box. Luckily I had another one. All seems okay for now.

jerdon