2012-01-05

Running Arduino under Linux/Ubuntu

This is a tutorial on how to run arduino development under Ubuntu Linux, including managing the usb permissions.

Look at http://arduino.cc/playground/Linux/All

Download the Arduino IDE by typing
$ sudo apt-get install arduino

Managing USB permissions

*) Configure UDEV. This is for Arduino Uno. Nano has another vendor-id (23xx, i think). Find out by typing while having your device plugged in:
$ lsusb | grep 23[0-9][0-9]

*) Edit the udev rule file:
$ sudo nano /etc/udev/rules.d/81_arduido.rules

*) Add the following line:
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="00[3-a][0-f]", MODE="666", SYMLINK+="arduino arduino_$attr{serial}"

*) Restart udev:
$ sudo udevadm control --reload-rules

*) Find the dialout group name (usualy "dialout") by typing:
$ sudo ls -al /dev/ttyACM*

*) Add your self to that group.
$ sudo usermod -a -G

Remember that you will have to disconnect/connect the arduino and log out/log in before any changes take effect. To be extra super sure, reboot your system...

No comments:

Post a Comment