(This is a guide to using the Freetronics PiLeven with the Firmata open source library.
Using PiLeven allows you to upload sketches directly from your Raspberry Pi. However sometimes you just want to control the pins of the PiLeven directly from host software on the Raspberry Pi.
Firmata is a great library, built into the Arduino IDE, that allows you to do this. The Arduino runs a sketch called the “Firmata firmware”, and then your Raspberry Pi can send Firmata commands to interact with it. Firmata has libraries for most common programming languages.
Installing Firmata Firmware:
In the Arduino IDE on your Pi, choose File -> Examples -> Firmata -> StandardFirmware.
When the StandardFirmware sketch opens, click Upload to upload it to your PiLeven.Read More