The led flashes fine when sketch is first loaded. When power is disconnected then reconnected the sketch does not run. The L led on the Nano flashes aprox every second.
Plug:
The led flashes fine when sketch is first loaded. When power is disconnected then reconnected the sketch does not run. The L led on the Nano flashes aprox every second.
This does not happen in my case. After power cycle, the built-in LED of NANO lashes for 7 times and then begins the sketch which blinks an external LED + 2k2 at 2-sec intervval. We can also begin the sketch execution by pressing the RESET button or invoking the Serial Monitor.
Thanks for the quick responses but I've just clocked the issue.
I've been running the Nano from laptop USB while I've been writing this sketch.
When powering the Nano from the laptop in sleep mode or from a battery the sketch executes fine.
Never had this problem before?
All's well now.
Thanks again for your responses.
When powering the Nano from the laptop in sleep mode or from a battery the sketch executes fine.
Sorry but I don't get that. Are you saying that the program does not run properly when the Nano is powered by USB and the laptop is not in sleep mode ?
What type of battery are you using and how is it connected to the Nano ?