I had these problem for so long now and I tried so much, but nothing seems to help. In my arduino IDE port is grayed out, so I can't choose my port. I tried multiple computers and on every pc and usb port it is grayed out. When I try to upload my code it says: avrdude: ser_open(): can't open device "\.\COM2". Any suggestions?
I found something in my device management. When I connect the arduino to my pc, the com port 3 detects the device and says it works. But after 3 seconds it says: This device is not currently connected to the computer, or there is no connection to this device. (Code 45) Connect the device to the computer. What does this mean?
You're welcome. I'm glad to hear it's working now.
It's hard to say why it started working after you removed the circuitry without knowing the exact details.
The Arduino boards have a PTC fuse that will cut power if too much current is drawn from the USB connector. Depending on how much current draw there is, they take a little while to heat up and cut off. So my suspicion was that something you had connected to the board was causing a high current draw, so when you plugged the board in, it stayed powered long enough to show up as a port, but then the PTC cut out and so the port goes away. Just a guess.
I would recommend that you carefully consider the circuit you had connected and try to determine what the problem was. If you post a detailed description of which Arduino board you're using and what you had connected (pictures and circuit schematics could help), then people here on the forum might be able to help figure out what the problem was.