Connect ESP32 to WiFi - Step-By-Step Tutorial

preview_player
Показать описание
In this video tutorial for absolute beginners, I show how to connect ESP32 to the WiFi network in the simplest way using Visual Studio Code with PlatformIO. Watch this guide to learn about two methods you can try to establish the connection and how you can use the built-in diode as a status indicator.

Getting Started with ESP32 Video:

Link to the code:

Software used in the video:

If you don't want to hold the "BOOT" button whenever you upload your code, here's a good article with the workaround (it requires one 10uF electrolytic capacitor):

Social Media:

Thank you for watching and see you soon!

00:00 Intro
00:22 Requirements
01:17 Creating a new project with VS Code and PlatformIO
02:45 Quick project and program structure overview
03:25 Initial setup (Serial, LED Diode, and WiFi Credentials)
05:28 Blocking method: coding part
10:43 Blocking method: deployment and test of the solution
12:24 Non-blocking method: coding part
20:05 Non-blocking method: deployment and test of the solution
21:18 The End
Рекомендации по теме
Комментарии
Автор

One of the most comprehensive ESP tuto available "IN THIS PLANET EARTH". Thanks!

ashokvannarath
Автор

keep up with the great work. As i already said in a previous video, one of the most comprehensive ESP tuto available on YT. Thanks!

erich
Автор

Thank you Tomasz for your amazing tutorial! It's long, but it is strait forward, its working and it is easy to follow. I learn from you to use VS and lot more! Thank you!! 👍👍

zdenekspacek
Автор

good night Tomasz
I'm in Sao Paulo, Brazil. Trying to learn a little automation, your video was the first one I was able to watch and I was able to understand and also verify by the presentation of the screens that I am at least with the correct abiente, I will continue to follow your videos, Thank you very much.

MarceloRodrigues-nrni
Автор

Thanks so much for another excellent video. I love the detail you go into. Just like in the beginning how you explain you click platform IO icon again to close and make more room on the screen. Anyone else would just click that and I would be left wondering how or why you did that. This is so helpful and most other YT tutorials skim over these details which are critical for someone new. I love your style Tomasz.

dave_dennis
Автор

I am just about to try a ESP32 wifi board and this video was very helpful. I use VSC and PlatformIO, so it was directly relevant for me. Thanks for your work and I subscribed to your channel.

bobwtech
Автор

Great video! I like how you explain what you’re doing in the code in plain english

blehprojects
Автор

Thanks you for your videos, you teach very well, keep it up!!!
I am from Mexico and my English is not good but your way of explaining and speaking are perfect, thanks to you I learn about ESP32 and English

josealejandroorbechavarria
Автор

I like VSC and i hate the Arduino IDE, but the Arduino platform is really good for non commercial projects at home. VSC and the PlatformIO was exactly what i was looking for! Your explanations are easy step by step. Additionally the source code you have shown is able to be used directly in projects! Thank you so much!

If someone is interested in my home project:
I replaced the relay-based swimming pool control with a Siemens Logo. It was clear that with the water temperature the running time of the filter pump is automatically adjusted. Then also an outdoor temperature sensor was installed and i knew, that i need a HMI.
At first i wanted to take a Raspberry Pi and PyQt because i have experience and with the Qt Designer i'm really fast and the python-snap7 for communicating with the logo works fine! But then i wanted a compact HMI with a small display and the indoor temperature and humidity should be measured with a BME280. So the ESP32 with the Arduino platform and Settimino to communicate with the logo should be the better option for this project!

indiumgalliumnitride
Автор

Tq... I will follow all your tuts on esp32 and projects around esp32. 👍

handryraya
Автор

Thank you very much for this video, I now have a clear path for future wifi projects.

JohnJaggerJack
Автор

Very nice video Tomas. Greetings from Argentina

matiasgays
Автор

Hey Tomasz, this is an excellent tutorial. I have been looking for something like this for months. Can you do a tutorial incorporating Javascript into this code. GREAT WORK EXPLAINING!

gkhan
Автор

Another great video! This is very useful. Thank you!

technohelp
Автор

to minimise the connection time:
1- assign static IP
2- use static channel
3- change delay to 20ms

I am getting in average 200ms to get connected (since boot) with these settings - crucial for battery operated devices that go to sleep

zyghom
Автор

Great tutorial. I have an ESP32-WROOM-32E board, but I didn't find it in platformIO. I choosed the WROVER, but I haven' any LED too.
The HelloWorld project worked, but here my ESP can not connect to my WIFI. It says "...run(): no matching wifi found", but the modem is 2 meters away.

balintweber
Автор

Super Thanks! just a stupid question, what do you mean by Blocking and Non-Blocking .. and which one is the best practice?

zandanshah
Автор

greatings from Germany ... I like your tutorials ... can you make one about reading a ntp server clock and switch a output

markusr.
Автор

Awesome, thanks!
Well made explanation!

kno
Автор

ja tak tylko chce powiedzieć ze Tomek... kurwa... uratowałeś mnie, dzięki za tutorial i na pewno jeszcze wrócę :D

kaczkawil