I have an Elegoo MEGA 2560 R3 Board ATmega2560 ATMEGA16U2 and am using the Arduino 1.8.3 IDE to run a simple sketch-see below:
I am running the Arduino IDE on an iMac computer, with macOS Sierra, v 10.12.5 as the operating system. The PORT that shows on the sketch window is: /dev/cu.usbmodem913.
The problem I am having is that each time I attempt to upload the sketch, shown above, the port number changes, ie. it will change to /dev/cu.usbmodem1431 or some other number, so that each time I try to upload the sketch an error occurs that reads: “the selected serial port
does not exist or your board is not connected”.
How do I get the computer and the IDE to use a single PORT number so that I can upload the sketch? Any ideas or help would be most appreciated.
Arduino error description.txt (2.67 KB)