propergol
Posts: 21
Joined: Mon Aug 15, 2016 1:39 pm

Can all things done on Arduino be done instead on a PI3 ?

Fri Nov 25, 2016 1:31 am

Sorry if this question sounds stupid to some :? but when I see a youtube video for example demonstrating something done on an Arduino, can it allways been done also on a Raspberry?

Or may Arduino has specific hardware?

Thanks

User avatar
mikronauts
Posts: 2783
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Can all things done on Arduino be done instead on a PI3

Fri Nov 25, 2016 1:41 am

No, everything cannot be done.

Arduino: 8 bit microcontroller, with analog inputs

Pi: 32/64 bit SOC, with Linux, graphics etc, but no analog inputs

VERY different beast.
propergol wrote:Sorry if this question sounds stupid to some :? but when I see a youtube video for example demonstrating something done on an Arduino, can it allways been done also on a Raspberry?

Or may Arduino has specific hardware?

Thanks
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

propergol
Posts: 21
Joined: Mon Aug 15, 2016 1:39 pm

Re: Can all things done on Arduino be done instead on a PI3

Fri Nov 25, 2016 2:01 am

Well, thanks for this clarification.

What has confused me is that I have seen some projects that was running on both ie: ntp gps based server, Hyperion (Ambilight) if I recall well.

So for example if I want to try to use the hardware of an existing cheap motorized IP camera (I have absolutely no clue if it is doable or not...) and control with some software, then Arduino is best suited hardware?

User avatar
mikronauts
Posts: 2783
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Can all things done on Arduino be done instead on a PI3

Fri Nov 25, 2016 2:07 am

Basically, except for the simplest projects (ie blink an LED) you will have to modify the code.

Arduino has a LOT of pre-written libraries.

The vast majority of those are not available on the Pi, so you would have to write the equivalent functions.

It is pretty easy to add an analog to digital converter, what will be difficult for you is interfacing some random sensor, for which there is already a library for the Arduino, but not the Raspberry Pi, to the Pi.

If for every sensor you consider buying you first google for a Raspberry Pi example, you can do OK.

If you buy a random sensor/part that has some Arduino code, you will likely be out of luck.

See Gordon's http://wiringpi.com/ for some Arduino compatible libraries for the Pi.
propergol wrote:Well, thanks for this clarification.

What has confused me is that I have seen some projects that was running on both ie: ntp gps based server, Hyperion (Ambilight) if I recall well.

So for example if I want to try to use the hardware of an existing cheap motorized IP camera (I have absolutely no clue if it is doable or not...) and control with some software, then Arduino is best suited hardware?
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

Return to “Beginners”