RaspberryPi the Arduino Development Tool

Not really too much to say here. There has been much talk on the forums about using arduino and similar systems to provide additional IO capabilities for the RaspberryPi.

So I decided to take things a little further and discover whats needed to use the RaspberryPi itself as a development platform using the Arduino IDE.

Following the simple steps below, it is possible to install, and run the arduino IDE, and then re program your USB connected arduino.

I’m not going to go into too much detail, but simply provide you with the¬†recipe to replicate my success

Firstly log on using the pi user (I did it over ssh). Then it’s a simple matter of grabbing the arduino IDE and installing a few packages.

wget http://arduino.googlecode.com/files/arduino-1.0-linux64.tgz
tar zxvf arduino-1.0-linux64.tgz
sudo apt-get install avr-libc
sudo apt-get install libftdi1
sudo apt-get install avrdude
sudo apt-get install openjdk-6-jre
sudo apt-get install librxtx-java
cd arduino-1.0
for i in $(find . -name "librxtxSerial.so") ; do cp /usr/lib/jni/librxtxSerial.so $i ; done
for i in $(find . -name "RXTXcomm.jar") ; do cp /usr/share/java/RXTXcomm.jar $i ; done
cp /usr/bin/avrdude /home/pi/arduino-1.0/hardware/tools/avrdude
cp /etc/avrdude.conf /home/pi/arduino-1.0/hardware/tools/avrdude.conf

You should now be able to run the arduino IDE (note if you’re using ssh don’t forget the -X option to enable X forwarding)

pi@rasp:~$ cd arduino-1.0/
pi@rasp:~/arduino-1.0$ ./arduino

Here’s the output from running the simple blink test, target an arduino decimilla connected over USB.

And  again, this time running the ASCII table to test serial connectivity over USB


Leave a Reply

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