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.
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.
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.
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?
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. ;)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With