For those of you who do not know what Arduino is, Arduino is simply an electronic device and an open source software that can make an input give effect to its output. Input here we can make from various devices such as keyboard, mouse, joystick, sensors, etc. While the output can also be made from a variety of devices such as dot matrix display, speakers, DC-Motor, web display, etc. Ever heard of the term microcontroller? Yes, one of them is Arduino. For more info on Arduino you can go directly to the official web at www.arduino.cc
For the first article on Arduino I will discuss how to install Arduino IDE in Ubuntu 14.04 LTS. Arduino IDE is software to program the Arduino device we have.
Note: In this article I assume you already have Arduino device and know how to connect Arduino to computer using USB port (like USB port to connect printer with computer).
1. First download the Arduino IDE software on its official website: http://arduino.cc/en/Main/Software. Choose the appropriate version of your computer architecture.
2. Once downloaded, move the downloaded file to your home directory then extract the file. After that move the extraction folder to the / opt directory. To extract it, use the usual way. As for moving the extraction folder to / opt use this way:
$ Sudo mv arduino-1.0.6 / opt
3. Next create an application shortcut so you can execute easily by executing this command:
$ Sudo ln -s / opt / arduino
4. Do not forget to grant the executable permissions:
$ Sudo chmod + x arduino
5. Now it’s time to connect your arduino to the computer. In Ubuntu, the Arduino connection will be read in / dev / ttyACM0 if you have only one Arduino. If you have more than one, then you just change the number ACM0 so ACM1 and so on. Here we have to give read and write permissions on the address of the device with this command:
$ Sudo chmod + rw / dev / ttyACM0
Note: If you unplug Arduino then you re-connect, sometimes / dev / ttyACM0 will change to / dev / ttyACM1. Then you have to re-chmod the ttyACM1 address. If revoked and re-connected again, sometimes he will return to the address / dev / ttyACM0. As usual you have to re-chmod. The incident above will be repeated continuously as much as you do pull the plug Arduino.
6. The last step you have to run the Arduino IDE by executing this command in Terminal:
If successful then the window will appear as follows:
To test whether Arduino is connected to a computer is to look at the menu Tools> Serial Port. It should appear / tty / ACM0 there.