Crea sito

How to install Ardulink on your Raspberry PI

Posted in: Getting Started for User, Learn

Raspi

In this article you can find the detailed instructions to install and run on your Raspberry PI my open source software Ardulink and run its Console GUI application.

First of all you must install the operating system. I’ nstalled Raspbian, the official Raspberry PI distribution based on Debian .

A really easy way to do this is to use BerryBoot v2.0 – bootloader / universal operating system installer. You can find it here : http://www.berryterminal.com/doku.php/berryboot

Now you must install the java virtual machine. To install java, simply enter the following command:

sudo apt-get update && sudo apt-get install oracle-java7-jdk
For more details see this article: http://www.raspberrypi.org/archives/4920

Then install the library RXTX for Raspberry PI . Type the following command:

sudo apt-get install librxtx-java

You need to create a symbolic link to make sure that rxtx is found by the java process that runs Ardulink. From folder (or something very similar):

/usr/lib/jvm/jdk-7-oracle-armhf/jre/lib/arm

Type the command :
ln -s /usr/lib/jni/librxtxSerial.so

Check that the link was created. For more details see this article:

http://www.raspberrypi.org/phpBB3/viewtopic.php?t=12452

Download and unzip Ardulink:

unzip ardulink.zip

Connect the Arduino board with Raspberry PI through a USB cable. Even with a HUB USB connection will work.

Well, you’re almost there. Only one more point. Unfortunately RXTX does not handle devices like /dev/ttyACM… but Raspberry PI sees Arduino usb connection just like a serial port of this kind. In other words Ardulink can not find the door to establish the connection. To fix the problem, you still need a symbolic link. Type the command:
ln -s /dev/ttyACM[x] /dev/ttyS8[x]
Where x should be a number. Probably zero. For more details see:
http://pblog.ebaker.me.uk/2011/09/processing-usb-ports-devttyacm0.html

Now Ardulink should work without problems. You’ll find Ardulink Console shell script ready to be launched (ardulink.sh).

If you want to use Ardulink remotely without direct access to your Raspberry PI, you can use the simple technique to export the display on a computer with XServer. You can see the video of the test I’ve done here:

http://www.youtube.com/watch?v=55of1jn1pYw

 

NOTE: from Ardulink version 0.2.1 it’s available the Ardulink Network Proxy Server. With this new feature you can start a lightweight server on Raspberry PI and then you can use Ardulink Console remotely. See most recent articles about Raspberry PI to learn more about Ardulink Network Proxy Server.

 

Finally, if you are interested in knowing how to make a case for your Raspberry PI, looks like I did:

http://www.instructables.com/id/A-wooden-case-for-your-SoC-hardware-like-Raspberry/

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>