Firmata (Arduino Standard with pyfirmata)

Firmata Tutorial

Firmata Protocol

Firmata Protocol

PyFirmata

Easy for the Raspberry PI to control Arduino I/O using Standard Firmata and Pyfirmata

Raspberry PI Tutorial