Arduino Vs Raspberry Pi
[EN] English version below
Alguns cops m’ha sorgit el dubte sobre si una idea o un projecte és millor fer-lo amb un Arduino o amb una Raspberry Pi. També és un tema recurrent entre els Makers i frikys electrònics, i un dels primers dubtes en la gent sense experiència en el desenvolupament electrònic.
No soc extremista, i he de dir que hi ha més hardware que es pot utilitzar, però per fer la següent explicació ho centraré en aquestes dues plaques de desenvolupament.
Per entendre la diferència entre aquestes dues plaques cal veuer com estan fetes: Arduino és un ‘microcontrolador‘, i Raspberry Pi és un ‘microprocessador‘.
En el següent video teniu una descripció molt útil d’una i l’altra (en Anglès):
Això està molt bé, però encara tinc dubtes…
Potser els següents comentaris t’ajuden a definir la placa que necessites pel teu projecte:
- Si no tens coneixements de programació o son bàsics, millor utilitzar Arduino i el seu IDE. La corba d’aprenentatge és més ràpida i permet encarar projectes complexos en el futur.
- Si tens coneixements previs de C, Linux, Python o Go, possiblement puguis realitzar projectes més complexes amb Rasp Pi de forma més àgil.
Sobre el teu projecte/idea:
- Si requereix connectivitat a internet, valora la Rasp Pi pel seu connector Ethernet, més senzill d’utilitzar que un Arduino amb motxilla.
- Si utilitzes aparells amb connectivitat USB, definitivament Raspberry.
- Si vols gestionar fitxers o bancs d’emmagatzemament, molt millor Raspberry Pi.
- Si cal càmera o dispositius de sò, Raspberry Pi.
Pero…
- Si dissenyes un circuit electrònic que interaccioni amb la placa, generalment sol ser més senzill amb Arduino.
- En un projecte electrònic que utilitzi ports GPIO (botons, polsadors o LEDs), millor Arduino.
- Si necessites motxilles de complement, possiblement Arduino perquè en té més varietat.
- Per fer circuits de comunicacions locals de proximitat (Bluetooth, Zigbee, …).
- Si necessites ports analògics, com convertidors analògic-digital (ADC).
La meva opinió:
M’agrada utilitzar microcontroladors quan he de fer un projecte electrònic que requereix alguna mena d’actuació o comunicació a través dels ports GPIO. Programo amb IDE Arduino i utilitzo un Arduino Uno per proves senzilles o prototips i un DUE per projectes complexos. També utilitzo microcontroladors de Texas Instruments, el MSP430 que té una familia molt extensa amb diversitat de característiques i de baix consum. En aquestos casos treballo amb diversitat de perifèrics o plaques d’expansió de diferents tipus, els quals connecto utilitzant una bredboard.
Raspberry Pi l’utilitzo molt menys, només per implementar projectes dissenyats per altres, com a part del procés de descoberta d’aquesta tecnologia. M’atreu el fet de poder-lo connectar a internet, però també m’agrada que en alguns aspectes és pràcticament un sustitut d’un ordinador de sobretaula. Recomano utilitzar la Raspberry en combinació amb una TV com a Media Center o simplement per navegar.
Per començar:
Trobareu un munt de botigues on-line per totes les plaques. Per començar amb Arduino, per exemple, recomano comprar un kit que inclogui una placa bàsica, per exemple la UNO, una bredboard, cables, uns leds, resistències i altres elements al vostre gust (servos, motors, pantalles, 7-segments, … hi ha on triar). No és imprescindible, però ajuda a desenvolupar i, a més, veureu que hi ha multitud de projectes i tutorials amb kits similars.
No caigueu en la temptació de comprar clons xinesos!. Sí, son més econòmics, pero penseu que part dels diners per la compra de cada tarja van destinats a continuar el desenvolupament del projecte Arduino, i sin diners ben invertits. Aqui teniu el link a una botiga de Girona amb venda on-line de plaques, motxilles, i el que pugueu necessitar.
Començar amb Raspberry Pi és més simple doncs hi ha menys opcions de targes. Si us voleu curar en salut, compreu directament un kit amb el model 2B, una tarja SD, un alimentador, i potser un teclat inalambric. Per fer projectes electrònics també serà útil una bredboard i alguns components. Aqui el link a la mateixa botiga.
Per acabar, un link a la web Instructables amb projectes amb Arduino i Raspberry Pi. Agafeu idees!
Si vols preguntar algun dubte, exposar la teva opinió, si t’ha ajudat o vols fer una aportació a l’article, envia’m un missatge, o deixa un comentari.
Sometimes I’ve been wondering if I should implement an idea or project with Arduino or a Raspberry Pi. It’s an ongoing subject between Makers and electronic Geeks, and one of the firsts questions from non-skilled people in electronic development.
I’m not an extremist, and I have to say that there’s more useful hardware to be used, but for better explanation I will focus on these two development boards.
To understand the difference between these two boards, you have to understand that Arduino is a ‘microcontroller‘ and Raspberry Pi is a ‘microprocessor‘.
In the following video you have a brief description of both devices:
That’s fine, but I still have doubts…
Maybe the following comment will help to determine what’s the best board for your project:
- If you don’t know to code o are not skilled, better use Arduino and its IDE. You will find it easier to learn, and will be able to deal with more complex projects in the future.
- If you know to code in C, Linux, Python or Go, possibly you can face more complex projects with a Rasp Pi.
About your project or idea:
- If internet connectivity is required, maybe the Ethernet connector of the Rasp Pi is interesting, and easier to use than an Arduino Shield.
- If you use hardware connected by USB, definitely Raspberry.
- If you want to manage files or drives, better use Raspberry Pi.
- If a camera or sound devices are needed, Raspberry Pi.
But…
- If your electronic design needs to be connected to a board, usually you should find easier using Arduino.
- If you need GPIO ports, such buttons, switches or LEDs, better Arduino.
- If you need Shields, Arduino offers a huge range of models.
- To implement short or local communications circuits (Bluetooth, Zigbee, …).
- If you need to deal with analog ports or Analog-Digital Converters (ADC), use Arduino.
My opinion:
I like to use microcontrollers when I have an electronic project that requires some kind of communication through GPIO ports. I use the Arduino IDE and usually an Arduino Uno for easy and fast prototyping, and a DUE for more complex projects. I also use microcontrollers from Texas Instruments, such the MSP430, with a large family range with diversity of features and low power consumption. In that case I work with several peripherals and expansion boards from a variety of types, that are connected using a bredboard.
I use less the Raspberry Pi, only to implement projects designed by third parts, for the pleasure to discover this new technology. I’m attracted by the fact to connect it to internet, but i find interesting that in some cases is almost a substitute for a desktop computer. I recommend to use the Raspberry in combination with a TV as a Media Center, or simply to surf the web.
To start:
You will find a lot of on-line shops for all the boards. To start with Arduino, I recommend to buy a kit with a basic board, commonly an Arduino Uno, a bredboard, some connecting cables, LEDs, resistors and other elements of your choice (servomotors, screens, 7-segments,…). This option is strongly recommended to develop, and you will find a huge amount of projects and tutorials using similar kits.
Do not buy Chinese clones! They are cheaper, but you should take into account that part of the money of each board is destined to support the Arduino project. Here you have a local shop with on-line service with boards, shields and all you would need.
To start with Raspberry Pi is much simpler because there are less types of boards. Buying a kit with a Raspberry Pi model 2 B, an SD card, a power supply module and, maybe, a wireless keyboard, is a winning option. For electronic circuits development you will find useful a bredboard and some components. Here is the link to the same shop.
To finish, here is the link to Instructables Website, with projects using Arduino and Raspberry Pi. Take some ideas!
If you want to ask something, give your opinion, if you find this post useful or want to add something, send me a message o leave a comment.
One thought on “Arduino Vs Raspberry Pi”
Comments are closed.