Hello Folks! This week tutorial again we back to Arduino and Raspberry Pi 2, but with one more person “Processing“.For more details about Processing click here.Due to performance and stability of new Raspberry Pi 2,we have attempted an installation of latest Processing for our customers.For installation we need java support and serial library support for interfacing Arduino with Pi 2.Lets see the installation.
Its always better to update and upgrade your system for new installations.
sudo apt-get update
sudo apt-get upgrade
Installing Oracle Java:
sudo apt-get install oracle-java7-jdk
Download & Install Processing
Go to Processing.org (Download Section) and get the Linux 32-bit version.
Extract it
tar xvzf processing-2.2.1-linux32.tgz
Now you have to remove the included x86 Java runtime, and replace it with the Raspberry Pi’s armhf one:
rm -rf ~/processing-2.2.1/java
ln -s /usr/lib/jvm/jdk-7-oracle-armhf ~/processing-2.2.1/java
Installation Done,but still you need jSSC(Java Simple Serial Connector)
Download jSSC-2.6.0-Release.zip and extract it:
sudo unzip jSSC-2.6.0-Release.zip
Now overwrite the jssc.jar from the processing
mv jSSC-2.6.0-Release/jssc.jar ~/processing-2.2.1/modes/java/libraries/serial/library/
Get into your processing directory and type the following command.
sudo ./processing
And type the following program:
import processing.serial.*; // The serial port Serial myPort; // List all the available serial ports println(Serial.list());
Thanks for visiting us,
Team Adhira