Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Arduino Tools > Serial Port greyed out

I am running Debian 7 (Linux Crunchbang) and wanted to use The Arduino IDE to program my Arduino UNO. To do that I installed the package arduino. When I started the Arduino I was asked to add my user to the dialout group. So I did with sudo usermod -a -G dialout <my-username>.

However when I start the Arduino IDE using arduino in the commandline the IDE opens but I am not able to load my program to the Arduino. The error message is "Serial port COM1 not found. Did you select the right one from the Tools > Serial Port menu?" And when I went to select the Serial Port, the option "Tools > Serial Port" is greyed out.

I thought it is because I did not grant read and write permissions on my usb port (ttyACM0). So I did sudo chmod a+rw /dev/ttyACM0 but the option is still greyed out.

like image 666
Moonlit Avatar asked Oct 11 '13 15:10

Moonlit


People also ask

Why is my port greyed out Arduino IDE?

This means the driver is not installed. Please tell us which USB to serial adapter chip your Arduino board has. This is a black chip near the USB socket. The chip will usually be identified by writing on the top.

Why Arduino Cannot select port?

You probably have to install the driver for your Arduino. The Arduino IDE includes some drivers in the drivers folder of the Arduino IDE installation folder. Those only support official Arduino boards and clones that use the same USB-serial chip.

Why is my serial port unavailable Arduino?

The Serial Port menu is unavailable because the driver isn't installed correctly. Assuming Windows, since you didn't say. What shows up in your Device Manager when the Uno is connected? Also, where did you buy the Uno from?


2 Answers

chdmod works for my under debian (proxmox):

# chmod a+rw /dev/ttyACM0 

For installing arduino IDE:

# apt-get install arduino arduino-core arduino-mk 

Add the user to dialout group:

# gpasswd -a user dialout 

Restart Linux.

Try with the File > Examples > 01.Basic > Blink, change the 2 delays to delay(60) and click the upload button for testing on arduino, led must blink faster. ;)

like image 73
user3104260 Avatar answered Sep 22 '22 00:09

user3104260


sudo arduino is the only way I get the Arduino IDE working (serial port and upload) on ubuntu 12.04 (64) Indeed the serial port to use is /dev/ttyACM0 in my case too. The other two (ttyS4 and ttyS0) gave an error when trying to upload to Uno. Have fun

like image 25
user3878345 Avatar answered Sep 21 '22 00:09

user3878345