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):
Type the command :
ln -s /usr/lib/jni/librxtxSerial.so
Check that the link was created. For more details see this article:
Download and unzip Ardulink:
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:
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:
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:
2 Risposte a “How to install Ardulink on your Raspberry PI”
Hi, I wonder if I can make my arduino communicate with raspberry pi via XBEE modules using ardulink.Is it possible ?
Maybe, but with a little effort. Actually Ardulink has two communication mechanisms Serial and USB and both need for an USB connection between Arduino and the PC (or Raspberry PI of course). So if you want use XBEE modules you could try two ways:
I commenti sono chiusi.