Sunday, February 7, 2010

Sclerosis Of The Spine

Uno sketch per il test dell'installazione

A After installing the library that allows the recognition of Arduino, you can begin installing the development environment (IDE) that will write the programs (sketch) and upload (via USB) on board. The Arduino IDE is written in Java, so there is only one packet platform that is interpreted by the Java run-time operating system. To work needs to be there on the system the following packages: java- librxtx the Sun JRE, the compiler gcc and libc for AVR. The command to install all these packages is as follows:
$ sudo apt-get install sun-java6-jre avr-libc gcc-avr Note: The repository (January 2010) to ensure that Ubuntu the version of avr-gcc is definitely greater than 4.3.0, which instead gives some problems and does not support the the new micro Arduino 2009 (see http://www.arduino.cc/playground/Learning/Linux ). version installed (January 2010) is 4.3.3 (ie> 4.3.0)
Regarding the installation of
librxtx, however, there are two different paths depending on the version of Ubuntu .

If you're on Ubuntu 32-bit version that is good
Repository:
$ sudo apt-get install java-librxtx
However, if you're on Ubuntu 64-bit version
, we must download and install this latest version of librxtx: http://chemicaloliver.net/code/librxtx-java_2.2pre2_amd64.deb
(which is newer than the current repository, which instead gives problems). The . Deb package can be installed at the time of discharge with the graphical front end
Gedi
or with dpkg from the command line. Assuming that the package has been saved in your home directory: $ cd
~ $ sudo dpkg-i-librxtx java_2.2pre2_amd64.deb It then goes to download the package the IDE. From the site http://code.google.com/p/arduino/downloads/list

download the latest version of the package platform (choose the format. tgz) and save it in your home directory (eg / home / frank ) The file name follows the syntax
arduino-xxxx.tgz where xxxx is the progressive version. At the time of writing, the current version is 0017, then the newer file is arduino-0017.tgz

goes without saying that for the future, replace the number reported in the controls after 0017 with the number of the latest version. Move to the home directory and unpack the archive: $ cd
~ $ tar-zxvf arduino 0017.tgz the home dir. It will then create the folder arduino-0017

Also from your home directory to the folder lib of the installation, eg.
~ $ cd arduino-0017/lib


and rename the file librxtxSerial.so : ~ $ mv

librxtxSerial.so librxtxSerial.so.orig
this will allow you to use the correct library librxtx
(previously installed) for the version of Ubuntu used (if 32 or 64 bit) At this point the installation is substantially complete except for some step "cosmetic" definitely Recommended. The first is to create a directory on the home directory, eg. named
pde): $ mkdir ~
Arduino


You are ready for first start the IDE; Change directory
arduino-0017 and launch the executable arduino:
~ $ cd arduino-0017

$. / arduino


Optionally you can create a symbolic link that points

arduino, from time to time, the updated version arduino-xxxx
  1. ~ $ ln -s arduino-0017 ./arduino

  2. Al primo avvio, ci verrà chiesta la directory di lavoro, dove salveremo i nostri sketch. Questa cartella rappresenterà il nostro "
  3. Sketchbook
  4. " e potrà essere comodamente richiamato dal menù file dell'IDE (File -> Sketchbook) . Selezionamo dunque come directory di lavoro quella precedentemete creata (~/Arduino):




L'ultimo passo è quello di creare un lanciatore sulla Scrivania, seguendo l'ottimo suggerimento che ho trovato su Ubuntu Forum:
  1. http://ubuntuforums.org/showpost.php?p=5974212&postcount=1
  2. L'icona che will be used for the pitcher
  3. http://osx.iusethis.com/icon/osx/arduino.png
will be saved in your home dir and then from there, copied it to / usr / share / icons:


~ $ sudo cp arduino.png / usr / share / icons
  1. Personally I preferred the new icon of Arduino 17: http://upload.wikimedia.org/wikipedia/commons/d/d7/Arduino-0017-512x512px.png

  2. Navigate to the same desk with the right mouse button pop-up menu select "Create launcher ..."
  3. form appears with the properties of the pitcher, whose fields are filled as shown:

  4. Nel campo Comando digitare:
  5. bash -c "cd /home/nomeutente/arduino-0017/; ./arduino " Nel campo Nome: digitare

    arduino
  6. A questo punto, cliccare sull'icona di default del lanciatore ("la molla") e selezionare l'icona arduino.png precedentemente salvata in /usr/share/icons.
Ecco come compare l'icona di Arduino sulla mia scrivania:




0 comments:

Post a Comment