Arduino vs ESP32 – Which one is best? Feature Comparison & First Steps in Arduino IDE

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
the arduino can't do a thing and is way too expensive what my favorite alternative is and why we still have to love the arduino i tell you in this video also i show you how to run the first piece of code on an arduino uno and on an esp32 in the arduino development environment right after the intro [Music] if i claim that the arduino can do a thing then this is of course completely accelerated but nowadays in comparison to other microcontrollers the arduino has become quite expensive the widely distributed arduino uno has no wifi and no bluetooth or for example the esp-32 my favorite alternative to the arduino comes with wi-fi and bluetooth well one must say that the arduino you know has certainly a few days more on the hump but even if we take a look at an arduino model that has similar features at the acp-32 but see for yourself before we take a look at the devices again here is a brief explanation why we must love the arduino anyway what the team of arduino achieved was simply an excellent complete package a simple microcontroller comparatively cheap at that time together with a development environment that is easy to use and on top of that we get a framework that is not overly complicated this complete package finally led to the fact that many people have started programming microcontrollers among hobby electronics and in schools stem education tinkering with microcontrollers has become quite normal today so here we have an arduino you know you can see here the processor from atmel sensors or leds or other components on the breadboard are connected via the pin headers and jumper cables this arduino you know has a usb type b connector for connection to the computer and for power supply alternatively you can power the board via a power supply with a hollow plug or you can also power the arduino you know via a specific power in pin in comparison here we have some esps you can see right away that they are much smaller here we have an esp8266 and this is an esp32 the components for wi-fi bluetooth and the microcontroller are hidden under this metal lid the esp8266 then just without bluetooth you can also see all the pins to connect the components this one doesn't have a pin header soldered on yet while this esp here already has a pin header on it due to the pin headers the esp can be used on a breadboard so you can connect the pins of the esps with the components without a soldering iron [Music] the component with the angular snake line at one end is the yv antenna these boards are powered and connected to the computer via micro usb but you can also power the board via the three volt pin and in a separate posting i explain how to power the esp with batteries okay now we have an overview of the arduino and esp hardware now let's compare the inner values for this i have created a small table and the table i listed which features the different arduino boards and esp8266 and esp32 have i have not listed all arduino boards because there are so many different ones i just picked out the classic arduino uno and arduino nano and then i picked out another arduino which comes close to the esp boards in terms of features namely with wi-fi and bluetooth on it the arduino mkr wifi 1010 let's go through the table [Music] wi-fi and bluetooth we can quickly see only the arduino mkr yv1010 and the esp-32 have that the esp8266 has wi-fi but no bluetooth as stated already memory that's where it gets interesting memory is important when it comes to the maximum size of the program you can load on the microcontroller once your programs get bigger memory is immensely important gpio this is the number of pins that are on each board here you need to know you can't use every pin freely some are blocked for internal processes some are for power supply but this is true for all microcontroller boards but the tendency is correct that the esp32 has more pins than the esp8266 or the arduino mkr in cpu we can see which processor has the highest clock speed the higher the clock speed the faster calculations are performed special feature of the esp32 it has a real dual core processor that means it can run two processes in parallel operating voltage also interesting this isn't the power supply for the board but sort of how much voltage comes out of the pins to power the sensors or leds or other components in the past this was more complicated because there were usually only five volt compatible components and then we had to work with level shifters if your board worked with the 3.3 volt today this is not a problem anymore you can get most components for 3.3 volt boards and finally the price and there you can see quite fast the esp32 has the best features and a comparatively low price compared to an arduino board with similar features so arduino uno or arduino nano actually there's no reason to use the you know the uno and nano are virtually the same hardware both can do the same and the nano is a bit cheaper the only exception if you want to use shields that are built in the arduino uno form factor then of course they only fit on the arduino uno which usb should you use the esp32 also has bluetooth is a bit faster and has faster wi-fi if you want to be on the safe side then just take the esp32 personally i had bad luck with the esp8266 got five of them but no one was working for me uploading a program to any of them has always aborted maybe i fell for cheap imitations who knows therefore i'm heavily stuck with the esp32 [Music] okay after the feature comparison now let's do a little practice comparison let's take a look at how to connect the devices and how to load the first program on the arduino uno and the esp32 for this we use the arduino development environment also called arduino ide to connect simply plug the usb type b connector into the arrowing board and the usb type a and into the computer by then some of the leds on the board should already be blinking we start the arduino ide and there we create a new sketch and save it first for comparison we take a simple blinky code this is the hello world equivalent in the world of microcontrollers [Music] in the code we first define to use the pin 4 to control the led so our led needs to be connected to the pin 4 and the setup method we say that pin 4 should only put out power so this pin should not listen for input like a switch for example and in the loop we set the current of pin 4 alternately to high and low an example the led is turned on and off between high and low we set some delays because otherwise we wouldn't see the on and off state clearly because it changes too fast at the top the switch with the arrow icon finally loads the program to the microcontroller if everything worked the console prints out the corresponding message and our led is blinking now now let's do the same thing again with the esp32 to do this we first disconnect the arduino and then we need a micro usb cable to connect the esp to the computer and supply it with power also we need to reconnect the cables on the breadboard so that the led is now connected to the pin 4 of the esp and of course we need to connect ground [Music] when you use the esps for the first time on the arduino ide you must first add them to the so-called board manager so that the arduino ide can address the esps correctly to do this there is a menu in arduino settings the field additional board manager urls here we need to add two addresses one address for the esp32 boards and one address for the esp8266 boards then enter both urls and the fields separated by a comma then confirm with ok and then in the menu under tools board various esp boards are now available we must also make sure that the correct usb port is set on mac os this is usually this slab underscore usb to uart and on windows this would be a com port if we now send the code to the microcontroller the led should flash again but this time controlled by the esp32 as you can see you only need to have the esps added to the board manager once after that programming runs the same way as with an arduino note by adding the program by the arduino ide we also played the arduino framework on the esp this means that we are now using well the arduino framework the manufacturer espressif offers its own framework called esp idf but since the arduino framework is so popular it was ported for the esps by the way by the way i almost don't develop in the arduino ide anymore because the development environment doesn't offer enough features for me anymore for larger projects it quickly becomes confusing i also created a post about using vs code and platform io as an alternative ide for programming esps and arduino but of course we still love the arduino ide too [Music] [Music] by the way almost i almost by the way i almost don't develop in the arduino ide anymore because the development environment i will have a happily developed environment or come on by the way [Music] by the way again and again and again by the way the development our environment oh come on by the way [Music]
Info
Channel: raydiy
Views: 100
Rating: undefined out of 5
Keywords: arduino vs esp, arduino vs esp32, arduino, microcontroller, esp, esp32, tutorial, diy, arduino and esp32, arduino and esp8266, arduino and esp8266 projects, arduino uno vs esp32, esp8266, diy projects, arduino tutorial, arduino ide programming tutorial, arduino ide, arduino projects for beginners
Id: -uef6wPrBBU
Channel Id: undefined
Length: 11min 11sec (671 seconds)
Published: Thu Sep 02 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.