Is there a way of preventing the reset when starting the serial monitor in the Arduino IDE?
20
votes
3 Answers
17
votes
4
votes
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
votes
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()}
}