As a point of interest, Arduino recognizes DTR as the signal to reset (for programming purposes). Any terminal app that allows you to switch DTR off can connect/disconnect without resetting Arduino.
hello,
now i connected 5 v mit resist 125 ohm to the resest pin on Arduino uno board. and when i close the serial window it is staying on. but when i opend the window again it turns off. is this also normal.
thanks a lot
Opening the Serial Monitor causes the Arduino to reset - that is normal.
It is not normal to need an external resistor between reset and Vcc with an Uno. That should already be taken care of on the Uno board.
I suggest you use a higher value resistor - perhaps 4700 ohms.
...R
but here the say something like this is possible.
Arduino Playground - DisablingAutoResetOnSerialConnection :o
samuel522:
but here the say something like this is possible.
Yes it is possible to circumvent the default auto-reset when you open the serial monitor
But you started this Thread with a very different problem - your Arduino appeared to be resetting when you closed the serial monitor.
...R
thats true >:( it is funktion normal when i i connected the resistor. but it did not stop the serial auto reset. it is really strange. the reason is the mico-controller at least i think
samuel522:
thats true >:( it is funktion normal when i i connected the resistor. but it did not stop the serial auto reset. it is really strange.
There are two completely different issues. The resistor may prevent the incorrect restart when the Serial Monitor closes but it does not prevent the intentional reset when it opens.
...R
I realize this thread has been inactive, but I came across it because I am having a similar problem.
I wanted to add that I have some notes in a program (I think it was before I was using Windows 10) regarding reading from the Serial Monitor. Apparently, I found that when more than one character is entered on the keyboard, it takes a few milliseconds for the entire code to be available to the program. My variable xyz was returning how many characters were available to be read from the input stream
Part of the code is as follows:
if ((Serial.available() != 0)) {
delay (5); // delay needed for .available() to get accurate number min ~ 2
xyz = Serial.available();
if ((xyz != 0)) {
FWIW.
Read Robin's serial input basics thread.
Serial is slow, the processor can already have handled a full loop() while the transfer of the next byte is still on progress.