Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I Have an Arduino UNO, Which I need to get working with Ubuntu.

Can somebody explain to me the steps required to install the IDE on Ubuntu?

share|improve this question
add comment

5 Answers

This is from notes I took when installing an Arduino. It was very helpful when I had to go through the same thing with other computers.

Install Sketch which is used to program Arduinos.
Use one of the following methods.

$ sudo apt-get install arduino
or
$ sudo apt-get install arduino-core
or
Open "Ubuntu Software Center" Search "arduino"

Set up the vendor ID.
Without Arduino plugged in
$ lsusb
This is what I got
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Again with Arduino plugged in.
$ lsusb
This is what I got
Bus 004 Device 003: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Look at the addition line.
It will look something like this
Bus 004 Device 003: ID 2341:0043
Insert the numbers that you have in the command below.

$ sudo modprobe usbserial vendor=0x2341 product=0x0043

Let's get the serial port to work $ cd /dev
Without Arduino plugged in
$ ls
Again with Arduino plugged in.
$ ls
Look for the additional tty* NAME. Mine was ttyAMC0, yours may be ttyUSB* or ttyS*.

Now we know which port it is trying to use.

The following is used to log the serial input from the Arduino. You may not need it.
$ sudo apt-get install minicom //It may be already installed on your computer.
$ sudo minicom -s
You will get a setup menu.
Change first line with /dev/ttyAMC0 or whatever you found in your /dev/ directory.
Save setup as dfl.
I don't know what this does I just read it somewhere and it worked.

It is on ttyACM0. When I looked at the directory /dev I found that ttyACM0 would come and go when the Ardunio was plugged in or taken out.

Install kst //This program will take a your ascii file and put it on chart.
$ sudo apt-get install kst > newer version will be available at some date.

Install GtkTerm
$ sudo apt-get install gtkterm

Configure GtkTerm to the port which Arduino is connected to. The Arduino needs to be plugged in and the serial reader in Sketch can't be on.

You should be seeing the ascii numbers schrolling on GtkTerm.

Configure the GtkTerm to log the information to a text file.

If you open the text file now you should see the data in the file. I can't remember if GtkTerm needs to be pause to read this.

Open kst. Use Data wizzard to connect to the data text file with ascii.
The data should be column 1.
From here your on you own.

share|improve this answer
add comment

Is this not what you're looking for? Is universe not enabled in your software update prefs? From Precise.

$ apt-cache show arduino
Package: arduino
Priority: optional
Section: universe/electronics
Installed-Size: 881
Maintainer: Ubuntu Developers 
Original-Maintainer: Scott Howard 
Architecture: all
Version: 1:1.0+dfsg-5
Depends: default-jre | java6-runtime, libjna-java, librxtx-java (>= 2.2pre2-3), arduino-core (= 1:1.0+dfsg-5)
Recommends: extra-xdg-menus, policykit-1
Filename: pool/universe/a/arduino/arduino_1.0+dfsg-5_all.deb
Size: 684106
MD5sum: 5dd5fe5e36013a8cab1d47a1f62734cc
SHA1: c86f2453bb4b41f9bf1dade070fd0b2da140467c
SHA256: 7e9aaf51bf6b69214ba47ff7d077aa668da5b2b38c616e94ffca68b5564e8cc8
Description-en: AVR development board IDE and built-in libraries
 Arduino is an open-source electronics prototyping platform based on
 flexible, easy-to-use hardware and software. It's intended for artists,
 designers, hobbyists, and anyone interested in creating interactive
 objects or environments.
 .
 This package will install the integrated development environment that
 allows for program writing, code verfication, compiling, and uploading
 to the Arduino development board. Libraries and example code will also
 be installed.
Homepage: http://www.arduino.cc
Description-md5: 60f8f72e8783c6b5a72254120b680cdb
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
$ sudo apt-get install arduino
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  arduino-core avr-libc avrdude binutils-avr ca-certificates-java default-jre
  default-jre-headless extra-xdg-menus gcc-avr icedtea-6-jre-cacao icedtea-6-jre-jamvm
  icedtea-netx icedtea-netx-common java-common libatk-wrapper-java libatk-wrapper-java-jni
  libftdi1 libgif4 libjna-java librxtx-java openjdk-6-jre openjdk-6-jre-headless
  openjdk-6-jre-lib ttf-dejavu-extra tzdata-java
Suggested packages:
  avrdude-doc binutils task-c-devel gcc-doc gcc-4.2 equivs libjna-java-doc icedtea-plugin
  libnss-mdns sun-java6-fonts ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-sazanami-gothic
  ttf-kochi-gothic ttf-sazanami-mincho ttf-kochi-mincho ttf-wqy-microhei ttf-wqy-zenhei
  ttf-indic-fonts-core ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts
Recommended packages:
  policykit-1
The following NEW packages will be installed:
  arduino arduino-core avr-libc avrdude binutils-avr ca-certificates-java default-jre
  default-jre-headless extra-xdg-menus gcc-avr icedtea-6-jre-cacao icedtea-6-jre-jamvm
  icedtea-netx icedtea-netx-common java-common libatk-wrapper-java libatk-wrapper-java-jni
  libftdi1 libgif4 libjna-java librxtx-java openjdk-6-jre openjdk-6-jre-headless
  openjdk-6-jre-lib ttf-dejavu-extra tzdata-java
0 upgraded, 26 newly installed, 0 to remove and 315 not upgraded.
Need to get 56.6 MB of archives.
After this operation, 175 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
share|improve this answer
add comment

First, you need to go to http://arduino.cc/hu/Main/Software. Then, download the Linux version of Arduino 1.0 for Linux. Next, extract the folder arduino-1.0 from the downloaded archive. Now, you just need to double click on the arduino file, choose Run from the dialog box that opens, and you're done! Arduino should now open.

share|improve this answer
add comment

To get your Arduino working in ubuntu, just search "Arduino IDE" in the software center. Find it, and click install. You should then be able to get your Arduino working. Hope this helps!

share|improve this answer
add comment

(Adding to the other responses:)

If you have some other programming experience, I strongly suggest you have a look at the Arduino toolchain for Eclipse. In my opinion it provides a fantastic development experience.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.