Introduction to ESP32 - Getting Started
HTML-код
- Опубликовано: 31 май 2024
- Today we will get started with the ESP32, a low-cost and extremely versatile microcontroller with integrated WiFi and Bluetooth. I’ll show you how to set up your Arduino IDE for the ESP32 and then we’ll try out several example sketches.
Full Article with code: dronebotworkshop.com/esp32-in...
More articles and tutorials: dronebotworkshop.com
Join the conversation on the forum: forum.dronebotworkshop.com
Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
I apologize for the delay in getting another video out for you, the current situation has greatly impacted me as I’m sure it has you. Please stay safe and isolate!
After many requests, I am finally bringing the ESP32 into the workshop, and it’s here to stay - I’ll be doing a lot of ESP32 projects going forward. And when you see all of the features that this incredible microcontroller has I’m sure you see why!
The ESP32 is a microcontroller from Espressif Systems that has a wealth of features, including multiple I/O ports, analog inputs AND outputs, WiFi, Bluetooth and BLE, touch switches, timers, and real-time clocks, and much more.
This inexpensive processor is available on a number of modules, some of which include displays, microSD card sockets or even cameras.
Today we will get started using the ESP32. And the first thing we will do is set up our Arduino IDE to add the ESP32 boards to it.
After we get our programming environment ready we'll write the obligatory “hello world” program, which for microcontrollers is the good old Blink sketch. You’ll see how uploading code to the ESP32 differs from the Arduino AVR boards we are used to using.
After that, we will go through some of the many example sketches that get installed with the ESP32 board manager, including examples for WiFi and Bluetooth.
It’s a long video (like always LOL) so here’s a breakdown if you want to skip directly to a specific section:
0:00 - Intro
1:56 - ESP32 Introduction
6:11 - ESP32 Boards
10:24 - Setting up the Arduino IDE
12:33 - ESP32 Hookup
14:10 - ESP32 Blink Sketch
19:04 - WiFi Introduction
21:05 - WiFi Scanner
24:23 - WiFi Access Point
26:51 - WiFi Simple Server
30:09 - Bluetooth Introduction
31:20 - Serial to Serial Bluetooth
34:37 - Simple Time
39:17 - Hall Sensor
40:48 - LED Software Fade
42:27 - Repeat Timer
43:40 - Touch Read
You can use just about any ESP32 board with these experiments, and the only other components you’ll need are an LED (with dropping resistor), a push-button switch and something metal to use as a touch sensor.
Incidentally, this video subject was suggested to me as the result of a poll on the DroneBot Workshop Forums. If you want to have a say in the content for future videos and articles the forum is the place to go! Just visit forum.dronebotworkshop.com and join in the conversation!
This is just the first of many ESP32-related videos, so be sure to subscribe for more!
I hope you enjoy the video and please stay inside and stay safe!
Bill - Хобби
You are an extremely capable teacher. It's a pleasure to be your student, even as a retired seventy years old German engineer. Thank you Bill.
Hallo, Ich bin ziemlich neu hier ... aber ebenfalls über 70 Jahre alt und war im technischen Beruf tätig.
Interesse am Erfahrungsaustausch?
email: david2006g@yahoo.com
I am 65, a zoologist. How do I make wire less for sd card and pendrive.
I CONCUR!
Thanks always something new you can learn.
Retired electronics engineer…I concur. You never stop learning! Thank you..👍
this is a real academic lesson on ESP32 you deserve a Standing Ovation from us all
@Lennox Tristen yah, thank you for spamming.
Please report @Lennox Tristen for scamming.
Indeed he does.
You are absolutely correct, this video is awesome, not a single second wasted!
I totally agree !
Just what I was looking for! Thank you sir.
A couple of notes for the complete beginners:
1)The Hall effect sensor will not work at all if the Baud rate is the default value. You must change the Baud rate to 9600.
Values may get as low as -300 or as high as +350. No magnet values are between (30,60) for my board at least.
2) Not all ESP32 modules have an onboard LED (for the blink sketch), mine does not have one and was driving me mad when in fact it was working as it should. So check the serial for the "Hello World".
3) Do not get frustrated if your exact board does not show in the Board Manager. Instead try the "ESP32 Dev Module"
PS. Great video, helped me a lot. Thanks
This is exactly what the internet was meant for. Amazing teaching, thank you so much.
No it wasn’t. It’s primary function was to maintain communications in case of a nucleair attack on the USA.
@@NLGeebee 🤣
I love my ESP32's. I have a severely autistic son that can't be outside by himself (he's been brought home in a squad car a few times -- he's 10 but has no danger sense) and I've had to install a magnetic lock on our front door (he can just unlatch or unlock normal locks and latches). That lock came with some garage door opener buttons that would allow us to unlock the door, but I thought it would be good to have a cell phone app that could do it, so I built a circuit with an ESP32 that controls a relay that will unlock the door, and it's accessible through both bluetooth and wireless, so I can unlock the door from my desktop or phone.
I have an autistic son as well, he is 7 and already can be really tough as well. He can open any door and window, but I have contact sensors in all of them that trigger voice and text messages to let me know if he leaves the house or goes int the balcony. The stuff I learn in this channel is very valuable. I wish there was some MQTT content because these widgets are a lot more useful when you integrate them as part of a larger system.
If there is no other escape, you could also connect it to some fire sensors as well. Granted that there are no other exits and there might be an occasion where no one else can help him out.
@@duardyparron850 Check out andreas spiess channel!
www.makerfocus.com/collections/esp32
Please make sure you have an emergency way to get out, if there is fire he is screwed
Bill, I just wanted to say that you are without a doubt one of the best instructors I have ever watched, or had, in my 63 years. Your method of explanation and your awesome use of diagrams is truly unmatched on RUclips when it comes to electronics (or anything for that matter). I am old school electronics trained and you have rekindled my desire to learn about the updated technology. Thank you again.
This guy is quite possibly the best presenter on the entire internet! It is very rare to find someone who speaks well in terms of volume and cadence, and of course, clarity.
Good sir you are creating a great enthusiasm for electronics in me, but now I have to buy a whole new set of microcontrollers and peripherals! ...You bastard.
Man,you should teach in a engineering school or something.This content is legendary.RUclips should immortalize this content
Fantastic tutorial as always! You're a really gifted teacher, sir!
Mr Jamshedji, you are such a precious and rich source of inspiration, knowledge and synergy for the whole planet.
We now live in a “da Vinci World of Creativity at Home” created, made possible, and nourished by exceptional tutors like you.
A Chinese proverb says "The flapping of the wings of a butterfly can be felt on the other side of the world", your wings are angel wings.
Your presentations are endless sources of gasoline for the whole planet, gasoline for the mind and soul, the cleanest and most beautiful source of energy on earth.
Exemplary video - like always. Precise information, presented on a level, that you were neither bored nor overstrained. Well done, Bill!
The one with a tiny OLED is too cool for words. All kinds of crazy project ideas pop into my head. Like a broom handle with a built in Rock-paper-scissors simulator.
Thank you for this new video, Bill! I'm learning so much from your videos: clear, exhaustive and encouraging! Can't wait for the next ones...! I really appreciate all the work you do!
Awesome! Thanks so much for carrying out all this research, this thing is so comprehensive, it's easy to miss something even if you are quite experienced with it already.
Your tutorial videos are worth their bytes in gold!
Clear, easy to follow, professional, and thorough.
Thanks for this video! I've had an esp32 sitting around the house since last Xmas and haven't touched it until I watched this video. Now I am suddenly enthralled by being able to turn a light on and off using the browser in my smart phone. :) I'm eagerly awaiting more of the esp32..
I love your series on the ESP32. It's simply clear and easy to follow, not because you have "dumbed" it down...but because you communicate the basic concepts so well. May your subscriber count climb and climb :)
Most awaited from the workshop!! 😁 😁 😁 Greatttt one! 😁 😁
I just want to say this to you man... you are awsome!!!
Well done, Bill, as always. Something to play with over the winter. Thanks for the basics to get it working. Now onward and upward!
My head hurts, you are a great teacher. I was a hardware engineer for 40 years until I retired. I never had many occasions to work with software . I can write in c+ since I started with ardunio and had to learn. When you start talking about using wifi and Bluetooth I could understand some of the actions but soon fell down the rabbit hole.
Now I must find a good article on both to make the connection between the soft ware and hardware. Just to let you know( you are a great teacher, very concise and thorough)
Bill, thank you so much! I have been chugging through your videos and it is clear to me and clear to anyone who stumbles upon your content that you are not only a master at robotics and electronics BUT, you are also a master educator! You understand the mind of a novice, and that is one of the most important things when teaching, so many educators, unfortunately, overlook this crucial aspect when trying to convey complex concepts. You have single-handedly propelled my robotics knowledge unlike no other, thank you again for your hard work and commitment to spreading this valuable knowledge!
I entered the land of toys. I realize that there are people who use this prodigy for very important things and it fills my heart. You are fantastic and enlightening. I'm learning to understand the language better too. You have a smooth flowing cadence without smudging and it doesn't bore the listener. Again, you are enlightening. A hug with affection.
Great job on this video Bill! I felt like I knew my way around the ESP32, but I definitely learned a thing or two here. Nice walkthrough - I look forward to more!
Dear kind Sir,
I requested “registering” to your forum. In addition, I gave true reason why I need to learn quickly .
Most humble appreciation - Alton
What a phenomenal overview. I have done an extremely small amount of microcontroller programming and this really got me off to a flying start. Bravo!!!
Great tutorial! I have one of these kicking around but have never done much with it. Your tutorials are always so calm and reassuring, and clear. Thanks, and looking forward to ESP32 CAM.
Very well documented. It takes a lot of time to put all this together. Thank you for your hard work helping others.
I still don’t get why you don’t have over a million subscribers?? Your channel is legendary!
He is the best teacher in RUclips. He has tables and application scenarios. I am also a technician. You have revived my study of related technologies and I appreciate your teachings very much.
Thanks for this tutorial !
As the name suggests, it is a good introduction to the ESP32. Explained in a pleasant way, without overwhelming the audience with the numerous features of this controller. I will definitely watch other videos of you on this.
I'm new to the whole Arduino/ESP32 universe and until I found your videos I was a bit overwhelmed. You explain slowly and clearly the necessary introductions I was looking for. Subscribed and will continue to watch your channel. Thanks😀
A brilliant tutorial, REALLY good. no massive intro!! no excessive words, very clear and quite concise. I have had 2 of these boards for years and just got round to using them and you have cleared the way. Who would have guessed some of the steps.
Pressing the button, github download, I would never have done that.
Some of the pinouts were different, but all working. Great !
Thanks. Your ESP32 servo and esp-now videos have made it possible for me to complete a project that I've been mulling over for the last couple of years.
Bill,
I just wanted to come back to this video and say how much I appreciate it. I keep using this video for reference. I have already experimented with WiFi control. Well just in the last few days I have been learning about the Bluetooth of the ESP32 starting with this video. You make it so easy to learn. Thank you for making this video and sharing it.
You always bring great value in your video's sir! And the workshop is just satisfying to watch: everything so tidy and organised. I would never leave it!!
I just can't get over your videos.you make things seem so easy and fun please keep on posting and I will keep on supporting.
5 months later and I've nailed it. You are indeed the only electronics tutor I'll ever need. Amazing resources you provide, great skill, bravo..
I am absolutely happy that you have done a very thorough break down of the esp32. I am working in iot and recently started working with a variety of esp32 containing MCs and this has been very helpful, and is a great way to digest information while I am actually doing work. I know I could read all the datasheets but I find that I retain information better when someone explains it compared to just reading.
Thanks man.
Great tutorial, I enjoyed every minute I spent playing with my new ESP32 micro-controler and implementing the examples your proposed. Many thanks.
Thank you so much Bill. Looks like I'm way behind the curve here but just received an ESP32S today and this helped to get it operational much faster than if going it on my own. I have been working through many of your other presentations as well and they are all excellent.
This is such a perfect video to get started on the ESP32. It's very well done. Your workshop looks amazing by the way.
Excellent. I like the calm way you explain things. No hurry, very factual. Please continue.
I'm only 10 minutes into this video, but I have to say that I love your presentation style! Clear delivery, speaking clearly and at a pace that's easy to follow. I'm just getting started with the ESP32 and watching/doing all I can.
This is one of the best videos on ESP32. Thank you!!
Fantastic video! Thank you so much. I've used my ESP32 to toggle an IO that switches a relay on and off. But I didn't know that the ESP32 has so many functionalities. Excellent work, thanks again!
You're a joy to listen to. My colleague told me about the ESP32, so I thought I'd try to catch up with it. Thank you so much!
You are one of my fovoured channels! Keep on doing in this difficult times.
All these tutorials are just superb. Very clearly explained. The only issue I have with all of DroneBot's videos, is that I cannot finish one video before going on eBay and ordering all the parts and modules Bob uses in order to follow his examples!
This has really rekindled my interest in digging out all my old boards I lost interest in some years ago with excellent guides like these..
Keep up the great work Bob!
This was a fantastic tour through the controller. Thanks for making this video! 🙌🙌👏👏👏👏
This is by far my favourite RUclips channel for arduino stuff.
These instructions and the ones on the web page have to rank up there with the best step by step instructions that I have EVER followed.
Finally got my ESP32 hooked up and running thanks to you. Very much appreciated!
I have a much better understanding of the ESP32 because of this video. I like your clear concise manner of teaching. Thank you Bill!
I knew 90% of the information but the way you talk is extraordinary so I stayed just to listen to you. One of the best HW presentations on RUclips. You got another subscriber.
WOW what a great video Bill totally blown away by your professionalism and in depth research thank you very much for the hard work it took to put this together. inspirational
Thank you. This cleared up all the questions I had around the esp32. I found all the different dev board names confusing, but now I feel I have all the knowledge needed to more forward and purchase my first board.
Thank you
Great Tutorial, by following your instructions step by step I have managed to get the ESP32/ LED working on first try, thank you
Thanks Bill, for another really great video! The world is really getting complicated. I am amazed at how many features the ESP32 has!
I have come across your videos several times and I love them. Great work.
thank you so much for your clear explanation for this beginner. You have a nice calm voice to listen to too.
Hello Bill,
Thank you for everything you do! Great tutorial! You always help me get my projects up and running.
-Baylin
I last worked with real time dedicated systems using a Ferrantii Argus 500 and a PDP11back in the 1970s. Now I must drag myself into this century and make some IoT devices! Your video is a perfect presentation of what is possible (astronomical) and how it can be done - plenty of references and hands-on demonstrations. Brilliant!
Thanks. Looking forward to seeing more ESP32 videos!
Excellent video. Maybe my favorite. I’m a big fan of yours. Thanks for your hard work on this. Great job simplifying while covering so much.
This is outstanding work!! I am performing research with the ESP32's Bluetooth abilities. My speciality is CAN Bus so I have no clue on Bluetooth. The instruction here is second to none. I find it easy and informative. Just got a subscriber!
A good intro to a versatile chip. I look forward to watching further in this series.
By closely following the procedures, I was able to complete all the projects without much difficulty. I didn't even need a shorter USB cable for those wifi projects. A big thank you to your hard work for making the video.
Thank you so much for these very valuable videos in website about all things robotics hobbiest.. Your demeanor and teaching style is very easy to understand and calming to listen to. I look forward to much more time spent with you and your teachings.
your voice is amazing. You're like the Bob Ross of microcontrollers. Subscribed!
I can't thank you enough for this tutorial. As a complete n00b, I've been struggling for almost two weeks to get this working, and I'm sure if I hadn't come across this vid, I'd have given up on the ESP32. If I can PM you somehow, I'd love to elaborate on exactly why this vid helped me! Thanks again, much appreciated.
extremely high quality channel, subbed to the newsletter!
Good thing I'm subscribed to your knowledgeable channel .......... you deliver just about everything I need ! And the follow up on the web is just perfect. Thanks a million, and keep up the great Videos. I'm probably a couple of years younger than you, but this is like getting back to school, and I just love it ! Goodbye for now :)
Enough content for 8 separate videos. Thank you.
brilliant in-depth dive in the function of this processor. very well explained. Clear and precise. Well done!
I learned heaps about the ESP32. I'm thinking of using it for my first IoT project with Blynk. Thank you for a very well presented tutorial.
I used ESP8266 before but I recently bought two ESP32 wifi bluetooth modules.
Your video helped me getting started, especially the tip about pushing the 'boot button' to load a program.
Thank you!
Thank you, gentleman. I am totally stunned at your presentation. Thank you again.
Awesome explanations. No doubt is the best I've seen so far on the topic. Congrats as well for the neat and well presented lab.
well organized and very comprehensive! Thank you for doing these videos! Its very Helpful!
Thanks for this introduction. Instructive.
This was extremely useful and helped where other videos had not. Thanks for such a well layed out and presented introduction. The text version was excellent also.
Sir, you are an excellent instructor and your channel is the best because you have the knowledge and capability to make everything is simple and easy. Thank you keep going
You are, WITHOUT A DOUBT, one of the best instructors on youtube!
I agree: I have watched many great technical videos on YT, but never with your pedagogy skills! merci !
Learning esp32 recently. Thank you for your video and article.
Lovin' every minute of it! Fantastic job Bill.
This is awesome. Thank you for the in depth tutorial!
This is my new favorite channel! Thank you so much!
Perfetto! Grazie!
Sto usando Wemos D1 mini Esp32.
Per il momento, sono riuscito ad installare tutto e sono arrivato al Blink.
Adesso proverò almeno 2 sensori analogici contemporaneamente.
Molto chiaro e preciso!
Con il mio Wemos non ho avuto bisogno di cliccare
nessun tasto aggiuntivo per il caricamento del programma.
Perfect! Thanks!
I am using Wemos D1 mini Esp32.
For the moment, I have managed to install everything and have arrived at Blink.
Now I will try at least 2 analog sensors at the same time.
Very clear and precise!
With my Wemos I didn't need to click any additional buttons to load the program.
YES!!!! Blinking Led working. I have had to install python-serial and worked properly. I didnt know which ESP32 board choose. So I saw mine said "NODE" somewhere and chosed the "NODES32". You never talk about that. Thank you very much, I love you channel. You remmember me my electronics teachers. Thanks again from Argentina.
Supercalifragilisticexpialidocious. Fantastic tutorial Bill. Many thanks for all the work that you have done to make life easy for us all.
Thanks Bill, I am now really enthusiastic to start using this board.
I'm only half way through, but I have to say THANKYOU so much for this. I've been struggling to understand how to get some projects going. This explains it all in really easy to follow steps.
Excellent explanation of the ESP32 - Thank you!
Excelent teacher as usual! I have learned a lot. Thank you so much!!!
I dig your channel man, no flash, no bullshit. I love electroboom as much as anyone but when I want to actually learn something, your style is the way to go
So much good stuff in one video! Thank you for sharing!
Thanks for your super good tutorial! This help me a lot! I'm a great fan of your tutorials! Thanks from the Netherlands!
You are such a good teacher! Thank you for this great tutorial.
I am a 67 year old senior. My last programming is about 40 years ago. Now I am looking for solving a water supply (quality) problem in Thailand.I found that the ESP32 with a couple of sensors might help to stop public water going into our tanks as soon as its turbidity exceeds a certain threshold.
Actually this idea is just nothing without your help. Thanks. (And thanks for not having an enoying background grove, as this may be horrible for some elderly people...)
Best wishes to... USA, I guess? Juergen