Interface a Raspberry Pi to Arduino via SPI

Recently a few people have been working on various methods of interfacing their Raspberry Pi computer with the Arduino boards – for control of the GPIO, interfacing with other objects using the Arduino as the medium and so on. One interesting example of this is from the Mitchtech blog, where they demonstrate sending data from the Raspberry Pi to the Arduino via the SPI bus. The Arduino is set as a slave SPI device and the code demonstration is written in C for the RPi. 

For more information including the code for both platforms, head over to the project page. And we’re on twitter and Google+, so follow us for news and product updates as well.

If you’re looking to embed an Arduino-compatible board in your projects driven by Raspberry Pi or other computers, consider embedding the Freetronics LeoStick. Apart from being one of the smallest Arduino-compatibles on the market with USB, it also has an onboard RGB LED and piezo for an alarm clock, and it’s own form of knock detection to use as a snooze button:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: