Arduino vs Raspberry Pi - Which one is better?
Вставка
- Опубліковано 8 лип 2024
- Master Raspberry Pi with our Course Bundle (96% off): andauth.co/pideal
The Arduino microcontroller is a complete ecosystem of boards, software, 3rd party libraries, clones, and an online community. Likewise, the Raspberry Pi is a complete maker ecosystem of boards, software, 3rd party libraries, and an online community. You can get an Arduino board for less than $10 and similarly you can get a Raspberry Pi board for less than $10. So, what are the differences and which is best?
Introduction to Android app development: www.dgitacademy.com
Let Me Explain T-shirt: teespring.com/gary-explains-l...
Twitter: / garyexplains
Instagram: / garyexplains
#garyexplains
Affiliate Disclosure:
When you buy through links in our description Gary Explains may earn an affiliate commission.
Ok ;) Few important notes. You can make Raspberry Pi Zero to boot up almost as fast as Arduino. It boots up so long because it starts complex OS from SD card which is totally OPTIONAL. Arduino has no OS whatsoever, just pre-programmed bootloader which allows to upload your hand-crafted firmware to the MCU. So... you can make hand crafted firmware to Raspberry Pi Zero as well, see projects which uses RPi to emulate Commodore 1541 floppy drive and it's OS or BBC Micro turbo module. This is kind of use in which RPI starts almost instantly. SDCard corrupts because OS makes accesses to the card when power fails. If it's read-only filesystem that alone makes it way less vulnerable. Flash-writes during loss of power might corrupt that flash region on MCU as well, but with SD card you can actually damage system files but with MCU you only get invalid data in eeprom emulating flash region which doesn't process code, only holds data. Arduino original product is also made to support foundation, so substantial portion of the official price is "donation" ;) Most clones are way cheaper, MKR1000 clones will probably be as low as 10$ anyway - that's component price + manufacturing fee + small profit margin. And last but not least - MCU has on-die advanced timers which really allows you to generate pwm, count fast impulses etc. It also has powerful ADC with speed way over acoustic band (and less noise) plus almost as powerful DAC. And can power down to draw microamps so is well suited to battery powered nodes. Also MKR can support directly capacity touch buttons, sliders etc. (due to having decent ADC and libraries) when RPi cannot without external hardware. So basically in most of the times when you have to run multiple applications under system it's way better to stick with Raspberry (or Orange, or Banana, or CHIP, or Nano or whatever Pi). If you need specific firmware solution with wifi connectivity it's either mkr or just esp32. Which actually offers most of the things MKR offer, has faster core and costs less.
ESP32 is such a cool arduino-device. Its got everything, can even run old gameconsole-emulators and cost from like $5.
Apples or Oranges: which one is best?
Bananas.
Tomatoes.
Depends... green, yellow, red, Granny Smith, golden delicious, gala, fuji, or pink pearl apples,
Valencia, Hamlin, sanguinelli, cara cara, tarocco, bahia, bergamot, or Seville oranges... dang, did I just get suckered in?
Heck, raspberry pies are good to eat too 😉
Raspberry
Raspberry's or Dingle-Berries, which one is best?
Mega like! Really looking forward to see the upcoming videos... Many thanks for the time n effort put into these videos. I enjoy'em a bunch!
great video, i love the fact that the cost now is kind of just down to the 'manufacturing' process and handling, and not anymore the complexity of those CPU's, or MCU's, whatever.
Each weigh about 20g raw material, and thats just the cost
Thanks for this explanation. I was wondering about that.
Esp32 is my preferred device now. Rpi in in otrer level, like server where I need a bunch of iot devices be coordinated, controlled and monitored. The simplicity is a plus in complex protects that provides more strong and flexible ecosistema. Each device have their utility.
This was an extremely informative video. Thank you for taking the time to put it together.
Keep up the good work Gary
Really clear comparison. Thanks a lot!
Good video! I would say though, with the whole Arduino vs Pi thing, you kind of make it sound like the Pi can do everything an Arduino can and more. While that is kind of true, people should not think that they should just ignore Arduino and go straight for a Pi. Just because you COULD plow a field with a Monster Truck (Pi), it would be better to use a Tractor (Arduino). Lol
If a raspi is a monster truck then a arduino is a bobby car for real.
Josef Aschwanden A bobby car. Lol
esp32/8266 and micropython are a perfect alternative for arduino, has wifi and boots fast and if you need the arduino ecosystem you can use it too. Has a ADC and works with every sensor.
Really helpful. Thank you.
You gotta be in business ...
Meaning you have to actually use both types to understand what the differences are and what they are useful for.
If you dont have a general interest for automation, programming or electronics, you will never quite understand what these bugs are 😎
Being educated as an electronics engineer back in the '70es, I feel like heaven on earth with all the possibilities now available.
Back then we had to look for bargains on BC237's in multipacks, to get something done 😛
amen brother!!!
@@MadLabZ I appreciate your thanks brother, I will pray for you brother!!!
Yeah, like when even a small red LED cost 30-40c! We're spoiled these days,
I use the esp8266 nodemcu and d1 mini all the time for home automation with Home Assistant. Esphome is wonderful. Esp32 are great for the bigger jobs.
So do I. WEMOS D1 costs around £2 and includes WiFi. I have temperature sensors, DS18B20's all connected by the 1-wire system. Great value.
Bravo! Nice vid, and as you said, in the end is about what is your project's needs.
I use a pi4 as a companion to my iPad to have a full linux system available for development and as a plex server on the go. I need to explore more the arduino side, only thing puts me off is that I don't like to write in C.
Great video! Suggestion, show a little love for the ESP32?
I've been wanting to build a CO2 scrubber for a while now. Looks like the Pi Zero W I bought is a bit overkill.
I'll just use it for a robot, though.
Thanks a lot for your Videos. I have one question, on a RPI is there any Microprocessor to handle the GPIOs and are there 8, 16 or 32 bit?
Would love to have more tutorial like videos on different microcontrollers. Also waiting for circuit python videos
I know arduions\microcontrollers almost always meet real time sysem requirements like hard timing constraints. But does the pi? With an OS you're not always going to meet hard deadlines, as it could be scheduling other tasks so the important task might miss it. Though this depends on what your hard timing constraints are.
I'm glad I watched the video bc I was about to rip you a new one based on the title. I can see why people would hate on you for the title, but I can see why you would title it as it is. People who don't know much about this would come in thinking "Let's see what this guy's opinion in," when it in fact turns out to be a video saying, "yeah, you can't compare these things." I think a good analogy would be Arduino as a car and a pi as an airplane. Could you take a plane anywhere you take a car? Sure. But it would be pretty stupid to take a plane to the store or take a car across multiple continents. Different use cases require different tools.
More like Honda City vs Ford Transit.
So, which SBC is best for micro market device development offering closed/protected code protection?
Thanks for sharing 👍
Good points 👍😀
30.......5
nice reference to the "full" rpi board price
i never bought such a expensive arduino board in my life to be honest
@@spwim lol
A screen capture card for mobile is costly. My question is can we use raspberry Pi any board to use it as screen capture card?
you can get an atmega328p clone board for 2-3 bucks, and even then they get murdered by 80 mhz STM32s left and right going for the same price,
and they barely even deliver in the GPIO part (where ESP32s shit the bad with low analog input polling rates and all)
the STM can do a gameboy with way lower level instructions, the r-pi can emulate 8 and 16 consoles with decent results regardless of massive amounts of OS and emulator overhead,
STM can't even dream of matching the r-pi in value proposition when it comes to raw punching power, let alone the atmegas lol
i mean, 8mhz on arduino (20 mhz before it burns up with some oscillator crystals) vs 1ghz, that doesn't require any IPC measurements to tell me who's the winner there,
not to mention 8-bit vs 32-bit, it can literally push 4x more data in a single clock cycle too AND be more precise too,
a factor of literally 100 isn't even off the table when it comes to calculation speeds.
but yeah, if youre looking for a low-power controller for your projects (going as low as 20 milliamps at 5v, 1/10th of a watthour),
nothing wrong with it, for embedded hardware -> less is more.
then again, the extra hardwre on the arduino makes it WAY less power efficient than just the atmega...
one goes for days on a battery, the other one can go for months if you use the power states right and just wake up from an external trigger
so the arduino kind of undermines the whole power thing in favor of flashing your own atmegas (regardless of whether it has the arduino bootloader or not)
never even bothered using the GPIO on the regular r-pi, why dedicate a powerhouse like that for it when it's raining atmega, stm32 and esp32s for 3 bucks.
the power of the pi zero is the fact it has 2 usb controllers, and you can flash the firmware on them to make your own HID usb devices (Although the controller on the arduino leonardo specifially can do that too), and has ample ram to run more than 3 libraries, pretty sure that was the original MSRP orso, haven't seen one under 10 for at least 3 years, they have been inflated forever... closer to 13 than the 8 bucks they used to be (but that's with the wifi these day though)
if you're really looking to work with barely any resources, try a digispark, it's a rush to work around the insane limitations of 1kb ram and 6kb program memory,
and usually they are used like rubber duckies with a USB keyboard/mouse library that already eats away at that 6kb.
but i find hard walls like that works inspiring.
either way, they're sooo much different, but everyone who really wants to look into coding embedded stuff and learn about electronics themselves, should have an arduino,
hell i'd say you haven't really optimized code, and learned the ropes, until you had microcontroller beat your ass with limitations like it was 1985
code is hell to maintain, and it's usually best practice to just delegate the job to multiple controllers even if you could do it on 1, but it's a great learning experience :D
i find r-pis the best way to learn your way around linux though, as a sysadmin i learned the ropes of Redhat 5 back in 99, but never saw linux as a good desktop operating system,
i still don't by the way, window managers can't help but suck shit even today, that's why i'm a CLI warrior.
in fact, i havea midi controller in the works that uses the zero as USB to midi interface, but the actual self-sufficient processes like the internal sequencer and oscillators are delegated to atmegas, way easier to maintain code and debug, and more shots at redundancy too,
and let's face it... i don't expect microsecond precision from a r-pi running a full-blown operating system, in terms of timing precision not even the fastest x86 pc has anything on the atmegas, despite all the nanotime functions and 64-bit floats they can return, they'd be lucky to get 2ms precision in the loop with the operating system bullshit keeping it down, i reckon it's a lot better on ring 0, haven't tried using pure ring 0 on a pi to be honest, the arduino will murder any general purpose computer in GPIO functionality and timing precision.
(people still hold on to r-pi 1's for GPIO as they're better at it, custom timings and stuff)
source:
i have 2 r-pi 3bs, an r-pi 4, an arduino uno, a leonardo, a mega knockoff, about 5-6 atmega382p nano knockoffs, and like 8 dip versions of the atmega chips themselves (without arduino bootloader)
about 3 stm32s and about 3 ESPs (of which 1x esp32, and 2 old ones that still allow for wifi deauthing ;)
yes, most of them are in the big old aliexpress drawer of shame, reminding me of all the projects i haven't finished yet,
(i'm a computer geek, but a shitty electrician)
tl; dr: i think the arduino isn't worth putting money on anymore at this point, not even the atmega chip itself really. it's been a good run though,
Since Arduino's compiler is GCC, you're not necessarily limited to C/C++. You can in theory use every language GCC supports. Just grab a more recent version of GCC (because the compiler distributed with the interface is positively ancient), and cross-compile it with crosstool-NG or something. And if you can generate arduino binaries with another tool, I'm sure those can also be downloaded to the device with some fiddling.
Re power consumption; I have a Zero W running headless with an aircraft ADS-B tuner attached to USB (you did a video on ADS-B recently), it uses around 400-450mA which is quite low compared to Pi 3s or 4s.
Pi 3 would use the same. Lol, max consumption is not the consumption you are going to use always
@@JosueRodriguez08 The Zero is a single core processor, of course it will use less power than a multi core processor. Appreciate it is dependent on tasks being performed but my zero will do ADS-B scanning using a 500mA phone charger, Pi3 may not even boot using that power.
@@send2gl I have used my pi3 from a laptop USB port....so don't say that
@@JosueRodriguez08 That's why I said 'may not' in the comment and not 'will not'.
Arduino has a bootloader only that simply loads the program flashed to it. So there's no "shutdown" option for an Arduino hence its completely safe to turn it off even when it is running the program.
Great video/info.
No Analog input on pi.... (?) Interrupts for realtime ?...
The Pi could do with something like Menuet OS. Graphical user interface, compilers and assembler and a surprising number of apps..... on a floppy or 2... 3mb OS will boot up in no time and and still offer a nice user experience.... As someone who's main product type in his little online shop used to be the smallest thin client motherboards I could find the Pi was the nail in the coffin. It was fun finding job lots of tiny PCs, low spec ones were often the smallest... Tiny old Compaq thin clients with 300mhz mmx X86 cpu, 128mb ram, flashable rom on a 3'' x 4'' form factor.. Usd for many device control projects, including some robotics... Bought for around £5 to £10 each in fairly large quantities at a time when possible, with power supplies... Power supplies sold for £15 as they fit many other Compaq TCs and laptops, mobos for £15 also.. Nasty nuts to crack though, those Compaq cases... I sold quite a few of the empty cases and PSU combos for nano-itx builds at £25. Dinky little things with a stand, a bit too small for mini-itx... the good old days. SFF PCs, parts and accesories. Converted higher spec thin clients made excellent set top boxes when converted to stand alones with a laptop HD and DVB-T card... blah, blah, waffle.. Wyse were my favourite in the end.
Nice video, thanks :)
8:53 waiiit is that mouse connected to the keyboard?
Yes, it is a USB keyboard with built-in USB hub. Not uncommon.
@@GaryExplains cool did not know that was a thing, i wonder if usb-c monitors would work through such a keyboard
@@fuseteam the first mass produced USB keyboard, which debuted with the first iMac had a built in hub.
@@jjbailey01 oh my
Welp. You can use ARM Arch linux for fast start and use read-only mount for system.
I have zero w and old printer setup for wifi printing. It’s at my parents house. I have never had any problems with sd card, and my parents switch it off by unplugging power cord all the time. Sd card in it has survived 2 years, and it keeps on going....
That's because in that application you pi is almost never writing to sd. It's idle most of the time, so no corruption
And what about the Arduino Nano 33 IOT for $20 or maybe ESP32 boards for $5, including WiFi, Bluetooth and a dual core 200 MHz processor?
What about them?
ATtiny13a can run on 190 μA @ 1.8 V and 1 MHz (numbers from the datasheet) - the difference in power consumption with PI (200mA) is already 1000x, more than 3 orders of magnitude.
But that's not all it is capable of - by underclocking it to 32kHz with external oscillator, it will run on just 20 μA, 10,000x less power, which is whole 4 orders of magnitude lower than PI ! In other word, on the same battery, the attiny chip will run 10,000 times longer. Or, if you want, you could have 10,000 of them run in parallel instead of 1 PI.
For the $20 price difference you could get a 20000mAh battery pack that would protect your sd storage and help buffer the power draw difference. I don't really know why else one would choose an Arduino other than price.
boot speed
no OS overhead
potential security issues introduced by an OS that are not introduced by the Arduino environment
power consumption of the controller
Given that this is a comparison of bananas and condoms, I'd say he did a fair job explaining the difference. And though, like bananas and condoms, they can be used together, each has its own separate and distinct purpose.
@@bkvdpw There was a good explanation. From the look of it capability wise there is nothing the Arduino can do that the PI can't. Even the points you made about boot times and security are both something the PI can match! The boot process is long because the PI has more features than the Arduino, remove those services and features from the boot process and the PI can match the Arduino. See boot sector games and such. The same solution would fix your concerns regarding security, just turn off things you don't need or that the Arduino doesn't have... Even the OS is optional. The other point you raise is concerning Power. From an environmental POV the Arduino uses less power. From a practice POV an energy solution would be possible given the ~$20 budget saved by choosing the PI.
See en.m.wikipedia.org/wiki/RISC_OS# There are also a number of promising OSs being written by Rust Developers. These should provide the boot speed and security you get from an Arduino, without having to become an expert on the Linux Boot Process.
is there as like debugger like Keil IDE with asm
Prices can be misleading because we are talking retail prices. Once you scale production up you should notice that microcontroller boards can be indeed a lot cheaper than more complex SoC. It may be possible that Arduino is making small batches of the board to reduce stock sizes and that is what drives prices high, particularly because the MKR system is less popular than previous boards and also is in their "Industrial" niche. I do agree with your points about system complexity and booting times, but there are many other reasons you would use an Arduino instead of a Pi, for example ADC and DAC, PWM, UARTS, USARTS, TIMERS, I2C and many other peripherals of which microcontrollers tend to have plenty more than a Raspberry-Pi.
I did a quick search for Arduino and Raspberry projects some days ago and found a lot more interesting projects for the Arduino than for the Raspberry. Those were the same boring stuff as always like a display built in the mirror. I just thought that is rather strange.
Doesn’t the pi zero still have supply issues?
V1.3 (current version) resolved all of those issues. That was released only a few months after the initial Pi Zero release. Pi Zero W doesn't suffer from any power issues.
I think Six0Three means "supply" as in your can't find them for sale, sold out.
You get a NodeMCu with 8266 Chip for like 2 Dollars in China, your Prices are total off the charts.
"Off the charts"? Eh? Did you even watch the video?
@@GaryExplains Yout Thumbnail Picture was enough, thanks. False Advertisement, then.
@@Diranar851 LOL. That is probably the stupidest thing I have heard today. The cost of the MKR1000 is as "advertised". Nothing false or incorrect. I go into depth in the video about the alternatives that are available including the ESP based Arduino compatible boards. Sorry dude, but you are way off the chart here.
For the fans of python, pycom.io/ has a number of boards for that kind of tinkering as well. Their first board was ESP8266 based and a prime example of the huge penalty you get that way. What you could fit on there and have running is so much less than the same board using the Arduino IDE.
But I do get that it's better to have something that you can use and at least get something working, over something that in principle is more efficient, but maybe much harder to understand, so that someone might not be able to get something running.
Rpi is less capable if we talking about max pin current, only 3mA. AVR from adruino uno can handle 20mA, SAMD21 from arduino mkr1000 only 7mA. It is less powerful but can enter power save mode with ~5μA and wake up from time to time to read data from sensors. Can be easily powered from coin cell.
Its worth to mention that μController is a whole computer in one chip. Arduino is just a pcb board with that chip. After loading a program into the flash memory you could desolder it and connect to coin cell and it could work with no problem. Chip alone cost ~1.5$ and 4mmx4mm packages are available. It would be hard to size down a Rpi.
μC are ideal if you need fast, exact time and 100% guarantee response for an incoming interrupt signal, no OS to meddle.
Okay, ai don't know what happened with us prices. I live in Canada and I just looked up both boards. The arduino is in the $40-60 range, which seems to be in line. The Raspberry Pi Zero is like $75+ though. So, in the video, it's about 3 times cheaper but now it's twice the price. Has it really gone up that much in the last year?
If your considering Servo or other PWM devices, the Pi is very poor as it lacks true hardware level PWM control. On the other hand, the Arduino can read and write digital signals; It can detect for example a high, low, rising or falling of the signal. And allows you to generate your own custom signal in real time.
Realistically - an ESP32 costs less than the Pi Zero W. Also, you cannot get several Pi Zeros, you may be able to buy one unbundled, maybe, sometimes.
And an Arduino costs $2. Or $2 + $28 brand name.
Bulldozer or Tractor: which one is best?
LOL another person who didn't watch the video! 😂
Haven’t finished watching yet, but the use-case scenario is what determines which one is better.
Then finish watching it.
Gary Explains seeing as how the video is around 13-15 minutes and my comment was 2 hours ago, one could assume I FINISHED IT.
Loosen your panties a bit, I wasn’t disparaging you.
@@RossPotts Great and so you will know that I said that very thing in the video.
Gary Explains yup, and I was pleasantly surprised. My notification only says 7 minutes ago on your initial reply, so if I jumped late, I apologize.
Pi-hole was a fun and simple project that shows you how much garbage comes your way. Still smart to use with an ad blocker. Pick out a fun project and have fun its what I think this video helps explain.
esp32 ftw
I still think Arduino is too expensive, even its clones. We use it as terminal nodes in our smart farm system, and its job is only (de)activating switch and reading values from two sensors (temperature and humidity) and provide http endpoints for them, compared to Pi as a hub which has to synchronize the Arduino and a cloud server. But its total price per node actually exceeds our Pi. So I hope there are alternatives that are much cheaper with similar functionality, because the terminal node is the one that needs to be numerous.
Thanks for the video. Some Suggestions:
AVR:
Go: github.com/tinygo-org/tinygo
Rust: github.com/avr-rust github.com/avr-rust/blink
Python: PyMite, micropython
Lua: github.com/deemess/uLua github.com/elua/elua
Then wiki.gentoo.org/wiki/Cross_build_environment which enables you to build full blown language support including C, C++, D, Fortran, Ada, Go with the GNU gcc tool-chain or have access to the LLVM family with its wide variety of language support.
Your Arduino IDE uses the gcc tool-chain under the hood, so it is capable of C++ and you can specify your own tool-chain or use one from blog.zakkemble.net/avr-gcc-builds/ to have some more modern features available.
Raspi:
Comparing boot-times will be fairer when comparing bare-metal with bare-metal: en.wikibooks.org/wiki/Bare-metal_Raspberry_Pi_Programming + github.com/bztsrc/raspi3-tutorial
In other words, I repeat what you said in the video: It is important to know which is the right tool for which use-case.
where you find these at 5?
Here www.adafruit.com/product/2885
Hey, you forgot to talk about the part that the Arduino has and the pi not, hardware timers, interrupts and stuff
Can you share the link to the 5$ pi zero
On the Raspberry Pi website: www.raspberrypi.org/products/raspberry-pi-zero/
Great explanation professor .... Mark is late today ....MARK!!!
Very simple, get a Pi Zero W and an Arduino Nano. Now you get GPIO, full Linux as well as PWM. Write your arduino code so that it just passes serial calls to the arduino functions.
That isn't "simple" 😜
Arduino is a microcontroller
Rpi is a microprocessor
*You CANNOT try different operating systems of any kind on an Arduino! And Arduino doesn't have an OS, its IDE is a compiler and uploader for the libraries to the compatible devices* .
The biggest differences between the two are Pi's can have an OS for more memory-hungry and complicated tasks (complex robots etc.) while Arduino are for basic to moderate mechanical tasks. Also Arduino is only the interface for the microprocessor itself, but the microprocessor can be removed (from some Arduinos) to make the device/circuit smaller or make copies of the microprocessor for more than one device.
Depends on your definition of an OS and which Arduino compatible board you are using. About the OS I have had this conversation with others here, please look at the comments, I won't repeat them here.
ESP32 is my choice. The Heltec wifi kit if i need a display and the M5Stack if i need a case, color graphics display, sd card, buttons ... And all are programmable in C or Micropython. Im lovin it 😃
I would not call what the Arduino has an operating system. It's perhaps closer to a BIOS, but even then it's one which is tailored and compiled for each application. I don't count libraries as an operating system; they are a rather different concept.
If somebody cared to, then it would be possible to produce such a minimal environment for a Raspberry Pi. The latter is not limited to Linux after all. However, it would be something of an overkill to use a Raspberry Pi as a microcontroller.
Ever consider doing a video on LILYGO® TTGO T-Display ESP32 ? Neat little board with a nice lcd display on it and cheap too
It's a bit of an apples and oranges comparison. But since you made a point to explain how drastically different they are in terms of Linux vs mad minimal, you know that and presumably your audience doesn't necessarily know that. Still, to get past these basics and assume someone knows they want to do a microcontroller project which if that was NOT the case, they need to stay FAR FROM the arduino, I think a better comparison would be Raspberry Pi PICO vs Arduino. And with that comparison, I would be very deliberate in pointing out that there are AVR microcontroller arduinos and I would steer people clear of those since WHY LEARN AVR assembly when ARM actually applies far more broadly and on much better processors for the price. So then the most apples and apples comparison becomes Ri Pico or an ARM Arduino and I think that one comes down to all the shield availability with the Arduino and how much you want to delve into FREE RTOS which is it's own very big world but more applicable to learning real industry projects. I'm only toying with AVR myself because it blows my mind that mankind ever actually hand coded machines with 8 bit registers. It's wacky. But it's a trip to the ancient times. And how it does pointers using special register pairs to get a 16 bit pointer. ???????????? But ARM just gets you straight up 32 bit which is far more than necessary to address all of memory as a flat linear range since no micro controller will have over 4 gigs of ram. As a matter of fact, the memory you're dealing with is from an SRAM pool that is fixed and obviously MUCH smaller.
There is also OTA for Arduino style microcontrollers, for example: arduino.esp8266.com/Arduino/versions/2.0.0/doc/ota_updates/ota_updates.html
esp32 with micropython or a pyboard-d, usb connection, notepad editor + filezilla
Pi Zero - $15 at best and power hungry - eats battery fast, heats up
I'm also curious where he found those zero for 5$ all the ones I found were above 10$ if you bought them from China while you can get Arduino nano for 2$
Which one is better... But for what purpose ??
Arduino is perfect as a microcontroller, but it absolutely sucks for watching UA-cam
Pi can serve as a microcontroller, but from my experience - one power loss and you need to re-image your SD card
Did you watch the video?
*GARY!!!*
*Good Morning Professor!*
*Good Morning Fellow Classmates!*
MARK!!!
Mark!!!
@@worthlessguy7477 *NULL!*
So far, the Arduino has been able to do everything I have wanted to do.
I bought a pi and the type was so small I couldn't read it. I'm sure there is some way to change that, but I didn't do it.
Why can't they make a Raspberry Pi or any other microcontroller with a Snapdragon SoC?
Since the Snapdragon isn't a microcontroller, then there will never be a Snapdragon based microcontroller board. Are you asking why can't they build a Snapdragon based SBC?
Because they are a microcontroller company.
Who is a microcontroller company?
@@GaryExplains oh yes, I'm asking why can't they built a Snapdragon based single board computer
They can and they do: www.96boards.org/product/rb3-platform/ and www.96boards.org/product/dragonboard820c/
I thought the distinguishing feature of microcontrollers was that they DON'T have an 'operating system'.
There are plenty of microcontroller operating systems including Zephyr, FreeRTOS and Mbed OS.
Actually, that's the advantage of the microcontroller. You can use all of its power for what you want to do....like, why do I want an OS if I'm going to perform only one task?
@@JosueRodriguez08 Well, microcontrollers can be used in more complex situations that you are envisioning.
@@GaryExplains Those are embedded systems O/S. Embedded does not equal microcontroller. For instance, the ATmega family used in Arduino do not have or need anything resembling an operating system.
@@daveayerstdavies Interrupt handling, cooperative multi tasking, Bluetooth stack, networking stack... Starting to sound like an OS to me. Have you seen how much code there is in the core that isn't exposed to the programmer?
It was easy to learn about microcontrollers with Arduino. Advanced users would prefer pi
Advanced users prefer not to use arduino nor rpi. There are a lot of boards that are better
@@JosueRodriguez08 completely agree with you 100%. Legends don't use aur or pi.
There are even smaller Web servers. Look at the original Contiki OS by Adam Dunkel.
www.contiki-os.org/
en.wikipedia.org/wiki/Contiki
What are these used for... "I want to know more Please let me understand"
Uh, what... make sense. And who upped this comment lol 🙄
Where can you buy a PI zero W for $5 ?????
It is $10 for the W version, as I say in the video.
@@GaryExplains As I read all these comments about the Pi prices, asking the same question over and over, I've thought to myself "Gary should just pin a comment at the top saying the Pi Zero and Zero W sells for 5$ and 10$ respectively in ONLY his country".
@@pjsivley LOL
I think it really needs to be made clear that the Arduino is NOT running any kind of operating system, not even a simple one. There is no room for that with kilobytes of memory and storage on the chip. The IDE is providing a simplified interface for writing firmware that is compiled, flashed to the chip, and run directly on the hardware. There is a small amount of code that helps simplify the process of flashing the compiled code to the chip, and that's it.
For the majority of applications, projects, and learning, I'd recommend the Pi over the Arduino. The scope of what the Pi is capable of is so much wider, and learning Linux is a far more general and valuable skill than learning a specialized subset of C. The ability to remotely administer a headless Pi with SSH is also a huge advantage for any kind of ongoing project.
Exceptions to this recommendation would be:
1.) IoT projects that require low power consumption (run off a battery) and have minimal networking requirements (pushing data, handling extremely short and simple requests).
2.) Controllers for small scale industrial processes that need to be highly reliable and recover quickly from power glitches. I know a guy that has used Arduinos to automate most of the manual processes on his farm scale olive oil machine.
3.) Someone who absolutely knows that they want to get into electronics and firmware, rather than computer science and general computing. But even in this case, they'd probably be better served by a more fully featured microcontroller development platform.
Depends what you mean by operating system.
Hi.
Another important difference is that the pi is a computer and the atmel chips (nano & co)are microcontrollers. A computer has an operating system that has to be booted and shut down correctly and should not be just shut off by a switch (Filesystem problems). That has to be kept in mind wenn choosing between them.
Pudelfan
@@pudelfan3059 I thought I said all that in the video.
@@GaryExplains no, it does not depend, they do not have an OS!
@@JosueRodriguez08 Well, I don't think you understand what an OS is then.
Arduino is great for very low power projects.
See here how one is tweaked to 200 nA!
They are very different animals, Arduino is more for low level gadget development, the raspberry pi is more for high level development.
As long as one understands that you're using the geeky definitions of high and low level and not some mainstream definition, you're spot on.
Which is why I am comparing them! 🙄
The Raspberry Pi is built for an idea, recreating the BBC micro to encource STEM. The adoption of the maker market was a happy accident.
The Raspberry Pi is disruptively cheap. Much like the 6502 was in the 70s. The Raspberry PI can be made to boot quicker, it's just not as well supported. There is a port of RTOSs to the Raspberry PI and they are much lighter.
6:26 That's absurd. Every computer on Earth including simple MCU's freeze and need reset. That's why everything from Arduino to Xbox Controllers has a reset button. That is in no way shape or form an advantage Microcontrollers have over Raspberry Pis.
You have misunderstood what I am saying there. Sorry. But I am talking about the reliability of a microcontroller and its read-only flash memory compared to the complexity of a full Linux system and an SD card. Also, does the microcontroller in your car crash often?
I stopped after 25 seconds. Where do you get a Pi for $5/5€ ?
A link would be welcome.
It isn't hard to find, just go to the official Raspberry Pi site and find the distributor for your area: www.raspberrypi.org/products/raspberry-pi-zero/ I just double checked a distributor in a European country and the price quoted is €5.17.
Jérôme Rioublanc it's just a Pi Zero. Not a full 3b+ or 4.
Gary Explains Unfortunately this isn’t available. Only the one at 14.60 € can be ordered... I already saw that, this is what triggered my comment. But thanks a lot for taking the time to answer.
@@jrioublanc Stock issues are outside of my control. However the device isn't discontinued and I can get them in my country without any problems.
Gary Explains yes you’re right. But I never been able to order this device in France for less than 10 € despite what was advised everywhere since it has been introduced. Not your fault, for sure. Regards.
Some years ago, I read an article that suggested that if you needed two or fewer if statements to describe your program, then probably an Arduino was best to use. Anything more complicated than that might be handled better by a Raspberry Pi. I will note for those who don't have time to listen to Gary, he DOES NOT explain that.
Which is the pirate’s favorite SBC?
The Arrrrduino 😁
I love your explanations, however it would be better if you make it in less than 10 minutes!
LOL, no.
😅
A microcontroller is much better at timing based stuff.
anyone got a Pi zero for $5 ?, i never got a chance.
not has under 20-30$ any all internet newer, all sellers want win lot money and no sell under 20-30$
Wow. How bad. Comparing a microcontroller to a sbc is like asking $3500 wheelchair vs. toyota camry - which one is better? It simply depends what you need and what you're going to do with it.
Someone who didn't watch the video ^^^^^^^
@@GaryExplains I watched the video, all the way through I might add before you throw that back at me like quite a few other responses you have given when people make a point you don't understand. A micro-controller (Arduino/PIC etc) and a SBC (single board computer such as RPi/Beaglebone etc) can only be compared for a given task, not for an "All in one which is better" comparison.
It's like comparing a push bike to a car, sure they are both a form of transport, both have wheels & steering etc but they are designed for different uses.
I won't write a complete list but will give you a very simple example. One of your replies you said "So the GPIO pins on the Raspberry Pi are for decoration", no they are not just for decoration & yes you can wire in all manner of things but, & this is a big BUT, it is far from easy that you can accurately (time wise) read or write the GPIO on a RPi. This is due to it being a computer & running an operating system, even if you boot into console mode there are processes running in the background. Not to mention if you use Python (which a vast majority do on the RPi) that's an interpreted language which again can complicate timing. Sure the RPi can read/write a lot of data through the GPIO thanks to it's cpu speed but the timing accuracy is not 100% die to what I mentioned previously. A micro-controller on the other hand can because it is only running what you put on it & as all the instructions take a known amount of time it's not difficult to get consistent accurate timing.
I use both & each are superb for what they are designed for once you understand their strengths & limitations.
Another reply of yours was "The Raspberry Pi vs Ardunio seems to be a popular topic with a combined total of millions of views on UA-cam", so you made this video as clickbait then hoping to increase your views or whatever??? . What you didn't take from your search was that your video ended up like 90% of those others being bordering on useless. If this video was called "Arduino vs Raspberry Pi - What's the difference" rather than "Which is better" then it would have been more apt as you did point out a lot of key bits about both of them which quite a few of the other videos missed out on.
@@TheFuzzy70 You claim to have watched the video but then you are fixating on the title. Does the video cover the points needed for a "what is the difference" video? I think so and so do you. The video is important here not if you like the title. 🙄
@@GaryExplains Seriously???, The amount of comments giving you constructive criticism & all you do is fob them off. It is a "What's the difference" video as I pointed out, even saying you bought up a lot of points on both systems. However it's not called that is it, the problem is it's called "What's better" which is the wrong title because of the reasons I (& others) pointed out in they are 2 different things with different goals.
@@TheFuzzy70 LOL, I spend hours and hours researching, preparing, producing, recording, editing and publishing a video. A video which you don't have a problem with. But you want to waste time talking if "what is the difference" is better than "which is better" in the title. LOL.
ESP is the best...
On my country a raspberry pi is like 200reais(50dollars).
For a Pi Zero, $50? Not a Pi 3 or 4.
@@GaryExplains for a pi zero( yes is super expensive, its arround 25 and 50 dollar for an pi zero)
@@Sermi_Fox Wow, that is sad, which country is that?
@@GaryExplains Brazil(Yea it's sad)
@@Sermi_Fox I see that the official supplier Filipeflop has it for R$119,90, but that is still high.
Pi doesn't have analog in.
Can’t do general purpose stuff with the GPIO pins?
Huh, looks like you can’t! Though my brief internet search gives results for doing it (addon hardware?). I also imagine one could output analog with a capacitor and rapid duty cycles, Idunno.
Wierd comparison Ardino boards, usually just used for development. Later the Atmel 8-bit AVR microcontroller is used on one's one PCB.
Why is it a weird comparison? Arduino's are certainly not just used for development. They are used for all kinds of hobbyist and maker projects from robotics to smart-home to IoT.
Arduino is a software development IDE replacement for C on a existing chip running in real time. It's not an original hardware solution like the pi. I suppose sometimes they could be used for the same purpose. I dought that people using microcontroles in electronic projects would use a computer and high level prorgraming language like python. The the micontroler chip and the PI are two different tools and it's stupid to compare them.
@@alsehendo34 Sorry but you are wrong and clearly don't know how people are using microcontrollers or the Pi.
@@alsehendo34 PS. You should read some of the others comments, lots of people found the comparison useful and not weird at all.
Thumbnail depicted the pi as being sold at $10... hmm 🤔🤔🤔
It is. The Raspberry Pi Zero W costs $10/€10 depending on your region. The non W version costs just $5/€5. What is your question/issue with that?
@@GaryExplains ok. Just that, you said $5 in the video.
I can be a sarcastic dick sometimes. Lol like to get people going in the comment section and spark conversation. It helps channels to grow sometimes.
So there are two different models of Pi Zero. Since the MKR1000 is a Wi-Fi enabled Arduino then I opted to place it next to the Wi-Fi enabled Pi in the thumbnail. In the video I talk about lots of models of both Pi and Arduino. I don't think you sarcasm was even close to being warranted.
@@GaryExplains I respectfully disagree.
I don't mean to be coarse or anything.
But come on... said 30 to 10 on the thumbnail and then started off saying 10 was actually 5..
I really didn't mean any disrespect, just pointing out the obvious.
Warranted, it was...
I don't understand, are you complaining about the order that I present the different devices? I have a whole section of the video about the different boards and the different prices. The thumbnail shows two possible boards (and their prices), in this case both are Wi-Fi enabled.
A raspberry can work as an Arduino , an arduino can't work as a raspberry , that simple hhhh .
That is indeed true, but it is more complex than that including boot times, power usage etc. Everything I said in the video.
@@GaryExplains yes I watched the video , great points there , also raspberry's GPIOs don't have an ADC so you would have to get a sheild for that.
That's absolutely fake. RPI don't have the hardware to do that my boi
@@JosueRodriguez08 Fake?
Not in terms of hardware support and documentation. Many board manufacturers will offer pretty comprehensive libraries, documents and examples that are geared towards Arduino compatibility. 3rd party software and materials are generated for a lot of these products which also support various Arduinos. In many instances the development time for a project could be minutes on the Arduino and hours on the Raspberry Pi.
Also, there's a relationship between complexity and reliability that comes into play in electronics. The most reliable solution, the one with the fewest moving parts (including in software), is usually the simplest possible system that meets the design requirement. The higher entropy solution of the Raspberry Pi isn't quite as reliable as the Arduino.
You just read the spec sheet of the board, you didn't actually explain anything. You just kept saying how it's a whole ecosystem over and over. First you say it's not for OS changing because it comes with it's own then you say you can change it's OS. A bit confusing for the average person but I understand what you were trying to say.
So, one is for embedded development with a lot of GPIO and the other is for Linux development with a lot of GPIO. $5 is ridiculous. A hamburger costs more than that.
Never good to compare apples to oranges.
I agree, and I am not.
@@GaryExplains yes you are
@@JosueRodriguez08 No I am not.