Whenever I dump my code and run it through USB power my code works fine but when i remove USB cable and switch on battery power the code doesnt work properly. I need to press the reset button and it works fine. Its tedious every time to press reset.
Please suggest me any possible software reset !!