Why is ESP32 better than Arduino?

  Рет қаралды 183,810

Robert Feranec

Robert Feranec

3 ай бұрын

What do you think?

Пікірлер: 166
@cmxpotato
@cmxpotato 3 ай бұрын
There are legitimate downsides to the ESP32 not mentioned. It's terribly inaccurate for analog read (especially when WiFi/Bluetooth is running), draws 3-10 times the power than other modern microcontrollers, its PWM is software emulated so it's unusable if you need precise and accurate PWM. Just some things to be careful about because some of these are dealbreakers for some projects.
@williankoessler5935
@williankoessler5935 2 ай бұрын
I'm sorry i can't like this twice... Those things should've been said in the video
@Ed19601
@Ed19601 2 ай бұрын
If you need wifi then simple i2c peripherals solve yr ADC and PWM problems. If you dont need wifi or bluetooth, stick to arduino
@notyourtipicaltechguy6438
@notyourtipicaltechguy6438 2 ай бұрын
They forgot power consumption as well... The Arduino is more power efficiënt in general, and are easier to get into lower power consumption sleep as well, another plus is the Io count of atmel chips as well...
@NoName-zx1qo
@NoName-zx1qo 2 ай бұрын
stm32 is better than both
@iGNUiCould
@iGNUiCould Ай бұрын
​@@NoName-zx1qo I haven't gotten around to that one yet, but have experimented with stm8 and it's fun too
@Choralone422
@Choralone422 2 ай бұрын
Remember the S in IoT stands for security. Especially on a device with built in Wifi and Bluetooth.
@xuansonvu8100
@xuansonvu8100 Ай бұрын
So IoT dont have secure?
@GTAmaniac1
@GTAmaniac1 Ай бұрын
ESP32s are as secure as you make the firmware. Because you know, you make the firmware. Also if you don't want to use the inbuilt wifi and Bluetooth you can just not turn the modules on.
@aceman0000099
@aceman0000099 20 күн бұрын
I don't make firmware, I make limp-ware
@hanspeterbestandig2054
@hanspeterbestandig2054 18 күн бұрын
Hahahaha, I love this phrase! 😁 It hits the spot!👍
@hanspeterbestandig2054
@hanspeterbestandig2054 18 күн бұрын
…especial in a Device from an Chinese vendor which uses some proprietary binary blob for its WIFI modules… 😏
@nalinux
@nalinux 2 ай бұрын
Not better or worse. All depends what you need.
@MoisesCaster
@MoisesCaster 3 ай бұрын
I use ESP32, however, some pins have issues; some pins start turned on or pulsating for a few milliseconds, which is critical when the pin is being used to drive motors or power equipment.
@Ahmedhkad
@Ahmedhkad 3 ай бұрын
Yep, that why the best practice is to have a template of code for defined pins with // comments
@sadteeto
@sadteeto 3 ай бұрын
avoid strapping pins! Check the esp32 datasheet for details
@101picofarad
@101picofarad 3 ай бұрын
Это не баг, а фича - читайте документацию )
@mona.supremacy
@mona.supremacy 3 ай бұрын
tbh, you should have read the documentation, but it doesn't change the fact that esp32 is good for nothing except early prototyping dirt cheap
@101picofarad
@101picofarad 3 ай бұрын
@@mona.supremacy если ваш прибор должен обладать веб интерфейсом, то есп32 очень конкруентноспособен именно из-за цены. Ну там умная теплица, овощехранилище, мониторирование парамтеров какого-то агрегата и т.п. применения не требующие сверхспособностей малинок. Естественно для esp32 удобнее не голый ардуинокод писать, а уложить его во FREE RTOS обертку.
@Optimuseq
@Optimuseq Ай бұрын
Don't forget about dual-core. Having two cores allows you to run code simultaneously on both cores, enabling multitasking and improved performance
@goranjosic
@goranjosic Ай бұрын
It depends on application. I'm a hobbyist, so I never use the same microcontroller for every project. When I only need to read and send data (e.g. via 433mhz network), attiny85 is irreplaceable, consumes little and does everything necessary. If you need to run the display and do other things at the same time, and the RPi is too big, then the esp32 is the best option, but as someone below said, analog reading is bad, consumption is huge, etc. it has its downsides... (many people, including me, never use its low power core, because it is complicated to program)
@mrlmfao1011
@mrlmfao1011 3 ай бұрын
I used both, at first I didn't like esp32 that much but now I would pick it anyday over an Arduino.
@yesyes9698
@yesyes9698 3 ай бұрын
Why? Would you mind elaborating? Thanks.
@mrlmfao1011
@mrlmfao1011 3 ай бұрын
@@yesyes9698 simply because I wasn't used to it. When you do something for so long and figure out the issues that come with it you get comfortable using it again and again. But esp32 is much more flexible than Arduino so it's worth learning something new.
@tommythuyen4063
@tommythuyen4063 2 ай бұрын
ESP32 is suitable for IoT project which requires Wifi or Bluetooth connection. Meanwhile, Arduino is suitable for projects that do not require an Internet connection, such as smart trash, automatically opening doors, burglar alarm devices, etc... And devices that consume very little power.😊
@patborjon6778
@patborjon6778 Ай бұрын
What about the new UNO R4 ? I'm about to get a Rev3 or the newer R4 which comes w/WiFi & Bluetooth. Would it be better to get the Rev3 and a WiFi expansion, or just get the R4?
@damny0utoobe
@damny0utoobe 3 ай бұрын
ESP32 is running a binary blob for the network stack that could have a potential CCP backdoor.
@Mike-ry4ti
@Mike-ry4ti 3 ай бұрын
Care to elaborate?
@LifeGeneralist
@LifeGeneralist 2 ай бұрын
@@Mike-ry4ti Chinese Communist Party snooping
@rendoesmath
@rendoesmath 2 ай бұрын
there we go again
@kklol07
@kklol07 2 ай бұрын
​@@rendoesmath😮damn
@Canthus13
@Canthus13 2 ай бұрын
I wouldn't use it for a secure application, for sure. But I doubt the CCP is interested in my cat door or the sensors in my van.
@travism9376
@travism9376 3 ай бұрын
Also keep in mind esp32 very power hungry fo battery based projects.
@spartanbeast3575
@spartanbeast3575 17 күн бұрын
hook up high wattage solar cells with a solar charge module and diode and bam, you have yourself a DIY battery charger (just make sure not to overheat any delicate components)
@andreyturkin
@andreyturkin 3 ай бұрын
Take any STM32 board, take ESP, take the new RISC-V based board - all of them are orders of magnitude more powerful than Arduino in all possible measuremenet points, and most of them are also cheaper.
@zbubby1202
@zbubby1202 4 күн бұрын
And demonstrably worse at analog applications. This video is a comparison of a cheapy wifi dev chip with a strictly embedded 8 bit MCU. He set the bait and you bit lol
@2012TheAndromeda
@2012TheAndromeda Ай бұрын
The ADC functions on these things are kinda garbage... You can have all the same hardware and software but it may still read wildly different results...
@upzzz3483
@upzzz3483 11 күн бұрын
Yes, how to read more stable analog signals? Do you have any other idea?
@AstoundingAmelia
@AstoundingAmelia 9 күн бұрын
​@@upzzz3483arduino's can read signals very accurately
@foobarables
@foobarables Ай бұрын
Comparing arduino with an ESP32 is like comparing dogs and cats. Each have their own applications.
@korayk.454
@korayk.454 2 ай бұрын
Saw the video while programming PIC16f628 😅
@shikanokonokokoshitantan
@shikanokonokokoshitantan 2 ай бұрын
One phrase to describe an esp32, "A cpu on a stick".
@supersanic3446
@supersanic3446 11 күн бұрын
The Arduino Uno R4 does have an integrated ESP32 chip, but to the best of my knowledge it can not be used to do any processing, just networking and the main microcontroller of the board that does all the processing is actually an RA4M1 from Renesas, which is significantly slower.
@dinithaw
@dinithaw 2 ай бұрын
Now i always prefer to work with stm32 instead of arduinos cuz i mastered it ( i mastered working with atmega328 too) i also work with raspberry pi pico & esp32.. but simple things need simple solutions so sometimes i use arduino nanos & pro minis for simple tasks
@Sohailkhan-zw1gl
@Sohailkhan-zw1gl Ай бұрын
how do u program stm32 ? stmcubeide or arduino ide?
@Mike-ry4ti
@Mike-ry4ti 3 ай бұрын
People obsess over the esp32 clock speeds, when was the last time you maxed out your arduinos clock speed? I build engine management systems with arduino and still have not maxed it out yet. Arduino is older technology, it's now expensive and and there are newer, more advanced controllers to move on to. I wouldn't even consider starting with arduino now, start with raspberry pi pico or esp32. Arduino has almost disappeared here in Japan, it's the 3.3V logic when your old designs use 5v that is the annoying bit.
@cmxpotato
@cmxpotato 3 ай бұрын
Haha I have easily. I made mine drive a touch screen display, control and monitor an aerosol device, and transmit encrypted data to a server all running in parallel (with RTOS). It's actually not too hard to run out of memory or trigger heap fragmentation when dealing with anything encryption related, especially when you're trying to to get data over https.
@kklol07
@kklol07 2 ай бұрын
​@@cmxpotatowhat is heap fragmentation
@argvSys
@argvSys 2 ай бұрын
Starting with ESP32 or RPi Pico? I am not sure, that just would teach you the really basics. People still need to learn how a MCU actually works, and RP2040 and DFQW(i dont know the actual chip's name) are way too complex for that.
@Mike-ry4ti
@Mike-ry4ti 13 күн бұрын
@cmxpotato your problem was starting off with something with limited processing resources for the specific task to begin with!
@Mike-ry4ti
@Mike-ry4ti 13 күн бұрын
@@argvSys you can still do the basics with a newer controller, just like you can take a cup of water from the open ocean👍
@666aron
@666aron 3 ай бұрын
Did someone mean Atmel/atmega?
@Mcs1v
@Mcs1v 2 ай бұрын
ArDuInO!44!!4
@maxvideodrome4215
@maxvideodrome4215 3 ай бұрын
ESP32 wifi stack too much latency for time sensitive applications and motion control sadly.
@nickalexander2505
@nickalexander2505 3 ай бұрын
That’s actually great feedback, was planning on using an esp microcontroller for a design I have upcoming
@maxvideodrome4215
@maxvideodrome4215 3 ай бұрын
@@nickalexander2505 I have an application where a motor is controlled via wifi. I mean, 20-30ms would be “acceptable” but looking at 200-400ms. I know parsing JSON on a uC is ridiculous, but even UDP data grams are slow.
@nickalexander2505
@nickalexander2505 3 ай бұрын
@@maxvideodrome4215 oh damn, wow. Ok so seems like either arduino or potentially at least for my case something even beefier, got it. Bless for the info my giy
@maxvideodrome4215
@maxvideodrome4215 3 ай бұрын
@@nickalexander2505 too bad because the ESP32 modules are so inexpensive
@101picofarad
@101picofarad 3 ай бұрын
I have 20..30hz by wifi get.
@TheReptileDragons
@TheReptileDragons 11 күн бұрын
You are forced to use proprietary software for the low level stuff on ESP32s which is a non-starter at least for me. I’ve spent too long trying to figure out how to use their API and why things don’t work the way I expect, so I just prefer STM32s with an off-chip wifi or bluetooth module.
@jnharton
@jnharton 16 күн бұрын
Aside from the low prices and ready availability of development boards, the best argument here is that it makes working with web/network services much, much easier. Most beginners won't really understand what the factors limiting them are, only whether something is easy or hard /for them/ in practice.
@sleppy_9105
@sleppy_9105 Ай бұрын
Fun fact: the raspberry pi zero is both cheaper and better in terms of specs. The pi zero runs at 1 GHz single-core and 512 megabytes of RAM. It also has Wi-fi and Bluetooth, both being more reliable than the ESP32. Did i mention that the pi zero also has GPIO pins? EDIT: Just re-checked the price for the ESP32. The ESP32 is 6.50€ cheaper (10€ for the ESP32 and 16.50€ for the Pi zero 2 W)
@xuansonvu8100
@xuansonvu8100 Ай бұрын
How ras pi zero is cheaper?
@ten-faced-carrot
@ten-faced-carrot 21 күн бұрын
Hold on, Pico or Zero?
@sleppy_9105
@sleppy_9105 20 күн бұрын
Check the edit
@MH-vx1fo
@MH-vx1fo 16 сағат бұрын
At least Arduino, Raspberry works equally well in Zero and Pico versions. I had constant problems with ESP; I gave up trying and experimenting.
@fof1353
@fof1353 3 ай бұрын
Don't forget RTOS, more pwms, dual core. But then again i use both Arduino for simple things and Esp for something more with RTOS to utilise it maximally. For exmaple i use arduino to automatically drive my shutters but esp i turned ito flight controller
@AndyClements
@AndyClements Ай бұрын
I'll stick with my atmega*8 for most projects. Current consumption easily tuned down to micro amps when needed.
@JanicekTrnecka
@JanicekTrnecka 5 күн бұрын
This thing can run on small battery for ages if properly designed!
@mapagmasidtv
@mapagmasidtv 19 күн бұрын
Thanks robert now i understand i have to buy an esp32 developement kit too
@hanspeterbestandig2054
@hanspeterbestandig2054 18 күн бұрын
Be aware that the ESP32 uses some proprietary Code (Espressive keeps this secret) for its WIFI capabilities. Nobody - except Espressive - knows exactly what this does. Keep in mind that the ESP is a Chinese product. And if I‘d keen to know what others do then I‘d do my very best to keep control over THIS core component of a system! So I‘d NEVER suggest to use an ESP32 in an environment where Security/ the protection of Data is an subject! But interestingly this is no issue. But these Folks are also very calmed by using the Windows Cloud… 🙄
@shaounaknande8138
@shaounaknande8138 19 күн бұрын
240Mhz is the radio frequency. The actual microcontroller cpu frequency is 80Mhz. Also additional advantage is that the esp32 can process 32 of data where as the arduino processes 8 bit data
@BSPBuilder
@BSPBuilder 12 күн бұрын
Not at all. The ESP32-S3 microcontroller's dual-core 32-bit LX7 microprocessor has a maximum CPU frequency of 240 MHz. The radio frequency is 2.4 GHz.
@shaounaknande8138
@shaounaknande8138 12 күн бұрын
@@BSPBuilder ohhh...That's great 👍
@raphaelboichot8972
@raphaelboichot8972 4 күн бұрын
I've definitely switched from ESP32 to Pi Pico without regret. To compare what is comparable...
@MrKYT-gb8gs
@MrKYT-gb8gs Ай бұрын
Does the peer to peer comms work over whTs the range? Can I add an antenna? I have a usecase for a little remote control vehicle thing..
@JeppeAchtonNielsen
@JeppeAchtonNielsen 20 сағат бұрын
Then connectivity is exactly why I won't be using ESP32. If I want WIFI/Bluetooth I can add it to Arduino. But how do I remove or permanently disable it on ESP32?
@lavacat720
@lavacat720 2 ай бұрын
Esp32 is cheaper than an arduino
@oskratart7724
@oskratart7724 Ай бұрын
esp32 is a good product between MCU and MPU, which actually means it can't replace both MCU and MPU.
@Canthus13
@Canthus13 2 ай бұрын
An Arduino is wonderful for remote sensor applications that either don't need a data connection or are able to connect in other ways. They're great for repetitive tasks that don't require much processing overhead. ESP32 is enough to run an entire mac classic emulator with CPU to spare. It's overkill for many applications. It's nice, though, if you need the power, or just don't care about power utilization or code optimization.
@movax20h
@movax20h 3 ай бұрын
Two cores. Fpu. 32-bit. Wifi. What not to like.
@selfhealing1047
@selfhealing1047 2 ай бұрын
Arduino: 90% programming/debugging 10% productivity
@zameraeli6955
@zameraeli6955 24 күн бұрын
What would be result of comparison between raspberrypi and esp32
@OlafFichtner
@OlafFichtner 2 ай бұрын
ESP32 is a microcontroller (board), Arduino is a microcontroller platform. You can use boards with ESP32 on that Arduino platform. Apples and oranges...
@ShiroiAkumaSama
@ShiroiAkumaSama Ай бұрын
ESP Now with the normal PCB antennas was the biggest disappointment I ever tested in my life, barely any range, you are lucky if you get through one single wall.
@Sohailkhan-zw1gl
@Sohailkhan-zw1gl Ай бұрын
got 700m with pcb antenna
@TheCustomFHD
@TheCustomFHD 14 күн бұрын
RP2040 being like:
@nobody2937
@nobody2937 3 ай бұрын
Agree...😊
@maximkonechno8742
@maximkonechno8742 7 күн бұрын
Very unreliable and not easy to deal with at the same time. Arduino is better for basic projects and stm for something serious. If you just need some flimsy web stuff use esp.
@zbubby1202
@zbubby1202 4 күн бұрын
328p is best when a decent ADC is needed. An ESP32 is best for when you need to give your dog's turd CoNnEctIvIty!!
@Bnryzombie
@Bnryzombie 2 ай бұрын
I use RP2040s
@muhammedenescelik9968
@muhammedenescelik9968 15 күн бұрын
If you gonna add esp32, why need Atmel?
@hudsonator7259
@hudsonator7259 2 ай бұрын
My go-to is the pi pico
@ten-faced-carrot
@ten-faced-carrot 21 күн бұрын
Pico W for me
@hudsonator7259
@hudsonator7259 20 күн бұрын
@@ten-faced-carrot well the pico family I havent used the actual pico but I do have two pico ws
@dragonex68
@dragonex68 Ай бұрын
Im using arduino nano 33 iot and ble boards
@optikid0373
@optikid0373 2 ай бұрын
And then there’s teensy
@muhammadjumiatmokhtar
@muhammadjumiatmokhtar 3 ай бұрын
where i can buy that modul dev board like this video ?
@RobertFeranec
@RobertFeranec 3 ай бұрын
I am working on a step-by-step tutorial showing how you can design it by yourself. Will be coming soon
@fabio.1
@fabio.1 3 күн бұрын
How far can they communicate? Is if a low frequency that passes walls? Thanks
@fabio.1
@fabio.1 3 күн бұрын
"around 220 meters ESP-NOW has a limited signal range, typically around 220 meters under ideal conditions. The actual range can vary depending on factors like environmental interference, antenna design, and obstacles in the communication path."
@fabio.1
@fabio.1 3 күн бұрын
it's 2.4 GHz
@erfanhuda
@erfanhuda 4 күн бұрын
nice
@wm8123
@wm8123 Ай бұрын
Arduino is a company/platform, not a Chip or Board...... And there are official Arduino ESP32 boards....
@Icanfly-
@Icanfly- 2 ай бұрын
stupid to compare hardware and mostly software framework that also work on ESP32, say esp32 + Arduino better than avr + Arduino
@MatthieuPadrines
@MatthieuPadrines Ай бұрын
But 3.3V and not 5V :/
@xanderortega4359
@xanderortega4359 Ай бұрын
Arduino still better for starters
@luisfelipemarquezandrade844
@luisfelipemarquezandrade844 2 ай бұрын
En Colombia cuesta 22 cop
@fortheregm1249
@fortheregm1249 3 ай бұрын
I mean it even has touch sensor while asleep. Only advantage of Arduino is the 5v logic. It doesn't even compete on price.
@AstoundingAmelia
@AstoundingAmelia 9 күн бұрын
Well that and also arduinos are a lot more accurate on the analogue read and pwm signals which can matter a ton depending on what you're doing, For example, if you're trying to read the tachometer output from your standard 12 volt PC fan and then control that fan with PWM an ESP is Just too inaccurate. where as an Arduino will always give you a correct signal. tested this myself using a board that came with an esp32 and Arduino mega chip in the same board and I found that when measuring the same tach signal The ESP jumped around a lot more and was just not as accurate whereas the Arduino gave an accurate value every single time
@fortheregm1249
@fortheregm1249 9 күн бұрын
​@@AstoundingAmelia Well i will also say that there are alot more things you need to be aware of when coding an ESP compared to Arduino. very often requiring the same functionality I've had to spend considerable time researching on how to get it done right. i.e for analog input accuracy you are comparing 10-bit to 12-bit, so ESP is 4 times more "accurate". But the value it outputs is not linear so you need a very complicated math equation in the code to actually get the more accurate results. So ease of use is defo a pro for arduino. Mega 2560 is an absolute BEAST btw, but then you are comparing an ESP to a chip that costs 10X - 50 X its price .
@fortheregm1249
@fortheregm1249 9 күн бұрын
@@AstoundingAmelia maybe I'll also add that for ESP input you are on a lower logic level with higher impendence and sensitivity so you are much more susceptible to noise, likely needing a small cap and resistor to read the results right on analog input. So the ease of use also extends to hardware design. its just a more advanced chip with more hoops to jump, TBH the chips I always end up using is the pro mini unless i need wifi.
@tomacaster
@tomacaster 3 ай бұрын
Esp32 has 2x 240mhz
@Canthus13
@Canthus13 2 ай бұрын
Which one? Some have 2, some have 1. Some also have an ultra low power core for reading GPIO and such while the main core is in sleep mode.
@bramSDASCL1759
@bramSDASCL1759 Ай бұрын
a webserver on your pocket,, esp32
@phillipdeville6315
@phillipdeville6315 2 ай бұрын
Teensy is interesting
@jams2u786
@jams2u786 3 ай бұрын
I also disagree, connecting (REMOTE ACCESS), is better as an option. (REMOTE access "can' be a backdoor to malicious morons).
@MehdiGuizani
@MehdiGuizani Ай бұрын
Not true haha the chip can perform low power tasks 😂
@uz123
@uz123 2 ай бұрын
esp32 is chinese chips and is not safe to be used in iot or critical wireless infrastructure. it's cheap tho.
@lavacat720
@lavacat720 2 ай бұрын
What isn't Chinese? 😂
@kennedycheskaki
@kennedycheskaki Ай бұрын
@@lavacat720 everything is chinese. Even the iphone was made in china. Multiple parts/components are sourced from china also. Good luck muricans
@fendy_
@fendy_ 2 ай бұрын
In my country after some smart people in the customs made a stupid decision, we often lightly joking that people who run their IoT using Arduino as "orang kaya" or "rich people".
@vibhavverma8740
@vibhavverma8740 24 күн бұрын
The adc of esp is worst
@hitension7
@hitension7 3 ай бұрын
I still use atmega328 for most of my projects. I disagree.
@jams2u786
@jams2u786 3 ай бұрын
I also disagree, connecting (REMOTE ACCESS), is better as an option. (REMOTE access "can' be a backdoor to malicious morons).
@Ed19601
@Ed19601 2 ай бұрын
Kinda late to the party
@allanrobertson7231
@allanrobertson7231 10 күн бұрын
Damn good
@allanrobertson7231
@allanrobertson7231 10 күн бұрын
I need a few words I can say about this product
HYDRAULIC PRESS VS ARMOR, USA AND RUSSIA
10:16
Crazy Hydraulic Press
Рет қаралды 133 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
КОМПОТ В СОЛО
00:16
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 30 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 77 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 10 МЛН
You’ve Never Seen WiFi Like This
20:43
Data Slayer
Рет қаралды 660 М.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 556 М.
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Рет қаралды 518 М.
Arduino To ESP32: How to Get Started!
9:26
Robonyx
Рет қаралды 263 М.
ESP32 Gaming Console - Homemade Emulator Less Than 20$
10:26
Electronoobs
Рет қаралды 74 М.
ESP32 in a commercial product? - From prototype to production
7:58
Predictable Designs
Рет қаралды 52 М.
12 Useful & Interesting ESP32 Projects for Beginners!
9:41
ToP Projects Compilation
Рет қаралды 600 М.
CHEAP DIY BOOST GAUGE
43:58
upir
Рет қаралды 119 М.
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18