Arduino COM port doesn't work

2019-02-01 11:06发布

问题:

I bought an Arduino Uno recently. After getting the necessary cables, I decided to upload an example to the chip.

Instead of seeing that Blink, I received an error like processing.app.SerialException: Serial port 'COM1' not found. Did you select the right one from the Tools > Serial Port menu?

Yes, I tried that. But even Serial Port Monitor doesn't seem opening. Then again, I get some exception that isn't worth mentioning.

After I found out that my Serial COM ports don't work (via Portmon.exe), and figuring out that I may even don't have any (there is no COM port in Device Manager), I also tried to download a driver for COM port, but it has also failed.

Some say that it's because of my Acer Aspire 5742's motherboard. Some say that the reason is Windows 7.

Long story short, I'd really appreciate if someone can help me with my COM port problem and mend my broken dreams.

回答1:

Installing Drivers for Arduino in Windows 8 / 7.

( I tried it for Uno r3, but i believe it will work for all Arduino Boards )

Plugin your Arduino Board

Go to Control Panel ---> System and Security ---> System ---> On the left pane Device Manger

Expand Other Devices.

Under Other Devices you will notice a icon with a small yellow error graphic. (Unplug all your other devices attached to any Serial Port)

Right Click on that device ---> Update Driver Software

Select Browse my computer for Driver Software

Click on Browse ---> Browse for the folder of Arduino Environment which you have downloaded from Arduino website. If not downloaded then http://arduino.cc/en/Main/Software

After Browsing mark include subfolder.

Click next ---> Your driver will be installed.

Collapse Other Devices ---> Expand Port ( its in device manager only under other devices )

You will see Arduino Written ---> Look for its COM PORT (close device manager)

Go to Arduino Environment ---> Tools ---> Serial Port ---> Select the COM PORT as mentioned in PORT in device manager. (If you are using any other Arduino Board instead of UNO then select the same in boards )

Upload your killer programmes and see them work . . .

I hope this helps. . .

Welcome



回答2:

Did you install the drivers? See the Arduino installation instructions under #4. I don't know that machine but I doubt it doesn't have any COM ports.



回答3:

I've had my drivers installed and the Arduino connected through an unpowered usb hub. Moving it to an USB port of my computer made it work.



回答4:

First: Sorry for my poor english (feel free to correct me). Abstract: Steps of How to resolve "Serial port 'COM1' not found" in fedora 17.

Today install the packages for Arduino in Fedora 17. (yum install arduino) and i has the same problem: i decided to upload an example to the chip. and got the same error "Serial port 'COM1' not found".

In this case when i run Arduino programm, some banner appears which warns me that my user is not in 'dialout' and 'lock' group.¿Do you want add your user in this groups? I click in add button, but for some reason the program fail and not say nothing.

Step1: recognize the arduino device unplug your arduino and list /dev files:

#ls -l /dev

plug your arduino and go and list /dev files

#ls -l /dev

find the new file (device) that was not before pluggin for example:

ttyACM0 or ttyUSB1

Read this properties:

ls -l /dev/ttyACM0

crw-rw---- 1 root dialout 166, 0 Dec 24 19:25 /dev/ttyACM0

the first c mean that arduino is a character device.

user owner: root

group owner: dialout

mayor number: 166

minor number: 0

Step2: set your user as group owner.

If you do:

groups <yourUser>

And you are not in 'dialout' and/or 'lock' group. Add yourself in this groups run as root:

usermod -aG lock <yourUser>
usermod -aG dialout <yourUser>

restart the pc. and set /dev/ as your serial port before upload.

I hope be useful. Francisco. Bye.



回答5:

unplug not necessary,just uninstall your port,restart and install driver again.you will see arduino COM port under the LPT & PORT section.



回答6:

This fix / solution worked for me: Device Manager --> Ports --> right click on Arduino Uno --> Update Driver Software --> Search automatically for updated driver software