2

I have a question about connecting a Arduino with Raspberry Pi.

What is the benefit of connecting the two?

1
  • Thanks a lot. Thats some great answers :-) Do any of you know any good resources where I can learn about connecting the two? Jun 10, 2016 at 13:47

3 Answers 3

8

Interfacing hardware is easier with the Arduino: more available I/O pins capable of sourcing and sinking more current, 5 V I/O, analog inputs, very predictable timings, etc. The Raspberry, on the other hand, is a real computer with a real OS, has a lot more computing power and memory, has Internet connectivity, can easily run “standard” web servers like Apache or nginx... or mostly any Linux software for that matter.

Some projects can benefit from using both. E.g. if you want to make a web interface for some low-level hardware sensors.

7

Why add an Raspberry Pi to an Arduino?

There are some things that simply are beyond the possibilities of Arduino. The first thing that would cross my mind is video processing, HDMI output, decent sound etc.

A Raspberry Pi can be used to add some features to your project aswell. If you make an Arduino controlled robotic arm, you could add an "user interface" to it, using a Raspberry Pi.

Why add an Arduino to an Raspberry Pi?

Some may argue that the Raspberry Pi is much more capable as an Arduino, in every form. Though, the strengths of Arduino are:

  • Ease of use. (For GPIO on Raspberry Pi you'll likely need to install something, to make it work with your favorite programming language.)
  • Real time / deterministic timing, this is one of the best things of Arduino. Given that an Arduino has no "operating system" that can induce random (tiny) delays in your program (other than the millis()/micros() interrupts).

Why do any of this? You could choose an Arduino OR Raspberry Pi

One thing you might not think about is, that by joining an Arduino and a Raspberry Pi, you're joining two important parts of Embedded Systems. Which you can learn a lot from.

Microcontrollers and Single-board computers. This really has a good educational effect. Since you'll not limit yourself to one device or "way of thinking".

Moreover, the interfacing between two devices is often important and will bring some extra problems. (And solving them gives extra knowledge/experience)

3

I prefer to use arduino type boards as data acquisition units then transfer the data to an actual computer (or raspberry pi) in most of my projects. Arduinos are, in my experience, much more tolerant of fault and accidental crossed circuits than the R pi. Thus is especially true of the ruggedized or industrial arduino versions.

2
  • Good point! One could say that accidently blowing up your Arduino is much cheaper than blowing up a raspberry pi
    – aaa
    Jun 11, 2016 at 23:45
  • And it is much easier to destroy a Pi than it is an arduino... Although I love the fact that I often have to add a 0.2V schottky diode in fw bias to control a little MOSFET... just to prevent the cr?p from dying because of a little spike.
    – user2497
    Dec 9, 2017 at 13:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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