Arduino and Firmata on Raspberry PI (2 /3)

Here the instructions from Javier Velásquez R.

How to Install RXTX for Serial Comminication under Raspberry PI OS (RASPBIAN)

01. Verify you have installed Java JDK and Its Version.
$ java -version
$ javac -version

02. Search for your java home patch...
Open de Raspbian Jessie Main Menu > Programming > Blue J Java IDE
Open it and select "About Blue J" and you will see your Java home patch.
For Raspbian Jessie:

02. Install Arduino IDE to upload Standard Firmata to Arduino Target and verify that it works.

sudo apt-get update
sudo apt-get install arduino

Open de Raspbian Main Menu > Electronics > Arduino IDE
Select your Arduino Board and the port.
Upload Standard Firmata to the target and open the Serial Monitor (57600bps) to veryfy if it is working.

03. Copy the Arduino Serial Communication Driver included with the Arduino IDE to your Java JRE.

cp /usr/share/arduino/lib/RXTXcomm.jar //jre/lib/ext

For Raspbian Jessie with default preinstaled JDK8 U65:

cp /usr/share/arduino/lib/RXTXcomm.jar /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/ext

04. Install Java RXTX library for ARM:

sudo apt-get install librxtx-java

The serial RxTx .so files are located at:

05. Create Symbolic Links from the Java.library patch to the location of the .so driver files

cd /jre/lib/arm
ln -s /usr/lib/jni/
ln /usr/lib/jni/

6. Run MyOpenLab v3.0.7.2 or better and enjoy!

Tested by:
Robinson Javier Velásquez R.
Bogotá DC -Colombia
Copyrights by Carmelo Salafia © 2016