
Arduino disconnecting from serial monitor USB after running relays
I've got an arduino nano running an 120V AC motor through a sunfounder 4 Relay board.
When I plug in the arduino to control it through Serial.read() and see outputs from Serial.println() it works for about 30s then the arduino IDE says "Not connected" and I can no longer give or receive anything. The arduino remains powered and the program continues running.
On the left in the extension cord I've got that board powered by an external 5V supply, and the motor 120V supply plugged in. On the right is the motor run capacitor. The arduino does not disconnect like this when the motor is not plugged in.
I would appreciate any feedback on what might be causing this issue. Thank you!
Edit: Update, the issue is definitely the motor. When switching the 3 relays on/off at once the arduino does not disconnect from the serial terminal, but when the motor is turning on and off it does.