User avatar
foxxyman
Posts: 28
Joined: Wed May 24, 2017 3:31 am
Location: Ephraim, Utah, USA, Earth, Milky Way, Universe

RPi 3 combined with Arduino...

Thu Feb 15, 2018 3:06 am

A classmate recently told me that one can connect an arduino to a RPi 3 in a certain way so that to add more computing power to the RPi. I am ver much skeptical that this works :) ... does arduino even work that way?

Does it work? If it does, I would like to know.

Thank you
-foxxyman
-foxxyman
The pi solves life...

mlepage
Posts: 95
Joined: Tue Jun 12, 2012 1:58 am

Re: RPi 3 combined with Arduino...

Thu Feb 15, 2018 4:10 am

The Raspberry Pi is very much more powerful than the Arduino in many respects. So you are not going to add much "power" to the Raspberry Pi.

Think of it as, the Raspberry Pi is like the computer in a tablet, while the Arduino is like the computer in a smart thermostat.

You can certainly do projects where they are used together. The main thing to be careful of, is the Arduino is 5V while the Raspberry Pi is 3.3V.

Probably the most common thing an Arduino could do, is the sort of thing you use the Raspberry Pi GPIO (pins) for. The Arduino can do that more consistently and using lower power. If you run out of GPIO pins on the Raspberry Pi, it's common to use something like an Arduino to do more, and send the results of its sensing/processing to the Raspberry Pi (e.g. over USB or serial).

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: RPi 3 combined with Arduino...

Thu Feb 15, 2018 5:35 am

As he said;

The Arduino adds Real Time Control (RTC). There are different Arduino's that can be chosen. The Raspberry Pi will send commands to the Arduino that it will carry out to control projects. Arduino's are used as controllers in Laser Engraver's, CNC, some 3D printers. But they can be used control things by themselves.

So adding an Arduino does not add power it adds control. Especially more GPIO "pins" to control your projects.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi 3 combined with Arduino...

Thu Feb 15, 2018 8:04 am

Why not get your mate to run a demo for you.

Arduinos, esp8266 and wemoses are brilliant for simple IoT tasks. The raspberry is ideal as a command & control server for that stuff. It isn't adding extra power to the pi it's offloading tedious workload to the microcontroller.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

gordon77
Posts: 4992
Joined: Sun Aug 05, 2012 3:12 pm

Re: RPi 3 combined with Arduino...

Thu Feb 15, 2018 8:59 am

The Arduino can also offer A to D :D

MarkR
Posts: 156
Joined: Fri Jan 25, 2013 1:55 pm

Re: RPi 3 combined with Arduino...

Thu Feb 15, 2018 9:10 am

Yes it adds some new capabilities, e.g. the Pi doesn't have ADC. It might also be convenient if you have a 5v Arduino and a 3.3v Pi (they all are).

But the single CPU of the Arduino is extremely slow compared to the Pi3's 4 cores. Nobody would allocate any difficult computing tasks to it, if they have a Pi in the system.

User avatar
foxxyman
Posts: 28
Joined: Wed May 24, 2017 3:31 am
Location: Ephraim, Utah, USA, Earth, Milky Way, Universe

Re: RPi 3 combined with Arduino...

Thu Feb 15, 2018 7:06 pm

DougieLawson wrote:
Thu Feb 15, 2018 8:04 am
Why not get your mate to run a demo for you.

Arduinos, esp8266 and wemoses are brilliant for simple IoT tasks. The raspberry is ideal as a command & control server for that stuff. It isn't adding extra power to the pi it's offloading tedious workload to the microcontroller.
mlepage wrote: The Raspberry Pi is very much more powerful than the Arduino in many respects. So you are not going to add much "power" to the Raspberry Pi.

Think of it as, the Raspberry Pi is like the computer in a tablet, while the Arduino is like the computer in a smart thermostat.

You can certainly do projects where they are used together. The main thing to be careful of, is the Arduino is 5V while the Raspberry Pi is 3.3V.

Probably the most common thing an Arduino could do, is the sort of thing you use the Raspberry Pi GPIO (pins) for. The Arduino can do that more consistently and using lower power. If you run out of GPIO pins on the Raspberry Pi, it's common to use something like an Arduino to do more, and send the results of its sensing/processing to the Raspberry Pi (e.g. over USB or serial).
so how does one connect the arduino to the RPi as said above (my classmate can’t run a demo for me)
-foxxyman
The pi solves life...

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi 3 combined with Arduino...

Thu Feb 15, 2018 8:11 pm

You connect it with a USB-A to USB-B printer cable for a regular Uno. You connect it with a USB-A to microUSB for a Nano.

It will appear as /dev/ttyACM0 or /dev/ttyUSB0 depending on the serial interface controller on the Arduino.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
foxxyman
Posts: 28
Joined: Wed May 24, 2017 3:31 am
Location: Ephraim, Utah, USA, Earth, Milky Way, Universe

Re: RPi 3 combined with Arduino...

Sat Feb 17, 2018 5:01 am

DougieLawson wrote:
Thu Feb 15, 2018 8:11 pm
You connect it with a USB-A to USB-B printer cable for a regular Uno. You connect it with a USB-A to microUSB for a Nano.

It will appear as /dev/ttyACM0 or /dev/ttyUSB0 depending on the serial interface controller on the Arduino.
oh simple
-foxxyman
The pi solves life...

Return to “General discussion”