Arduino automatically restarts

My Arduino automatically reboots unexpectedly. I do not open Seriam Monitor, I also do not touch the reset button. How to prevent Arduino from restarting unexpectedly?

Answer

There are some reasons cause Arduino reset automatically:

int myArray[4] = {1, 2, 3, 4}; void setup() { Serial.begin(9600); Serial.println("#### ARDUINO STARTED ####"); delay(500); for (int i = 0; i <= 100; i++) { myArray[i] = 5; } for (int i = 0; i <= 100; i++) { Serial.println(myArray[i]); } } void loop() { Serial.println("NOT REBOOT"); }
COM6
Send
#### ARDUINO STARTED #### #### ARDUINO STARTED #### #### ARDUINO STARTED #### #### ARDUINO STARTED ####
Autoscroll Show timestamp
Clear output
9600 baud  
Newline  

Buy Arduino

1 × Arduino UNO Buy on Amazon
1 × USB 2.0 cable type A/B Buy on Amazon
1 × Jumper Wires Buy on Amazon
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.

The Best Arduino Starter Kit

※ OUR MESSAGES