20

Is there a way of preventing the reset when starting the serial monitor in the Arduino IDE?

dsolimano
  • 8,870
  • 3
  • 48
  • 63
powtac
  • 40,542
  • 28
  • 115
  • 170

3 Answers3

17

For the Uno, connect a 10μF capacitor between the reset and ground pins.

For other Arduinos, a 120 Ohm resistor (or equivalent resistance made up of multiple resistors, since 120 Ohms is quite rare on its own) between the 5V and Reset pins should do the trick.

Michael Berry
  • 70,193
  • 21
  • 157
  • 216
  • 1
    This means I can simply place a capacitor/resistor between the reset and ground pin on a running Arduino board and then connect without the common reset? – powtac Apr 09 '13 at 18:47
  • 2
    Correct. I have a couple of Unos running this way, no problems at all. – Michael Berry Apr 09 '13 at 18:48
4

The arduino Playground site has a quite detailed breakdown of different methods of preventing your arduino from restarting, with a bit of background and explanation.

http://playground.arduino.cc/Main/DisablingAutoResetOnSerialConnection

2

If you would connect a Windows PC, This rudimentary Powershell script works (tested on Arduino Mega):

$port = new-Object System.IO.Ports.SerialPort COM8,9600,None,8,one
$port.DtrEnable = $false
$port.open()
while ($true) {
 $nChar = $port.BytesToRead
 if ($nChar -gt 0) {Write-Host -NoNewline $port.ReadExisting()}
}
Rossati
  • 79
  • 1
  • 5