I really wanted to try Arduino; Arduino narrates a story where the good guys are winning. Saturday I arranged to buy one, the Arduino Uno, and the first thing that came into my mind was “Wow, it’s really smaller than I thought possible!”.
I went home and started unboxing it: the packages comes with a pamphlet and some decals, and the board itself is very cute and gives the idea that the designers paid attention to small details.
I wanted to make it breathe right away connecting it with my Ubuntu desktop, but the steps were a bit more complicated than I thought, so I’m gonna explain them to make things easier for other people. First of all, Ubuntu Maverick distributes an “arduino
” package containing the Interactive Development Environment (IDE), but it’s an “old” version (18) and it doesn’t support the newer Arduino Uno (as the Ubuntu instructions say). For this reason I followed some of the generic Linux instructions to get started. On my Ubuntu machine I use “sun-java6-jre
” installed, but the “openjdk-6-jre
” should work fine, too. The Arduino pages say that the braille support package “brltty
” must be removed because they conflict with the serial port communications, so I did:
$ sudo apt-get remove brltty brltty-x11
Then, to install the prerequisites:
$ sudo apt-get install avr-libc avrdude binutils-avr gcc-avr
The Arduino IDE versions that support the Arduino Uno are the ones >=21, So I downloaded and extracted the current one, version 22:
$ wget http://arduino.googlecode.com/files/arduino-0022.tgz $ tar xzf arduino-0022.tgz
Then I connected the Arduino Uno board using an USB cable, and the leds started blinking. On my desktop, the device was recognized and a new serial port “/dev/ttyACM0
” was created:
$ dmesg ... [ 3221.472079] usb 2-1.2: new full speed USB device using ehci_hcd and address 4 [ 3221.631190] cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device [ 3221.631845] usbcore: registered new interface driver cdc_acm [ 3221.631848] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters ...
It’s time to start the IDE; it’s not necessary to install it, it can work from where it was uncompressed.
$ cd arduino-0022 $ ./arduino
The IDE itself is just a simple window containing code, that is called “sketch”. From the menu, I opened an example navigating to “File -> Examples -> Basics -> Blink”, and another window appeared with few code lines to make a led blink.
The “verify” button compiles the code, and the “upload” button does the trick of putting the code onto the board and starting the program. It’s really “one-click” simple! The led starts blinking and the dirty work is completely hidden to the final user.
I’m really happy with my purchase and I haven’t even started doing anything! I appreciate the quality and the simplicity of this product that is a great step forward from traditional PICs, mostly because it’s easier to start using one, and also because there’s a large community of enthusiasts that have done the most creative things and have put their experience on the public domain for others to see and use.
dewert
2011/02/10
Thanks, this was really helpful. I wish there was an up to date PPA for arduino on ubuntu. I had a quick look around, so I may have missed it, but I was too impatient to get that LED blinking!
Iztok Jeras
2011/02/15
Hi Balau,
I have a PPA ready for electronics, I publish HDL related stuff in it, currently mostly fresh ports from Debian:
https://launchpad.net/~team-electronics/+archive/ppa
I can try to prepare a newer package for Ubuntu, and than ask the Debian electronics group to maintain it further.
But I would need you to test it.
Regards,
Iztok
Balau
2011/02/17
Hello Iztok,
I see that both Debian (Package: arduino (0022+dfsg-2) ) and Ubuntu Natty (Package: arduino (0022+dfsg-1)) have an up-to-date package, so my Ubuntu instructions will get quite obsolete in a couple of months. Maybe what is needed is a “backport” (I think it is the right term) of arduino-022 to versions of Ubuntu lower than Natty (in particular the 10.04 LTS).
I will be happy to test it, but keep in mind that I’m a newbie with Arduino so maybe I won’t be able to cover much of the possible usage.
Iztok Jeras
2011/03/04
Hi Balau,
I also checked current availability and the latest version is available in Natty and Maverick (backports repo):
https://launchpad.net/ubuntu/+source/arduino
The LTS release is left with an older package, it is possible that patching would be required to make it work (tool related compilation errors are common when porting to older distributions).
Iztok
Kris G
2011/06/02
Thank you, that was very clean and helpful !!!
hiperion
2011/07/18
Gooood!!!!!!! Thank you so much.
kevin
2011/09/16
Hi, I’m looking to start learning about micro controllers and I’ve heard Arduino is the place to begin, I’ve done a little C in the past but what I want to know is should I go for an Arduino Uno or an Arduino clone I know the price isin’t that much less but I a student!
Thanks in advance.
Kev
Balau
2011/09/16
I think from the point of view of the project you could do the two alternatives are equivalent. If you buy the original Arduino the money goes to the guys who invented Arduino. If you buy that DFRduino clone, the money goes to DFRobot, and maybe you get to spend less money on your side.
I have to say that with only an Arduino/DFRduino you can’t interact very much with the external world: I think that for basic tinkering you would need some wirings, leds, resistances, buttons, sensors and a multimeter. Without these things you can simply create programs to communicate serially to the PC through the USB port.
Don’t forget to check my other posts on Arduino: https://balau82.wordpress.com/tag/arduino/
kuo
2011/11/12
thanks for brilliant unboxing / install intro!
George
2011/12/24
Hey thanks for the post. I got a fresh 22 for ubuntu from the Ubuntu software center. I’m on 10.11
gorthx
2012/02/02
Thanks! I couldn’t get my Uno working with my Thinkpad and this post + the Arduino docs got me up & running. openjdk-6-jre does indeed work. 🙂
ZIm
2012/04/24
I…LOVE YOU! This worked perfect with Ubuntu 11.10 and an Arduino UNO R3. For anyone searching for the answer it’s right here. This will get your UNO R3 working. Just make sure you go to Tools > Serial Port > “select the port” otherwise you’ll get a error but it’s pretty obvious.
Ramu Pradip
2012/05/05
This was a clean solution, thanks
Nishant
2012/05/29
Does this exact procedure work for Arduino Uno (the first version)?
Balau
2012/05/29
My Arduino Uno, the one you see in the photos, is Rev1, so I tested that it works. But it has to work also with the other revisions, nothing relevant has been changed.
Hasitha Jayan (@hasithajayan)
2012/11/03
Thanks, This is very clean help. I configured my Arduino Uno on ubuntu 11.10 (oneiric) without any problem.
Laoren
2013/10/04
hi can i know verilog HDL can be use in Arduino Uno?
Balau
2013/10/04
No, Arduino not made for HDL. You probably need an FPGA development board (such as Papilio) for what you want to do.
Gowtham
2014/04/13
Hi it is very helpful on my ubuntu 12.04 I unpacked arduino version 1.0.2 went to the directory and typed ./arduino
it says permission denied!
Balau
2014/04/13
The execution permission of the files are probably wrong (I don’t know why). You can correct it with the command
chmod +x ./arduino
. Check the permissions withls -l ./arduino
(see http://linuxcommand.org/lts0070.php). There is also another executable in thearduino-0022
package, so for good measure you should also runchmod +x ./hardware/tools/avrdude
, for your information that’s the program that writes your code into the Arduino non-volatile memory.Ibrahim
2015/12/19
You’ll not imagin how happy I am after my new uno IDE start working in my UDOO board, thanks to your awesome instructions.
God blessing you & Thank you so much