This tutorial will show you how to communicate from your raspberry pi to your arduino using 3-wire SPI.