Тёмный

YOU can Learn the ESP32 in 15 Minutes: Hello World! 

Dave's Garage
Подписаться 810 тыс.
Просмотров 318 тыс.
50% 1

An introduction to developing for the ESP32 Microcontroller. Dave explains how it relates to the Arduino line, how the specs compare and takes you through the basics of a Hello World application for the ESP32.
My 3 Favorite ESP32 Boards:
M5 Stick C Plus: amzn.to/3wR619g
Heltec Wifi32 VFD board: amzn.to/3NvLzR5
TTGO ESP32 Board: amzn.to/3wNDVvM
They keyboard I'm clacking along on: amzn.to/38afjmp
For information on my book, "Secrets of the Autistic Millionaire":
amzn.to/3diQILq
My other channel, join now so you're there for episode 01!
/ @davepl
Discord Chat w/ Myself and Subscribers: / discord

Наука

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 526   
@SpinStar1956
@SpinStar1956 2 года назад
Really appreciate you doing this series on ESP-32 with all the details. Would love to see this series continue and cover both basic and complex functions, hardware and software. Thanks Again Dave!
@cdoublejj
@cdoublejj 2 года назад
as a non programmer (i tried learning C++ numerous times) and home assistant user looking at esp32 this was VERY informative, i almost understand some of the programming stuff too.
@steveb7600
@steveb7600 2 года назад
Start with python, C++ is much harder, and at this point it is a boutique language. BTW I started with C++ but I don't advise that for anyone starting these days
@cdoublejj
@cdoublejj 2 года назад
@@steveb7600 i have hard time believe these easy to use languages don't use more ram. why isn't windows 12 in python? i was told REAL men\woman program in raw machine code?
@steveb7600
@steveb7600 2 года назад
@@cdoublejj no operating system is written in a high level language, but writing an OS isn’t a typical programming job. Also RAM really isn’t an issue anymore with languages but compile/transpile speeds and code size are. If you are really curious as to why you wouldn't write an OS in a high level language I can explain that, just let me know.
@cdoublejj
@cdoublejj 2 года назад
@@steveb7600 i believe the high level answer is that drivers in python aren't a thing lol. though while i tease and challenge your word there actually puts perspective as far as task at hand vs languages used.
@wayland7150
@wayland7150 2 года назад
@@cdoublejj People who started back in the late '70's or '80's would probably have programmed their home computer in BASIC. To turn on a relay we would have used the POKE command and to take a sensor reading we would have used PEEK. The advantage of BASIC is that the programs run straight away, there is no compiling or downloading. You simply save your work when you reach a good stage. Using C++ puts some massive steps between you and the result. Dave makes it look easy here but home computers were much easier than this except more limited. You could do worse than go back to the place we started but use an emulator. I'm using XRoar to emulate my old Dragon 32 machine but there are ones for Commodore 64 and Sinclair Spectrum. You may quickly grow out of it, the whole scene back then was about 6 years in total and about 2 years per machine. Use this as a learning experience to give yourself confidence in BASIC the same way we did. Then move on to C or a higher level language. High level languages with the right librarys when correctly chosen make writing programs easier and faster. However C is probably 40 times better performance and Assembler 40 times better than C. But when your computer is a million times more powerful than in the 1980's it matters a lot less how fast it run than how easy it is to write.
@davidsault9698
@davidsault9698 2 года назад
It's great to listen to someone at this level of knowledge finally. Not slow and boring.
@mikewallis7762
@mikewallis7762 2 года назад
Hey Dave, I have done a fair bit of work with the ESP32 and lighting strips and even individual RGB LEDs as well - it works really well for models and such. I have done a few effects like lightning, flickering fluorescent, traffic lights, LED matrix displays as model road work signs, etc. During my travels I created a project that showed me the power of the ESP32. I purchased 1 meter of NeoPixel RGB LED strip and set about seeing if I could create a task for each of the effects I had created and then apply that to each of the leds in the strip. I set this up and it worked really well. I ran 40 tasks each of which were controlling 3 LEDs on the strip. API and web interface are there as well. I would publish it, but it needs a bit more polish. Can't wait for your next instalment. Love your content.
@mikewallis7762
@mikewallis7762 2 года назад
... sorry, forgot to add. Any stuff on tasks on the ESP32 you wish to share would be great. I must admit my implementations thus far do not include any sort of locking or semaphores. I just deal with that in code - dont use the same LED (pin) in two different tasks. Hope you are having a good day :)
@ae1tpa92gwtom2
@ae1tpa92gwtom2 2 года назад
Super cool Dave, been using microntrllers since 90s, n started mak8ng projects with the esp8266, now recently started with the esp32, great to see u into these as well, great channel, lots of history, cheers
@57Murphy
@57Murphy 2 года назад
The ESP32 has been my go-to for a few years now. Put one to good use on a 4 channel RGB and W LED controller that keeps my kitchen cabinets nicely and colorfully lit. My dev boars isn't listed here, I use the DOIT ESP32 DEVKIT V1. Perhaps not as many pins out as the one shown but the smaller form factor wiorks great in my app.
@steveb7600
@steveb7600 2 года назад
Its likely the same chip, ESP Wroom. They haven't added many pins to the newer chips
@zombienation68
@zombienation68 Год назад
Found your channel looking for Pinball cadet and so far have watched a vast amount of your vids, content and delivery is perfect for me, so detailed and straight to the point...love leds and have done since the early 80s...also a great fan of Tempest but mine is now gone...thankyou for all the info given, learning so much 😁 and obviousl;y subbed and liked all of them....
@lovetotinker4096
@lovetotinker4096 2 года назад
I found your channel 3 years ago and have been a fan ever since. I started with the ESP32 board with the OLED you used teaching us to display information and designs on it and I was hooked. Have made many projects with addressable LEDs, WLED, remote sensors, all because of you. Thank you again.
@Gerald-iz7mv
@Gerald-iz7mv Год назад
What borad did you buy which includes the oled?
@robertfousch2703
@robertfousch2703 2 года назад
Given that I wrote code for a PDP-11 in 1978, yeah saying its 500x faster does make sense to me.
@brianm.4368
@brianm.4368 7 месяцев назад
I loved your video! You were so informative and articulate. Love your production value and attention to detail.
@jakobfredriksson2272
@jakobfredriksson2272 Год назад
So... 11:26 ? Lol, I've no idea where that menu came from 🤣 Awesome channel btw!
@zrman96
@zrman96 2 года назад
Thanks for the break down! I've been using PlatformIO and an esp 32 on a NightDriver project
@Deadgray
@Deadgray 2 года назад
Nice, I give LIKE when I see esp32 + vscode+ platformio and many boards I actually have myself :-)
@DanielFSmith
@DanielFSmith 2 года назад
I'm quite partial to the ePaper ESP32 boards. They don't bleed light in dark rooms, and look nice for semi-static displays.
@steveb7600
@steveb7600 2 года назад
still too expensive when compared to the I2c OLED with he ssd1306's
@connecticutaggie
@connecticutaggie Год назад
Great video Dave! I have been playing with the ESP-32, ever since Andreas Spiess got me hooked. Also, I have been programming for a while too - I wrote my first program in 1971 when I was in High School - on a mechanical teletype. I the became a EE but still programmed some. I probably should be retired by now but I am still having way too much fun. I still program and do some embedded C++ but I mostly do C#. So nice to not have to manage memory or pointers. I have most of the same ESP-32 boards you have but I also have two others I like. The ESP-32 EYE and a EP-32 board that has a built in display and 18650 battery holder. Nice to trip over you, I am sure we have some fun stories from the "old days". BTW, the first PC I helped build was an IMSAI-80 and the first PC I owned was one I built from a broken TRS-80 model 1 motherboard that I repaired. Interesting days.
@Alfonzo227
@Alfonzo227 7 месяцев назад
Fantastic video! Thanks for the really great in-depth explanations.
@Theineluctable_SOME_CANT
@Theineluctable_SOME_CANT 2 года назад
Thank you so much, Dave. This stuff is PERFECT!
@brad0656
@brad0656 4 месяца назад
I didnt know you code do esp32 deveopment on vscode this great. Been using vscode for my php, java, and python coding.
@Jack45OG
@Jack45OG Год назад
You are simply amazing. Thanks!
@SteveMasonCanada
@SteveMasonCanada Год назад
Not sure how your channel popped into my feed, but I'm glad it did. Subscribed and rang the bell :) I love me some ESP32s I have a bunch of them monitoring doors, windows, motion, temp and humidity, mostly using ESPHome and Home Assistant, but this video might inspire me to do a bit more. I haven't coded, well not real code since a tiny bit of Z80 assembler and 1 program in C in the 80s. I've forgotten more than I ever learned. I do some Powershell / cmd stuff for sysadmin work, but no "real" programming. Maybe it's not too late :)
@ted356
@ted356 2 года назад
Good info...another excellent video. Thanks Dave!
@mcmaddie
@mcmaddie 2 года назад
I tried ESP32 with Arduino way and very quickly ditched it and switched to the esp-idf. There you have full premptive multitasking kernel and all the drivers etc. With Arduino way it gets complicated very easily very fast. Of course it depends what you do, but in my projects I always end up having multiple threads anyway and I have shared components between projects so it's easier with the esp-idf. And when I say 'Arduino way' I mean with the actual ArduinoIDE. VS code was not yet usable when I tested ESP32 first time. I also use the esp-idf vscode extension and not Platform IO. Not sure it's better choise, but I'm just used to use it.
@RandornCanis
@RandornCanis 2 года назад
Arduino not only has access to, but executes entirely under the FreeRTOS kernel. It's integral to the core Arduino header, and the obligatory setup() and loop() functions are simply a priority zero task created inside a hidden main(). Everyone's already using FreeRTOS whether they know it or not. My discovering vTaskCreate() years ago was a giddy moment.
@mcmaddie
@mcmaddie 2 года назад
Makes sense that it would be just a layer on top of the esp-idf ot give arduino compatibility. I'm guessing. I doubt that they would have re-implemented everything for Arduino. Most devices I've used with ArduinoIDE has been without threads. Only one was Teensy with FreeRTOS and that was just ported outside Arduino so nothing else supported it so it was bit sketchy to use, but it did it's job. On esp-idf I've enabled C++ support so I can use std::thread and other standard C++ library stuff and no need to directly use FreeRTOS API. Makes life a little bit easier.
@grapes008
@grapes008 2 года назад
Curious to hear what you think about the teensy range of micro controllers.
@diegoochoa572
@diegoochoa572 Год назад
what a time to be alive!
@xegrex
@xegrex 2 года назад
I think every time I tried to get something to work with PlatformIO and VSCode I tried to do too much too fast, without really understanding what I was doing. Trying to run other peoples code. Modifying it to do what I want. I could usually get it to work but it was always really confusing and required a lot of googling and screwing around. I'm really more of a tinkerer than a coder. This I understand. This I can make to work and understand why. I look forward to your follow up video's. Thanks Dave!
@michaelangellotti5741
@michaelangellotti5741 2 года назад
I had the same problem but I slowed down and researched how libraries and the platformio.ini file worked and now I love it. Also previous extension issues were fixed.
@rfdave3980
@rfdave3980 2 года назад
Once again Thanks Dave ... our Friendly Giant. Hey where's Rusty. Look up .... way up.
@rickharold7884
@rickharold7884 2 года назад
Cool. Super fun! I remember the pdp11 and pdp8
@kurtweber162
@kurtweber162 2 года назад
I found this very interesting. Keep up the good work,
@RixtronixLAB
@RixtronixLAB 10 месяцев назад
Nice video, well done, thanks for sharing it with us :)
@ptrube
@ptrube 2 года назад
Hi just like to say thank you for yor witty and humorous approach to IT related information. I was wondering if you or any other viewers had any comments on comparing WSL2 to Hyper V thx in advance
@DavesGarage
@DavesGarage 2 года назад
A little bit - I've been using the RemoteSSH extension to debug in VSCode and that's very cool. Then I tried the RemoteWSL extension and its even faster and snappier. So they both run under HyperV but the WSL integration seemed faster somehow!
@K6TJO
@K6TJO Год назад
Really dig your channel
@RetroRogersLab
@RetroRogersLab Год назад
@11:27 I'm new to VS Code and I love it! I'm curious what keystroke you used to display the menu with the 'Tasks: Run Build Task' option?
@n.mariner5610
@n.mariner5610 Год назад
Yes, the ESP32 has some really impressive advantages over the arduino. But it also has a even greater disadvantage: It's chinese made. There could be a unknown backdoor, which allows access to wifi projects for any person knowing about that backdoor. Therefore I would rather stick to arduino, even though its slower, less memory, needing more extra modules and so on.
@Biomancer81
@Biomancer81 Год назад
The ESP32 can also accept touch sensors on a single wire to a pin.
@autodidact7127
@autodidact7127 2 года назад
Love you Dave
@jtmcdole
@jtmcdole 9 месяцев назад
If you're like me and you have a board that gives you an error when uploading; press that BOOT button when you see the "Connecting..." - it'll stop the "." printing and then upload :)
@blu3_enjoy
@blu3_enjoy 2 года назад
Nice collection
@KeithJenkinsvideos
@KeithJenkinsvideos Год назад
Good totorial, I learned a few things thanks. I bought a arduino esp32 prebuilt and pre programmed item that talks to obd2 port on a car I had. I had a lot of problems trying to replicate or modify it. I was able to make a copy that worked, but decoding how the code ran was very had, ideas? Would like to make something for my currect car
@dmytro95
@dmytro95 Год назад
Arduino have the pro lineup that is professional oriented industrial rated harware if I understand it correctly
@ninoporcino5790
@ninoporcino5790 2 года назад
Very interesting! I have the TTGO VGA32 board which has VGA output and can even emulate a PC XT
@DavesGarage
@DavesGarage 2 года назад
I wish there was a good C64 emulator like that!
@BritishBeachcomber
@BritishBeachcomber 2 года назад
Am I the only programmer who's never written "Hello World"? With a new language I always dive straight in and code something interesting and functional.
@AdrianNelson1507
@AdrianNelson1507 2 года назад
14:45 is why we love you, stay humble 🤭
@lrlemos0
@lrlemos0 2 года назад
Thanks Dave
@juergenwothke6534
@juergenwothke6534 2 года назад
My exerience comes from the ESP8266 so my following remarks may or may not apply to the ESP32 (I guess they do): Except for the most simple MickeyMouse examples you quickly end up with "longer running" code. This is where ESP* programming offers additional pitfalls as compared to other Arduino based programming - i.e. when naively used from the "loop()" callback, random device crashes with cryptic error messages may then be the frustrating consequence for novice ESP* programmers. On the one hand there are software and hardware watchdogs that need to be disabled (see ESP.wdtDisable()) or fed regularly (ESP.wdtFeed) and on the other hand certain builtin components will crash the device when "CPU starved" exessively (see yield()). In an introduction like the above video it might be useful to at least give listeners a heads up on respective pitfalls.
@Dextermorga
@Dextermorga 2 года назад
We all deeply love Arduino (platform)
@dsuess
@dsuess 2 года назад
VS Code with Platform IO is the only way to fly ❤
@greyhnd001
@greyhnd001 2 года назад
How about the 8266. Some times it's all you need sometimes
@utoddl
@utoddl Год назад
At 20:16 you said it displays "Hello, world", but ... did you show it to us? I looked all over that screen and don't see what you saw. What does it look like?
@SauvikRoy
@SauvikRoy 2 года назад
Dave, do you have something on Symbian? I'd love to see something using newer toolchains!
@casperghst42
@casperghst42 6 месяцев назад
Dave, did you ever make the "next time" with a webserver ?
@masusmc
@masusmc Год назад
Hi Dave, love your videos. I also love playing with microcontrollers. ESP32, ST micros and my new favorite Teensy. They all have an inherent problem, well not them ,me. My lack of knowledge on moving large amounts of data over the serial port. You would be the perfect person to demystify USB. Very little on the web showing how to stream data over USB. Can you help? Would love to see your take on the problem. Thanks, your fan and programmer wannabe MikeS
@TheBypasser
@TheBypasser 2 года назад
Why Arduino, but not the good-old ESP-IDF btw? The latter is slightly glitchy, and I'm still looking for a way of getting one rid of the damn Eclipse, yet should you get a hang of it it becomes a pretty powerful tool, also I guess you can't use the ULP in Arduino anyway.
@Gerald-iz7mv
@Gerald-iz7mv Год назад
Isnt a arm cortex more energy efficient?
@abdulmughniahmad7222
@abdulmughniahmad7222 2 года назад
Whats your take on Microsoft (Internet Explorer) vs Netscape saga? Can you do a video on it.
@AtlanticWirelessZA
@AtlanticWirelessZA 4 месяца назад
That's some mean typing skills u have there man. 😂😂
@madGambol
@madGambol 2 года назад
At 13:02 you say "Let's upload" and hit some key combination that brings up a list of actions to select upload. What did you hit?
@madGambol
@madGambol 2 года назад
shift-clover-P brings up the menu you were using ....
@jamiegoegebeur2239
@jamiegoegebeur2239 2 года назад
Oooooooo M5stack is gonna be sold out :o
@jamiegoegebeur2239
@jamiegoegebeur2239 2 года назад
Been using it for 3 years already!
@joesmith9330
@joesmith9330 10 месяцев назад
IF I HEAR THE WORD ESP32 AGAIN SERIOUSLY I WILL BARF !!
@Learnerofthings
@Learnerofthings 2 года назад
I have a basic ESP32. I think it was the 3rd or 4th over in your visual list. Is it possible to write an operating system just for that? I want to get more into OS development and thought that would be a cheap, fun way to start.
@chronobot2001
@chronobot2001 Год назад
I understood most of the words.
@ChristopherCobra
@ChristopherCobra 2 года назад
I wished you lived down the street. I got projects we could do. I need to build a rover for a class I want to teach - but I am a science person - not an engineer person. I could let you drive my 68 GT. Alas....I guess I will be satisfied with the videos. Please do make those followup vids!
@BlondieSL
@BlondieSL 2 года назад
A "Rover"? Like the Mars Rovers? If so, I can tell you now, that you don't need to be an engineer person to learn how to work with Arduinos (and now, ESP32s). As a science person, you already have a base of logic down and these platforms are easy to learn and there's soooo much information out there as well as tutorials and such. Literally everything you'd want to do, you can find videos on how to do whatever it is you need. From servo motors, to regular motors to robotic arms and hands/graspers... whatever sensor you need, there's a video on it. LOL
@sausage5849
@sausage5849 2 года назад
Hi Dave, have you had a crack with the Olimex esp32_poe_iso ? It's awesome being powered by POE.
@mjmeans7983
@mjmeans7983 2 года назад
I started microcontroller programming with the 8051-based instruction set. No wireless at all. I'm concerned with security of wireless devices in the home, especially concerning remote monitoring and jamming. Of course, the risk of jamming can't be resolved, but I'd like to know your opinion on creating a secure-enough ESP32 networking that would prevent devices within range from using your own wireless devices to spy on you. With more and more mobile operating systems using cross-device telemetry to spy on you for ads, and the fact that those very mobile devices have security flaws that could allow a bad actor into your in-home control system, a focus on security is important. I know this subject is a huge can of worms and a deep dive into it could take hours. But I am curios what you recommend for at least a minimum level of security that will balance coding/design complexity and effort versus security provided.
@erionan
@erionan Год назад
hi dave based on your experience. Is it too late to start learning programming at age 33, and to lend a job?
@jcugnoni
@jcugnoni 2 года назад
The ESP32 is a wonderfull coding playground indeed ! Great introductory video.
@olafzijnbuis
@olafzijnbuis Год назад
I like the way you align the {} brackets at 12:42 Code looks much better and easier to read when all brackets are nicely aligned. The way it is done in Python and Occam is even more elegant. Nice video. It helped me to move the code for my 8 x 8 x 8 RGB LED cube to Visual Studio Code.
@scriptles
@scriptles Год назад
Yeah but I also like how much easier it is to test using { an } on seperate lines too.. so basically an if statement will execute 1 line of code... unless you use { and }.. however, if the next line is a { it does the whole block"... so if you wanna comment out an if statement and run it if the condition is false.. u can just comment out the if statement and leave the { and } for scope purposes.
@richards7502
@richards7502 2 года назад
Just getting back into esp32s after a few years break, Great to see how things have moved on. Looking forward to the rest of the series
@tamask001
@tamask001 2 года назад
Please also make an episode about remote debugging with openocd/ESP-PROG. Too many people out there torture themselves with println debugging just because they don't know better. Other notes: 6:05 The TTGO T-Display is my favorite board by far, the screen is great both for interaction and debugging. It also has two GPIO buttons (plus reset on the side), which makes it possible to build fairly convenient GUIs without any external hardware. Not as fancy as the M5, but for 10 bucks it is incredible value. 13:27: you have to press ctrl-c to terminate the monitor. And if all else fails, ProcessMonitor can tell you which process is blocking the COM port and help you kill it. 18:27: it is much easier to just use one of the User headers (configurable in User_Setup_Select.h), they have predefined ones for most common devices, e.g. Setup12_M5Stack.h
@DavesGarage
@DavesGarage 2 года назад
Thanks! I'll try the header thing, that seems a lot easier!
@boldvoltage639
@boldvoltage639 2 года назад
Seconding this
@qcnck2776
@qcnck2776 2 года назад
@@DavesGarage I too will upvote this
@dieSpinnt
@dieSpinnt 2 года назад
Also, don't forget the gigabytes of bloat, unnecessary long compiling times and the dependency/versioning hell[1] that you get for free with PlatformIO. Yes, all the things we love and like when working with MICRO controllers (!ironic!). [1] What they force you into, their package dependency system ... they seem to forgot within the build system: Dependency checking. What a botch-up, lol. Setting up a build system with a compiler and thinking about libraries before using them won't hurt anyone. In contrary, you learn more about the inner workings of the build system, think BEFORE making avoidable errors and wasting time over your project, and learn more about the architecture you are working with. All for free. You even don't have to give up editing a fancy magic text file. Just call it "notes";)
@tookitogo
@tookitogo 2 года назад
I’d love to see more about the ESP-Prog. I’ve used it and it’s saved me lots of headaches, but it’s also fickle to set up, and there are some sketches where it simply will not work at all. I’d love for someone more knowledgeable than me to explain some of the voodoo, the limitations, etc.
@SuperFurry68A
@SuperFurry68A 2 года назад
Dave, I've just found your channel and have to say it's absolutely brilliant. You are an excellent host. I love your content, and especially your delivery - which is first rate. Looking forward to going through your older videos. I'm sure there are some absolute gems in there!
@KennethSorling
@KennethSorling Год назад
Did I miss the part where we saw the printout on the LCD display? I didn't notice. It would have been satisfying to see it.
@TheBioniXman
@TheBioniXman Месяц назад
How can anyone learn anything at the speed you are talking and typing? You lost me very quickly.
@BodhiSoftMobileApps
@BodhiSoftMobileApps Год назад
Do you have any security concerns with using Chinese dev boards? Do you take any precautions (only doing dev from a VM etc.)?
@robocowone464
@robocowone464 11 дней назад
I thought I was the only person that still has an old Commodore PET!!!
@wizdude
@wizdude 2 года назад
I've been using ESP32 devices (as I suspect a lot of people have) with Home Assistant and it's great to see an intro to programming on these. I didn't know about the serial monitor in VSCode - that's a real bonus. Thanks for this video and I look forward to more videos on the ESP32 as I think it's a great little microprocessor. Cheers 🙂
@bowieinc
@bowieinc Год назад
Dave, I like your style and content. I wish you were my neighbor! Lol
@chrisw1462
@chrisw1462 Год назад
Any chance you'll do the next ESP32 video you talked about in this one?
@bassbacke
@bassbacke 2 года назад
Thank you, Dave, for putting the opening and closing curly brackets in the same column. It bugs me every time I see the opening curly brackets at and end of the line before the actual block. Unfortunately it seems to be fashionable these days. Also thanks for mentioning/showing the M5Stack M5StickC PLUS ESP32-PICO. I've just ordered three of them using eBay (not available via Amazon in Germany). I've played with plain dev boards before but the M5 look very promissing and will fit certain projects I thought of building for some time now.
@DavesGarage
@DavesGarage 2 года назад
They should line up vertically I figure so you can read which is which!
@wayland7150
@wayland7150 2 года назад
Yeah, I noticed that. I've trained myself not to care so now my code looks really messy with different styles everywhere.
@wayland7150
@wayland7150 2 года назад
@@DavesGarage People put them up like that to hide it and save a line. If compilers worked by indentation you'd not even need them.
@adilabusafa
@adilabusafa 2 года назад
أهلاً وسهلاً ومرحبا بك-يتعذر التعليق-لا أعلم .
@nickmason279
@nickmason279 2 года назад
I did my first programming on a PDP 11 😃 I'm still using the Arduino but have been meaning to get an ESP32 for a while.
@diggee172
@diggee172 2 года назад
I loved the reference to PDP 11. I used the first Unix/C systems as a programmer at bell labs.
@brucejuntti5483
@brucejuntti5483 12 дней назад
@@diggee172 Likewise here. I started fixing PDP11 and VAX 11/780 "mini"computers back in the late 70's and early 80's at what was then Pacific Northwest Bell, then learned shell programming and C (Still have my K&R C book!). Amazing that these little beasts are 500 times faster than a PDP11. (PDP11/70?)
@Cracked1ce
@Cracked1ce 2 года назад
The one thing it is terrible at is realtime applications. the context switching interrupts used by the ESP-IDF block all other interrupts which means your interrupts can happen a few microseconds late which is an eternity in microsecond level realtime applications. I.E. not suitable for automotive fuel injection. The hardware is there, but the software support is not. I wish they had support to use 1 core dedicated to ESP-IDF and the other core as the bare essentials, but that is not supported by espressif. Their target market is controlling led light bulbs, not triggering events at sub microsecond resolution. It is a real wonder why they included interrupts in the hardware at all since they are just about useless.
@DavesGarage
@DavesGarage 2 года назад
Wait, what do you mean? If I have a IRQ triggered by a contact closure or hall effect sensor (like at the crank), what's the delay before my IRQ is satisfied? Is it not possible to have an IRQ at a higher level of precedence than the task switch?
@Cracked1ce
@Cracked1ce 2 года назад
@@DavesGarage yeah I tried setting the priorities, it didn't work. You are welcome to try. It's an easy setup, just have an external interrupt that turns a gpio on then turns it off. Then trigger the interrupt externally and look at the input and output on the scope. Trigger on the input and watch the output jump around inconsistently. I did all of the recommended things and espressif support was not able to help me with the problem either.
@alexhutchison6926
@alexhutchison6926 2 года назад
Would love a continuation of this series. Love the videos.
@linuxgeex
@linuxgeex 2 года назад
@Dave: I find when I talk to people that describing the ESP32's standby in terms of battery life helps drive it home. The ESP32's idle is roughly 10% the self-depletion rate of an 18650 cell. That is to say that an ESP32 on standby for a year, powered by an 18650 might have 30% state of charge, and 7% out of the 70% battery capacity lost was used by the ESP32's standby. So implementing an SCR to allow it to fully power itself off is a waste of time, since the SCR will consume more power than that by way of voltage drop during operation.
@TheBypasser
@TheBypasser 2 года назад
Well, a switch comes in handy should you have many on-board peripherals though.
@dvdny
@dvdny Год назад
So you’re saying that the battery leakage (18650) rate is still even higher than the standby current? Good to know.
@nemanjailic9612
@nemanjailic9612 Год назад
Hey Dave! Will there be a follow up on this video. Going over the debugging techniques would be awesome.
@d.jensen5153
@d.jensen5153 2 года назад
Thank you for making me aware of PlatformIO! All this time I wondered what the big deal was about VSCode. Never imagined it could be used to program ESP32 boards. Clearly I don't get out much. Clearly Microsoft has changed.
@dualxsurvival155
@dualxsurvival155 Год назад
For anyone who wants to know what he pressed at 11:26 to make that bar pop up its "Show All Commands" and the shortcut is Ctrl+Shift+P.
@tomrow32
@tomrow32 2 года назад
The ESP32 environment would be great if it weren't for its attrocious documentation of libraries. Source code cannot substitute good documentation.
@steveb7600
@steveb7600 2 года назад
it's a Chinese company, which company from china has decent docs? The RTC Ameba would have killed Espressif before they ever got started but their documentation was even worse despite their amazingly cheap and advance WiFi chip
@paulroemer5992
@paulroemer5992 2 года назад
I've been following your channel from the inception and while it seems the theme of the channel isn't very specific I find them very interesting and entertaining. Also the topics you are presenting whether Cars, Programming, Hardware, Home Automation, even your personal trial and tribulations all fit my interests so keep up the good work and I'll be waiting for your next episode.
@DavesGarage
@DavesGarage 2 года назад
Thanks! Yup, I'd do a *LOT* better if I picked a theme and stuck with it!
@tonygilkerson
@tonygilkerson 2 года назад
@@DavesGarage actually I like the variety
@_xzvf2557
@_xzvf2557 2 года назад
Great video, but having C instead of C++ in the title was pretty misleading…..
@RandornCanis
@RandornCanis 2 года назад
Threw me off, too. To be fair, the core Arduino libraries are both C and C++, and the ESP compiler understands only some C++17 updates. Your username gave me a chuckle.
@m1k1a1
@m1k1a1 2 года назад
This was interesting, thank you! I'm thinking of a compact datalogger that receives packets over BLE and perhaps does some filtering before storing. ESP32 sounds perfect for the task.
@Cat_Diaries
@Cat_Diaries 4 месяца назад
I followed the instructions, and all seem to work well, but not seeing any display. it is the ESP32-S3R8 and on the box says T-Display S3. is it possible the library does not support this board, and i need to hunt for a replacement lib?
@ctbram0627
@ctbram0627 Год назад
How do you bring up that run build task menu????? I hear click and a window pops up!!! That has the thing I need to run BUT CANNOT GHERT TOO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@atomic14
@atomic14 2 года назад
This is a great video - I get lots of people trying to use my projects who are very inexperienced and don't know how to build and upload projects - this will be a great resource for them.
@vijaysulakhe5605
@vijaysulakhe5605 3 месяца назад
Excellent explanation and video, many THANKS. Hope you make video about STM32 projects with Arduino IDE.
@billybbob18
@billybbob18 Год назад
Is platform IO actually better in terms of ESP32 support? Platform IO seems more convoluted and bloated compared to Arduino IDE. Two second uploads sound like a no-brainer vs the 20 sec Arduino IDE takes. What can Platform IO do that Arduino can't since platform uses the Arduino framework anyway?
@JeanCantalini
@JeanCantalini 10 месяцев назад
How do I get com port for ESP32 espressif for windows 11? I tried CP210X universal Windows Driver V11.3.0 6/24/2023 I use Arduino IDE 2.2.1 with 115200 baud, but it didn’t work. The following works fine, Arduino UNO, UNO R4 WiFi and UNO R2 WiFi Please help.
@edwardandrews9240
@edwardandrews9240 2 года назад
Great, quick video to get me re-started on ESP32S. Things didn't work well for me, however, as I had an older ESP-32S (bought several years ago) and it suffered from "CAN NOT CONNECT" errors when trying to upload. If anyone else has this problem, try this fix which I found elsewhere: Add add an electrolytic cap (2.2 uf to 10 uf) from EN pin (+) to GND (-); this fixed things for me!
@tookitogo
@tookitogo 2 года назад
Yep, that often helps. I think I’ve just used 1μF, though. Keeps the EN pin low long enough for the programmer to set the IO0 pin (boot mode) to bootloader mode before it starts up.
@zilog1
@zilog1 2 года назад
I love the ESP 32. but the raspberry pi pico (RP2040) stole my heart
@lanphanh
@lanphanh Год назад
:( why neither Arduino nor PlatformIO work for me? The PlatformIO says, the port ( any speed I try including 115200) is not support, and the Arduino IDE says "Access is denied. exit status 1 Compilation error: exit status 1" Of course, I unplug and re-plug in, and even reboot the PC still doesn't help. However, the WLED works like charm! :(
@AlwaysBolttheBird
@AlwaysBolttheBird 2 года назад
in case anyone is having issues like me something that he didnt cover was you need to install python for PlatformIO to work
@pd68uk31
@pd68uk31 7 месяцев назад
Hi which of the ESP32 boards would be best for a beginner a complete beginner in code and ESP32. The project is to build a tachometer for measuring the RPM of about 150000 + - 10000, would it be best to use IR LED or Laser to do the counting. As for the code I have no clue any help would be great. Thanks
Далее
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
We finally APPROVED @ZachChoi
00:31
Просмотров 9 млн
titan tvman's plan (skibidi toilet 77)
01:00
Просмотров 6 млн
Set up a Local AI like ChatGPT on your own machine!
13:22
Try these 16 Brilliant ESP32 projects!!!
11:18
Просмотров 583 тыс.
Introduction to ESP32 - Getting Started
47:57
Просмотров 1,6 млн
I took the #1 Tech Exam and it was BRUTAL
18:28
Просмотров 1,3 млн
The PC industry is changing: RISC-V goes mainstream
15:20
iPhone vs Samsung
0:25
Просмотров 11 млн
iPad Turned Into Car Touchscreen (Via: @biggibril)
0:11