# Arduino auto resets after opening serial monitor

**URL:** <https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915>\
**Category:** IDE 1.x\
**Created:** [April 19, 2021, 6:33pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915 "2021-04-19T18:33:38Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![vintzi](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@vintzi](https://forum.arduino.cc/u/vintzi)\
**Post date:** [April 19, 2021, 6:33pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/1 "2021-04-19T18:33:38Z")

</div>

I just noticed that when I upload the code to the Arduino and open the Serial monitor it resets and I don't know why. I searched it on the internet and some said that this is normal but my Arduino didn't do that since I bought it (a week ago), it just started doing it today and i'ts really annoying, please help me.

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [April 19, 2021, 6:39pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/2 "2021-04-19T18:39:08Z")

</div>

Which Arduino? Which operating system.

Most AVR based Arduinos reset when you open the serial port. In a number of terminal programs you can influence the behaviour, in others (like serial monitor) you can't.

---

<div class="post-metadata">

**Author:** ![vintzi](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@vintzi](https://forum.arduino.cc/u/vintzi)\
**Post date:** [April 19, 2021, 7:23pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/3 "2021-04-19T19:23:45Z")

</div>

Mine says Arduino UNO R3 ATMEGA328P. The most weird thing is that a few days ago it didn't restart after opening the Serial monitor. Somehow, from today, it does...

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [April 19, 2021, 7:32pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/4 "2021-04-19T19:32:29Z")

</div>

The lack of a reset was the unusual behavior. What you are seeing now is the unexpected behavior.

The reason for this auto-reset circuit is to allow easy uploads to the Uno. With the original Arduino boards, you had to manually reset the board at the right time to make an upload. This is the origin of the practice of putting reset buttons on this class of Arduino board, even though that button is very rarely used.

It is possible to disable the auto reset, but you might find you miss the easy uploads. And this Serial Monitor reset behavior is often useful also. Without it, you would miss all the text that was printed between the time the program started running and when the Serial Monitor opened.

Did you have any sort of circuitry or shield connected to your board before when the reset wasn't happening? It might have interfered with the auto-reset.

---

<div class="post-metadata">

**Author:** ![vintzi](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@vintzi](https://forum.arduino.cc/u/vintzi)\
**Post date:** [April 19, 2021, 7:51pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/5 "2021-04-19T19:51:11Z")

</div>

> [@pert](#):
>
> What you are seeing now is the unexpected behavior.

You mean " **expected"**??

> [@pert](#):
>
> Without it, you would miss all the text that was printed between the time the program started running and when the Serial Monitor opened.

Although that makes sense a lot and would be very helpful (never thought of that) it makes me mad as I wasn't dealing with that situation.

> [@pert](#):
>
> Did you have any sort of circuitry or shield connected to your board before when the reset wasn’t happening?

Yes I've tried many circuits and projects and it wasn't resetting every time I opend the Serial Monitor.

> [@pert](#):
>
> It might have interfered with the auto-reset.

Sometimes I've accidentally plugged in wires into wrong pins. Could that have interfered with the auto-reset??

Is there any way to "RESET" the Arduino UNO module? (I mean like getting it to its first state, as it it was brought to me from the box.)

Thanks a lot for the reply!

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [April 19, 2021, 8:13pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/6 "2021-04-19T20:13:17Z")

</div>

Just use another terminal program. The only convenience of serial monitor is that it is controlled by the IDE and hence doesn't interfere with uploads. The IDE can't control other terminal programs so you must close the port yourself before the upload.

The expected behaviour is that the board resets when you open the serial port. It does that when you open the port for upload or when you open the serial port by opening the serial monitor. So it sounds far more like it was an issue with the PC software than with the board.

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [April 19, 2021, 9:03pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/7 "2021-04-19T21:03:18Z")

</div>

> [@vintzi](#):
>
> You mean " **expected"**??

Correct. I apologize for any confusion caused by my typo.

> [@vintzi](#):
>
> Yes I’ve tried many circuits and projects and it wasn’t resetting every time I opend the Serial Monitor.

Well, there is a chance that one of those unspecified circuits were disabling the auto-reset circuit. It must be able to pull the reset pin LOW, so if you have something connected to that pin that prevents it from going low then it can't reset.

> [@vintzi](#):
>
> Is there any way to “RESET” the Arduino UNO module? (I mean like getting it to its first state, as it it was brought to me from the box.)

It doesn't really work that way. The only exceptions would be:

- The bootloader program that facilitates the upload on the ATmega328P
- The firmware on the ATmega16U2 USB chip on official Uno boards and true clones.

In extremely rare circumstances, the firmware can become corrupted and reflashing the firmware will restore that program to its normal state.

However, I am very doubtful that this is the cause of the behavior you're seeing. Flashing the firmware is a very complex process. Since the current behavior of the board is as expected, I don't see any reason to mess with that.

---

<div class="post-metadata">

**Author:** ![Ballscrewbob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ballscrewbob/32/950458_2.png) [@Ballscrewbob](https://forum.arduino.cc/u/Ballscrewbob)\
**Post date:** [April 19, 2021, 9:20pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/8 "2021-04-19T21:20:26Z")

</div>



---

<div class="post-metadata">

**Author:** ![vintzi](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@vintzi](https://forum.arduino.cc/u/vintzi)\
**Post date:** [April 19, 2021, 9:20pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/9 "2021-04-19T21:20:55Z")

</div>

> [@pert](#):
>
> Correct. I apologize for any confusion caused by my typo.

No problem, I'm glad I realized that though 😄

> [@pert](#):
>
> Well, there is a chance that one of those unspecified circuits were disabling the auto-reset circuit. It must be able to pull the reset pin LOW, so if you have something connected to that pin that prevents it from going low then it can’t reset.

I see. I think I've misconnected something to the reset pin once...

> [@pert](#):
>
> However, I am very doubtful that this is the cause of the behavior you’re seeing. Flashing the firmware is a very complex process. Since the current behavior of the board is as expected, I don’t see any reason to mess with that.

Well you're right. Better not to mess around with it as it works as it should be. Thanks a lot for the help!!!

---

<div class="post-metadata">

**Author:** ![vintzi](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@vintzi](https://forum.arduino.cc/u/vintzi)\
**Post date:** [April 19, 2021, 9:23pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/10 "2021-04-19T21:23:17Z")

</div>

I've never used any other terminal programs so I'm not familiar with them. So reinstalling the Arduino program will make any difference?

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [April 19, 2021, 9:58pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/11 "2021-04-19T21:58:36Z")

</div>



---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [April 20, 2021, 5:37am UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/12 "2021-04-20T05:37:30Z")

</div>

I doubt that re-installing the Arduino IDE will change the behaviour.

I did ask earlier which OS? I often use RealTerm under Windows; it an be configured to suppress the DTR signal when opening a serial port. There are plenty others.

> [@vintzi](#):
>
> I’ve never used any other terminal programs so I’m not familiar with them. So reinstalling the Arduino program will make any difference?

---

<div class="post-metadata">

**Author:** ![vintzi](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@vintzi](https://forum.arduino.cc/u/vintzi)\
**Post date:** [April 20, 2021, 7:12am UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/13 "2021-04-20T07:12:17Z")

</div>

I'm using Windows 10

---

<div class="post-metadata">

**Author:** ![vintzi](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@vintzi](https://forum.arduino.cc/u/vintzi)\
**Post date:** [April 20, 2021, 5:52pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/14 "2021-04-20T17:52:03Z")

</div>

Now that I'm thinking off it, maybe it always did an auto-reset. Maybe because I was using recently a code which delayed the lcd with a "Loading" word at the begging and after opening the Serial monitor it resets. In other codes where there was no delay that auto-reset should be so fast that I didn't notice.

I apologize to everyone for my fault.  
Thanks anyway for all your valuable help!

This thread is finally closed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [August 18, 2021, 5:52pm UTC](https://forum.arduino.cc/t/arduino-auto-resets-after-opening-serial-monitor/850915/15 "2021-08-18T17:52:56Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
