+ 7

Raspberry Pi and Arduino

Which of the tagged languages is best to learn for each of these two platforms and why; and if I am to combine these two, what are the pros and cons of doing this and again what language is best off?

6th Jul 2017, 10:20 PM
Garikai
Garikai - avatar
6 Respuestas
+ 5
Most content I've used and created has been written in Python, but it depends on what you want to achieve. I've personally yet to use Java with the RPi, but I would assume it works almost just as well as Python. I had a project where I needed to do audio(signal)-processing for the RPi where I even used Matlab's Simulink. Should also be noted Arduinos own software https://www.arduino.cc/en/main/software is straight forward to use.
6th Jul 2017, 10:59 PM
Frederik Stenberg
Frederik Stenberg - avatar
+ 6
I am looking into doing some IoT projects, but I'm on the 'still deciding' phase. I've done a little digging and figured that Arduino was virtually, if not entirely, written in C. Now if this is the case, would it be overkill to learn C instead of Arduino, or it suffices for my purposes? Then again aren't there any significant latency issues with the 'higher level languages' (i.e. Python, Java, Matlab etc)? Thanks.
6th Jul 2017, 11:14 PM
Garikai
Garikai - avatar
+ 6
Thanks a lot Fred, can't wait to try it out. 😉
6th Jul 2017, 11:34 PM
Garikai
Garikai - avatar
+ 5
I only have experience with the Raspberry Pi, and I know that it's two main languages are Java and Python.
6th Jul 2017, 10:25 PM
Keto Z
Keto Z - avatar
+ 4
with python and pyserial you can control both devices with the same language: python. All c you need is the firmata firmware that you'll upload on the arduino. This is the easiest option to get quickly and easily, interensting results that will keep you motivated in digging deeper.
21st Jul 2017, 4:54 PM
seamiki
seamiki - avatar
+ 2
I have not tried using C with Arduino, as their software has been sufficient for my purposes. I can see from your profile you already have some idea of programming (Java & C#). With that knowledge I would guess you could understand the Arduino language in about a day, but if you want to really dig in learn C, then you could go as far as to modify some of the Arduino libraries yourself if needed. About latency issues, I've only experienced noticeable issues with Matlab, as it was processing such a vast amount of samples. If you keep your code clean, there shouldn't be too many issues.
6th Jul 2017, 11:24 PM
Frederik Stenberg
Frederik Stenberg - avatar