Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Raspberry Pi 2 and a bunch of old Arduino shields. I am switching a project from the Arduino to the Raspberry Pi 2, and I would not like to buy a lot of new components. I have limited space, so I cannot attach the shields to a breadboard and then connect it to the pi. I need them to be able to attach on top of the pi.

Is there any way to easily use my Arduino shields with my Raspberry Pi?

share|improve this question
    
Adafruit (and perhaps other companies) make cheap Pi HAT perma-prototype boards you could use to make your own adapter; obviously this is going to add 1/4"-1/2" in height and have some limitations, but you should be able to fit, e.g., at least of couple of level shifters on there. The awkward part is pairing it with the shields you have. – goldilocks Jul 26 at 0:23
up vote 2 down vote accepted

There are bridges that do this available. Arduberry springs to mind. Try googling for "rpi arduino shields" and you will get some options. Don't count on all shields to be supported, though.

share|improve this answer
    
Yes, that was what I was looking for – geek1011 2 days ago

I'm not exactly sure about the software side of things (maybe the same for SPI and I2C), but whatever you do, make SURE you use 3.3v-5v logic converters. If that isn't an option to you, though, you might want to consider plugging the Arduino into a USB port on the RPi and communicating serially between the two, using the Arduino to drive the shields and the RPi to do the processing.

share|improve this answer
    
That's what I have been doing so far(about the serial communication), but it's too bulky – geek1011 Jul 26 at 0:12
    
Also, I need the shield to stack well on the pi – geek1011 Jul 26 at 0:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.