Translation(s): English - Fran├žais

Arduino is a project where we can find open source hardwares and softwares in order to build his own electronic circuits.

<!> As of 2016, Debian carries relatively old 1.0.5 version. The license term of some parts of the source is the blocker. The upstream version 1.6/1.7 split has been resolved in 1.8 version in December/2016.

Arduino IDE

The Arduino community offer a simple IDE to code, compile and upload his code on his card. The software is available in the main Debian repository.

apt install arduino

It can be run easily, by double-clicking on its icon or by running the following command line:


Hardware detection

In order to let the software play with the Arduino Board, it's necessary to open few permissions to the current user. If you have just connected the card to your computer, you should look at the last kernel messages:

dmesg | tail

And you should see something like that:

[ 280.694367] usb 3-10: new full-speed USB device number 10 using xhci_hcd
[ 280.824363] usb 3-10: New USB device found, idVendor=2a03, idProduct=0043
[ 280.824366] usb 3-10: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 280.824367] usb 3-10: Product: Arduino Uno
[ 280.824367] usb 3-10: Manufacturer: Arduino Srl
[ 280.824368] usb 3-10: SerialNumber: 85xx4383xxxxxxxxxx
[ 280.824544] usb 3-10: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[ 280.824926] cdc_acm 3-10:1.0: ttyACM0: USB ACM device

In this case, the board appears under the name ttyACM0 in the /dev folder, and if you list its content, you can see that the card own by the dialout group.

ls -l /dev/tty*
crw-rw---- 1 root       dialout 166,  0 nov.   6 17:38 /dev/ttyACM0

Add your user to the group dialout in order to use the card directly from the arduino software without using root or sudo.

usermod -a -G dialout My_User_Name

Some cards could need other groups like tty or uucp.

Once that done, at the next reboot, you should see your board in "Tools > Serial Port".

External Links