This may have been addressed in another post but I do not have the time to read 632 posts.
I can transfer the sketch to the board and it works fine, but then the port disappears.
This happens on the Arduino Uno and the Arduino Mega using the Adafruit motor shield v2.1.
I have to reload the Arduino USB driver every time and it does the same thing.
Is there an issue with the USB uploading on the board?...I see this same issue in so many other posts and there seems to be no fix...other that using a serial port. What good is the USB if it has to be changed?
I'll assume there is no fix...
I'm using all original Arduino components
i cant understand you problem properly.
you means to say when you use arduino uno & mega without connected shield , it detect the port & you can upload the code.
As soon as you connect sheild your port being disapper right or wrong??
1)always keep in might while using sheild , you need to use shield once code uploaded. i found that whenever you try to upload code with sheild either it end up with bootloader crashed or upload errors.
-
you are using motor shield, i would recommend to use external power supply to power on your arduino , dont try to power on using USB cable. there might chance of blowing usb to ttl out IC in arduino
-
OS you might be using get corrupted or drivers are outdated w.r.t IDE. download latest version of IDE v1.6.0 onwards
do this test don't connect arduino motor sheild, just plug your arduino uno/ mega directly check whether port being detected or not. if not install driver manually. just do it 2 to 3 times with each board make ensure in device manager whenever you connect you get same port if
example :when you connect/ reconnect arduino uno board without sheild 1) you must got common com3 2) com 3 3) com 3 each time its for example.
if you find port being change for same arduino uno board like 1)com3 2)com5 3)com7 it means you need to clear comport you can do using below procedure
stil problem reside it means its OS issue.
else you can try to assign your own comport section
devicemanager-> port-> properties-> advance setting-> choose port which is not in use-> ok
disconnect arduino & connect it back you should find assigned port here. it should not change next time you disconnect.