Install Arduino IDE in Ubuntu

Posted on by

Arduino

The easiest and popular way to introducing us to the world of microcontrollers is using Arduino. The great advantage over other development platforms is its simplicity and above all the support you have from your community. The fact that it is an open-source project opens up endless possibilities for customization, as you have access to all design, from electronics to software.

arduino_uno

Arduino UNO

 But Arduino is not only a hardware also need a simple and friendly environment programming for everyone, including those who have never programmed. That environment is Arduino IDE.

 

Arduino IDE

The open-source Arduino environment makes it easy to write code and upload it to the i/o board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing, avr-gcc, and other open source software.

Arduino_IDE

Arduino IDE with the code example: Blink

Install in Ubuntu

The easiest and safest way to install it is through the Ubuntu software center looking for Arduino and clicking on the install button.

Búsqueda del Arduino IDE en el Centro de Software de Ubuntu

Search Arduino IDE on Ubuntu Software Center.

But we can also install it using the console as follows:

sudo apt-get install arduino
 If we wanted the latest beta version, although not recommended if you want a stable and with the greatest possible error debugging version. To install use the following instructions:
sudo rm -r /usr/share/arduino 
wget http://arduino.cc/download.php?f=/arduino-1.5.8-linux64.tgz
tar zxvf arduino-1.5.8-linux64.tgz; 
sudo mv ./arduino-1.5.8 /usr/share/arduino;
 We would have everything ready to plug our arduino via USB and upload our first program to the board. I recommend that you begin with the blink example, that will flash the LED , connected to pin 13 and mounted on the Arduino itself. Because it would not need to prepare any externally electronic circuit at least for this first test.

Solve error trying to upload the fist code example

Sometimes if your user is not in the tty and dialout groups the Arduino IDE can’t upload programs to the Arduino board and this give us a error. It can be solve by two ways:

  1. Running Arduino IDE in root mode, not recommended but it works. Because the user root is in those groups:
    sudo arduino
  2. Add your user to the tty and dialout groups:
    sudo usermod -a -G tty yourUserName
    sudo usermod -a -G dialout yourUserName

Sources:

http://arduino.cc/

Comments are disabled