Retired engineer, old enough to be your grandpa. Really enjoyed your tutorial. Discussing really simple steps is critical to start the learning process. :)
@@edibandulan5266 It's basically made for IOT applications - it's an SOC that integrates WiFi/Bluetooth so you can have multiple microcontrollers/processors, communicating with one another over your home network (or on their own private network), and controlling things via GPIO accordingly. They can also do interesting things by themselves - act as a super low power DNS server, and other things I don't understand lol.
@@edibandulan5266 Hi, ESP32 is microcontroller. There are many microcontrollers like TI MSP430 series, NXP KM series, etc. Microcontrollers unlike simple processors come with alot of peripherals integrated into the single chip, like UART module and SPI for communication, ADCs to convert analog signal to digital values, etc. ESP32 comes with, one can say, peripherals needed for WiFi and Bluetooth communication, other than regular peripherals like UART, SPI, I2C, etc. And the processor is very powerful, plenty of memory, and extremely cheap as compared to other chips with similar features. So if you want to give your system, maybe camera, or maybe sensor system, wireless communication capability, ESP32 is a good choice
I've watched several videos on how to get PlatformIO going in VSCode and this is the best of them all. I followed along and BOOM working right out of the gate. Nothing like hands on to get the brain cells lined up. Thank you
I totally agree with Jack Flash. Your method of explaining and the speed that you show us how to do the individual tasks is perfect. I've subscribed and I'm going to walk through all of your videos. Thank you for putting this together.
I have been programming mostly on UNIX/Linux for over 45 years. Just bought an ESP32 and ESP8266 and a starter kit. You got me up in 1 day. Already have my RiverExplorer logo showing on the OLED and connected to WiFi !! - Thanks! I have Halloween plans with an ESP and my 3D printer!
Thank you so much Tomasz for this brilliant introduction to esp! Your video is very well structured and all your instructions are clear and make perfect sense. Very encouraging and I am really excited to get stuck into this now.
Using an ebay ESP32 ESP-WROOM-32 ESP-32S Development Board 2.4GHz WiFi & Bluetooth I found LED_BUILTIN didn't work, undefined; found the blue led on the board (other was a red Power LED) is GPIO_NUM_2 , changed that plus used 115200 as the baud rate and it worked. Linux Mint using the VS Code flatpak. Only changed the baud rate because I recognize 115200 not the 921600. Also used the ESP32 DEV Module. Appreciate the video.
Thanks for the great tutorial. I've been and embedded systems developer/IC Designer/Test Engineer, and I have to tell you, VSCode is very difficult to learn. Not only that, PlatformIO helps, but it's tutorials like yours to get one started that are REALLY appreciated. A suggestion for a project: I2C Audio using a Diligent Pmod I2S. 73's
I loved your video and your diction, my first language is not English and it is difficult for me to understand it. but I understood you perfectly and you explained very well. keep it up please
I don't know if it helps after all these years, but I believe you recommend short cables because your monitor speed/baudrate is way too high...change it to 9600 and you can get a few meters of cable...thank you for the tutorial, helps a lot!!!
I was able to follow this flawlessly. You style is methodical and very easy to follow. THANKS. I have one question. How does VS code know which COM port to use to upload the code?
Thanks for the kind words, David. I'm glad I could help. In terms of the port detection PlatformIO loops through all the available ports and tries to match the device by hardware id/model - you can find more in this thread community.platformio.org/t/auto-detect-port-explained/16062/2. Also if you'd like to specify the port of upload you can do it by adding "upload_port = /dev/ttyUSB*" or "upload_port = COM[13]" to platformio.ini config file - have a look at this page in the PlatformIO docs: docs.platformio.org/en/latest/projectconf/section_env_upload.html#id1
For ESP8266 you keep boot pin grounded, then you ground reset (or push buttons if buttons are connected). So the mcu starts in Flash mode. It is about espressif cpu I suppose.
hey quick remark 1 baud means 1 symbol transmitted per second. A symbol can be more than one bit. This is why we don't have to create confusion between bps, bit per second, and baud!
HIII. Turn on the lights on the ESP32 using the Google Calendar command . Please. For example, if you set an alarm on the google calendar at 8 pm, ESP32 will turn on at that time.
This is a great video!!! Thanks for teaching me on the basics of an ESP32. One question I had is. How do you terminate the process? When I kill the terminal, the diode is still blinking and it won't stop
Hi Clay, the code runs on a microcontroller so it will run as long as you provide a power to it so the simplest way to "terminate" it is to disconnect it from the power source although if your goal is to be able to run and kill processes on ESP32 you can either program it so external control is possible (you can check my other videos on how to control it over WiFi/internet) or you can put it to sleep after X number of seconds (I don't have a video on it yet but I'll make one soon)
Can you please make a project for esp32 for audio applications like, it will receive audio stream in Bluetooth APTX HD Codec format or LDAC format and outputs the signal as i2s format?
I managed to install the ESP32 camera software myself. But now I want to ask how do I set the camera to record something and how can I see what is on the card without removing the card ? Can I see online what is on the card?
Hi John, I think the board that you have is ESP32-CAM which is different to the one I used in the video but no worries I'm going to make a video tutorial about ESP32-CAM soon.
Hi. Tomasz. I repeated your video tutorial on my laptop with Linux Ubuntu operating system. But before starting the download of HelloWorld code to the esp32 microcontroller, I did't install any driver for uart-bridge CP2102 (I haven't used any boards with any CP21xx chip before on my laptop, for sure. I installed the system just a couple of months ago.). But despite this, everything was loaded and the board passed the LED blinking and sending text to the terminal. I think at the moment newer Linux Ubuntu versions already support the CP2102 chip out of the box.
Can I use sample codes for ESP32 WROOM and libraries with the ESP32 - mini-c3 ??? I need to do a low power project, so that's why I'd rather used the ESP32miniC3? Thanks
Hi Sophia, I think it should work with ESP32 mini-c3 as long as you select the right board when creating a new project in PlatformIO however if your board is not on the list then it might be a bit more complicated and I'd suggest checking PlatformIO forum. If your board is ESP32-C3-DevkitM-1 it should work fine.
Hey Rainny, for any business/sponsored videos related requests please contact me on my email address that you can find in the about section of my channel: th-cam.com/channels/eWDDxqfxpKucuPt5elzmiQ.htmlabout
Thank you so much 💓 Tomasz for the great video. I followed through the all steps of video every thing went through. But when I uploaded got error could open COM11, then I device manager in Ports I saw one yellow mark at silicon Lab CP210X USB to UART Bridge(COM11)
Thank you, this was very helpful. For some reasons, my ESP32-S3 devkit can update programs without pushing any of the buttons. I will have the carefully read the manual.
Dear Mr. Thomaz great tutorial but for me didn’t work, there is a connection error or the computer cannot connect im not a software eng so there is anyway to test the connection between the ESP 32 and the computer it seem the drivers that installed
I tried to follow this but the VSCode / PlatformIO functionality seems broken. I click Open like you do at 10:38, it says Loading... on the RHS and nothing happens. Kinda disappointed to say the least.
maybe I wasn't too attentive, but I couldn't see info on which pins to plug vs. the serial adapter which was the info I was looking for. Is it the same as the esp8266 probably?
hey, I'm not sure if I understood it correctly but do you mean the pinout reference - like what digital pins can be used to connect an external diode or other electronic part? if so you're right I haven't covered it with this video but I can cover it in the future.
Unfortunately, the upload to my dev board is not working. Yes, I pressed the boot button -while plugging the cable in, after plugging the cable in, before plugging the cable in -it does not matter. There is no device found. I chose usbmodem as a connection, since I use an Xiao ESP32C3 board which should have a usb controller built in. But the Uart connection does not work either -also no device found. Any Idears? Thank you!
Cześć u mnie po instalacji PlatformIO krzyczy o instalację Python 3.6 - coś się zmieniło?: Can not find working Python 3.6+ Interpreter. Please install the latest Python 3 and restart VSCode
Ok rozwiązanie: The first thing I’d recommend is just a clean uninstall and reinstall of PlatformIO. Remove the PlatformIO extension from VSCode, close VSCode, remove the entire /Users//.platformio folder, restart VSCode, add back the PlatformIO extension and let it install.
Can you do some bench tests of code performance between Arduino IDE vs VSCode-platformIO? Esp has its own called ESD-IDF and it makes less efficient compilation when bench tested
Around how long should it take to start a new PlatformIO project? I have left mine running (on good wifi) for more than an hour, and nothing has changed.
Is there a way to program the board without installing anything (Arduino IDE , ESP IDF, MU or VS Code editors) nor creating projects? I'd just like to upload micropython through something like thonny/putty and then toggle my ESP32-C3H4-RGB pins via REPL! My board doesn't seem to have an official port in the micropython download page, but I've read that it should work with the (latest?) 1.18 port: "ESP32-C3 with USB" and the board description "01SPACE_C3_RGB" But how can I upload it? I've seen people use the python module 'esptool'.. and that you must keep the power-on with the boot button pressed while powering-on... but how can I upload the bin?
hey Ben, to be honest I haven't played around with micropython yet and don't know how this should be compiled to get the binary. Regarding the upload as far as I know there are 3 ways of uploading the code to the board: - upload a binary using esptool via usb cable connected to the computer (that's how Arduino IDE and PlatformIO do it under the hood by the way) - OTA - over the air update - board downloads the binary from the internet/local network and update itself automatically - USB OTG (works only on ESP32-S2) - this potentially could be as simple as connecting the board to the computer and then drag and drop the binary file although I haven't seen any working solution yet Also I have project on my TODO list to build a tool to write and upload code to ESP32 from the browser so no editor is required however I need to make a few videos before that :)
Excellent guide!! Is there any way to write pure C/C++ code without that setup/loop functions? I mean, a tradicional main method, function prototype declaring, callbacks, etc. Also, can assembly code be used here?
I really like using the arduino IDE. I was looking for another way to program an ESP32 but it didn't work for me, I did try using this program but it isn't for me. I also tried ESP-IDF but wow programming with that is a nightmare.
Hey Tomasz, the video was great and very detailed. But the Cp210x driver shows some errors when installed and so the esp32 can’t be flashed can you please help me out with it??
Great tutorial. I am using Esspresif framework but every time I click on "Build", it simply build entire library and takes long time. I don't understand why it build whole library again and again. Do you know how to compile only those files which are modified.
Hi Chadresh, this shouldn't be the case with PlatformIO. Have you got it upgraded to the latest version? Generally the whole project gets recompiled only if there's a change in the includes.
hi , a complete newbie here. I followed the above tutorial with a board bought online, I get this error when uploading. I can see board connected on COM port in dev manager. what do I need to do? I tried boot press to reset board, unplug and plug but still get same error. Bought new data cables from fasgear still same issue A fatal error occurred: Could not open COM3, the port doesn't exist Failed uploading: uploading error: exit status 2
this is a wonderful esp32 platformio vsc video.. platformio is new to me 🤔 is there a simple way to test the esp32 serial2 with rs485 module for modbus rtu master test? thank you.
Hey Luis, this IDE plugin is the same as arduino. You program the board like with Arduino IDE but you get extra VS Code and PlatformIO features like auto code formatting, intellisense, easy access to CLI and Serial Monitor, Unit Testing, Debugging etc.
@@tomasztarnowski4434 I am not an Arduino fan... I'm IDF all the way. The IDF Extension in VSC is working for all my needs at this point. In fact, PIO fights against those tools, so I pulled PIO out of my process about 12 months ago.
To be honest I haven't tried to use IDF extension yet. I will definitely try it at some point in the future (I plan to make some videos about freeRTOS/IDF). Also I think you can use IDF with PlatformIO.
@@tomasztarnowski4434 The new IDF extension is so good, I can't imagine what I might be missing with PIO. Besides, I mentioned already, based on my experience these tools fight each other. PIO was certainly helpful 2 year ago, but Espressif has caught up in their tooling and VS Code and the extension are more than enough for the job.
@@tomasztarnowski4434 Using a library on top of another library is not the way to go. I do understand there are a lot of hobbyist types out there. My prediction is that all mature Arudino people will be forced to graduate to the IDF to become proficient in their craft.
Retired engineer, old enough to be your grandpa. Really enjoyed your tutorial. Discussing really simple steps is critical to start the learning process. :)
I just know ESP32 for camera by combine it with arduino? Actually what's the exact function of ESP32?
@@edibandulan5266 It's basically made for IOT applications - it's an SOC that integrates WiFi/Bluetooth so you can have multiple microcontrollers/processors, communicating with one another over your home network (or on their own private network), and controlling things via GPIO accordingly. They can also do interesting things by themselves - act as a super low power DNS server, and other things I don't understand lol.
@@edibandulan5266 Hi, ESP32 is microcontroller. There are many microcontrollers like TI MSP430 series, NXP KM series, etc. Microcontrollers unlike simple processors come with alot of peripherals integrated into the single chip, like UART module and SPI for communication, ADCs to convert analog signal to digital values, etc. ESP32 comes with, one can say, peripherals needed for WiFi and Bluetooth communication, other than regular peripherals like UART, SPI, I2C, etc. And the processor is very powerful, plenty of memory, and extremely cheap as compared to other chips with similar features. So if you want to give your system, maybe camera, or maybe sensor system, wireless communication capability, ESP32 is a good choice
Same here
Broooo💀💀i mean uncle l.... No gramps✅
Brilliant. The simplest and most compete ESP32 beginner's tutorial on TH-cam. Well done, Tomasz.
Best beginning ESP32 tutorial on TH-cam. Worked immediately on a Windows 10 laptop. Much appreciated! Now on to bigger and better projects :-)
Great to hear that it worked immediately for you without any issues, S Bromley :)
Bro, you're simply amazing. Probably the best getting started video for ESP32 on TH-cam.
Thank you, Ajaz Hussain!
This is the most clearly given explanation for this stuff I’ve ever seen.
I just learned more in 20 minutes than I have in the past year
I've watched several videos on how to get PlatformIO going in VSCode and this is the best of them all.
I followed along and BOOM working right out of the gate.
Nothing like hands on to get the brain cells lined up.
Thank you
Great to hear that, thank you Jack!
I totally agree with Jack Flash. Your method of explaining and the speed that you show us how to do the individual tasks is perfect. I've subscribed and I'm going to walk through all of your videos. Thank you for putting this together.
I'm really glad it helped you :) Thank you for the kind words.
Excellent video. Just received my ESP32 board a few minutes ago and I got it up and running with this tutorial. Thank You!!
Great to hear it worked, Jorge!
I have been programming mostly on UNIX/Linux for over 45 years. Just bought an ESP32 and ESP8266 and a starter kit. You got me up in 1 day. Already have my RiverExplorer logo showing on the OLED and connected to WiFi !! - Thanks! I have Halloween plans with an ESP and my 3D printer!
Best introduction to ESP32 programming I've seen. Thanks a lot...
Thank you. This is a very good introductory video. I am a newcomer to ESP32 and I found it very useful.
Thank you so much Tomasz for this brilliant introduction to esp! Your video is very well structured and all your instructions are clear and make perfect sense. Very encouraging and I am really excited to get stuck into this now.
Thanks a lot! This was the only tutorial I could find, which actually went over the multiple types of bridges. I almost gave up before.
Great to hear that my video is comprehensive enough to help as many people as possible!
Thank you so much. I was finally able to get my esp32 to work after this. You're the best
Great to hear!
Your tutorial is the most informative for new comers I found so far. Thank you.
tysm for this tutorial man, fastest ive ever setup a microcontroller with vs code yet
Glad it worked for you, Nikhil!
Using an ebay ESP32 ESP-WROOM-32 ESP-32S Development Board 2.4GHz WiFi & Bluetooth I found LED_BUILTIN didn't work, undefined; found the blue led on the board (other was a red Power LED) is GPIO_NUM_2 , changed that plus used 115200 as the baud rate and it worked. Linux Mint using the VS Code flatpak. Only changed the baud rate because I recognize 115200 not the 921600. Also used the ESP32 DEV Module. Appreciate the video.
we're using the same devices, thanks for the heads up
Thanks for the great tutorial. I've been and embedded systems developer/IC Designer/Test Engineer, and I have to tell you, VSCode is very difficult to learn. Not only that, PlatformIO helps, but it's tutorials like yours to get one started that are REALLY appreciated.
A suggestion for a project: I2C Audio using a Diligent Pmod I2S. 73's
Thank you very much. Just started working with ESP32 for a project using multiple servos; a very helpful intro.
Thank you so much for sharing your knowledge Tomasz! cheers from Argentina!
Gracias, Matias!
Cool video. In my case I use a WROOM32 board and I can't upload a code. So I change board id to esp32dev and now it works. Thanks !
Thank you! I'm glad you've managed to get it working.
I loved your video and your diction, my first language is not English and it is difficult for me to understand it. but I understood you perfectly and you explained very well. keep it up please
Thank you, Jose Alejandro! 😃
I don't know if it helps after all these years, but I believe you recommend short cables because your monitor speed/baudrate is way too high...change it to 9600 and you can get a few meters of cable...thank you for the tutorial, helps a lot!!!
Precise & crystal clear , great job.
Thanks!
I was able to follow this flawlessly. You style is methodical and very easy to follow. THANKS.
I have one question. How does VS code know which COM port to use to upload the code?
Thanks for the kind words, David. I'm glad I could help.
In terms of the port detection PlatformIO loops through all the available ports and tries to match the device by hardware id/model - you can find more in this thread community.platformio.org/t/auto-detect-port-explained/16062/2.
Also if you'd like to specify the port of upload you can do it by adding "upload_port = /dev/ttyUSB*" or "upload_port = COM[13]" to platformio.ini config file - have a look at this page in the PlatformIO docs: docs.platformio.org/en/latest/projectconf/section_env_upload.html#id1
@@tomasztarnowski4434 thank you so very much for the detailed response. It is quite helpful.
For ESP8266 you keep boot pin grounded, then you ground reset (or push buttons if buttons are connected). So the mcu starts in Flash mode. It is about espressif cpu I suppose.
Thank you very much for this tutorial! It was a perfect start for this new journey.
Thanks Tomasz, this video is just what I needed to get started. Now I can build and upload and test my code. Many thanks.
Any idea how you would program the new ESP32-S3 Development Board with 1.28" IPS Round LCD? Great video for a complete newbie by the way!
absolument parfait, c'est la meilleure vidéo si vous cherchez comment programmer une ESP avec VS CODE 👍👌
Merci beaucoup, Last Hero!
Many thanks, ESP32 now working. I tried some other approaches but they seemed to over complicate the set up, or not support the NodeMCU-ESP32.
Good to hear Chris that my video helped you :)
hey quick remark
1 baud means 1 symbol transmitted per second. A symbol can be more than one bit. This is why we don't have to create confusion between bps, bit per second, and baud!
thank you, ziri for clarification. You're right baud is more of an abstract term and what's important is the context :)
Very good tutorial, love the step by step simplicity
HIII. Turn on the lights on the ESP32 using the Google Calendar command . Please. For example, if you set an alarm on the google calendar at 8 pm, ESP32 will turn on at that time.
Hey, I'm gonna put this project on my todo list.
This is a great video!!! Thanks for teaching me on the basics of an ESP32.
One question I had is. How do you terminate the process?
When I kill the terminal, the diode is still blinking and it won't stop
Hi Clay,
the code runs on a microcontroller so it will run as long as you provide a power to it so the simplest way to "terminate" it is to disconnect it from the power source although if your goal is to be able to run and kill processes on ESP32 you can either program it so external control is possible (you can check my other videos on how to control it over WiFi/internet) or you can put it to sleep after X number of seconds (I don't have a video on it yet but I'll make one soon)
@@tomasztarnowski4434
Thank you for explaining it
Again, very helpful video
Hi, Thank you for the great tutorial. I am looking to build a multiroom audio player. can you suggest or create a video?. Thanks
Sounds like a great idea! I'm planning to make a few videos about ESP32 and audio, it may take a while, though. Stay tuned :)
Can you please make a project for esp32 for audio applications like, it will receive audio stream in Bluetooth APTX HD Codec format or LDAC format and outputs the signal as i2s format?
TY! Wish I had seen this before having my connectivity issues. Thankfully I had stumbled into installing the USB-UART driver…
Excellent video! I would like to power it with an equally small 230V power supply. Can you recommend any?
I managed to install the ESP32 camera software myself.
But now I want to ask how do I set the camera to record something and how can I see what is on the card without removing the card ?
Can I see online what is on the card?
Hi John, I think the board that you have is ESP32-CAM which is different to the one I used in the video but no worries I'm going to make a video tutorial about ESP32-CAM soon.
@@tomasztarnowski4434 Thanks!
Hi. Tomasz. I repeated your video tutorial on my laptop with Linux Ubuntu operating system. But before starting the download of HelloWorld code to the esp32 microcontroller, I did't install any driver for uart-bridge CP2102 (I haven't used any boards with any CP21xx chip before on my laptop, for sure. I installed the system just a couple of months ago.). But despite this, everything was loaded and the board passed the LED blinking and sending text to the terminal.
I think at the moment newer Linux Ubuntu versions already support the CP2102 chip out of the box.
Hey, thanks for confirming this with ubuntu. Looks like the most popular Linux distributions support CP21xx out of the box :)
Hello, do you perhaps have information on how to make an internet radio receiver with ESP32?
Thank you for your reply! Sascha
Can I use sample codes for ESP32 WROOM and libraries with the ESP32 - mini-c3 ??? I need to do a low power project, so that's why I'd rather used the ESP32miniC3? Thanks
Hi Sophia, I think it should work with ESP32 mini-c3 as long as you select the right board when creating a new project in PlatformIO however if your board is not on the list then it might be a bit more complicated and I'd suggest checking PlatformIO forum. If your board is ESP32-C3-DevkitM-1 it should work fine.
I like how you are pointing the hardware parts with toothpick😂.
The video was very informative and helpful 😊
Hello Sir , please can you make a video to troubleshoot why the esp32 can’t connect to Wi-Fi. Thanks
Hi Ahmedu,
Good idea! I will add it to my todo list. Thank you!
Our HMI displays can work with STM32, ESP32 and Arduino by UART communication.
Could you please make some Sponsored videos for our HMI LCD?
Hey Rainny, for any business/sponsored videos related requests please contact me on my email address that you can find in the about section of my channel:
th-cam.com/channels/eWDDxqfxpKucuPt5elzmiQ.htmlabout
I have done this and it uploads to my board and then the boards does not give me any blue light only the red on showing power. Im I missing something?
SUBSCRIBED!! Thank you very much for the extremely helpful video.
Thanks for the sub, Zahid!
Very nice conetn Tomasz ! This video is a real pleasure for onboarding when starting from scratch
Thank you so much 💓 Tomasz for the great video. I followed through the all steps of video every thing went through. But when I uploaded got error could open COM11, then I device manager in Ports I saw one yellow mark at silicon Lab CP210X USB to UART Bridge(COM11)
It's working. Thank you 😊 💓 ☺ so much
I'm glad that you've managed to fix it :) Great to hear that it's working!
@@tomasztarnowski4434 You are a superman , pls keep it up. Waiting for your new video.
i have a question,on this line "serial.begin(921600)"in void set up,what does this number"921600"mean?what does it represent?
921600 is a call baud rate. It represents the speed of data transfer between ESP32 and computer over the serial connection.
en.wikipedia.org/wiki/Baud
Thank you, this was very helpful. For some reasons, my ESP32-S3 devkit can update programs without pushing any of the buttons. I will have the carefully read the manual.
On Linux the cp210x and ch341 drivers are included by default
Can u please make a video about how to connect an esp32-s2 with a 1602A. An how wire them together and to program it.
hey, yep I will make a video about it. I've added this subject to my todo list :)
@@tomasztarnowski4434 thanks
Dear Mr. Thomaz great tutorial but for me didn’t work, there is a connection error or the computer cannot connect im not a software eng so there is anyway to test the connection between the ESP 32 and the computer it seem the drivers that installed
I tried to follow this but the VSCode / PlatformIO functionality seems broken. I click Open like you do at 10:38, it says Loading... on the RHS and nothing happens.
Kinda disappointed to say the least.
maybe I wasn't too attentive, but I couldn't see info on which pins to plug vs. the serial adapter which was the info I was looking for. Is it the same as the esp8266 probably?
hey, I'm not sure if I understood it correctly but do you mean the pinout reference - like what digital pins can be used to connect an external diode or other electronic part? if so you're right I haven't covered it with this video but I can cover it in the future.
Unfortunately, the upload to my dev board is not working. Yes, I pressed the boot button -while plugging the cable in, after plugging the cable in, before plugging the cable in -it does not matter. There is no device found. I chose usbmodem as a connection, since I use an Xiao ESP32C3 board which should have a usb controller built in. But the Uart connection does not work either -also no device found. Any Idears? Thank you!
Thank you so much! Using this with VS code is very comfortable!
What if i have ESP 32 Thing, which option should i chose when im selecting my bord under NEW Project option? thanks for ur video
hey Alireza,
you should be able to find "SparkFun ESP32 Thing" on the board list when creating new project with PlatformIO
Cześć u mnie po instalacji PlatformIO krzyczy o instalację Python 3.6 - coś się zmieniło?: Can not find working Python 3.6+ Interpreter. Please install the latest Python 3 and restart VSCode
Ok rozwiązanie: The first thing I’d recommend is just a clean uninstall and reinstall of PlatformIO. Remove the PlatformIO extension from VSCode, close VSCode, remove the entire /Users//.platformio folder, restart VSCode, add back the PlatformIO extension and let it install.
I'm glad you've found the solution to your problem :)
Best beginners tutorial, thanks!!!
clang-format doesn't work without the executable which does not come with the wrapper extension.
Hi Mikael, good point! looks like I've missed it.
To install clang-format:
github.com/xaverh/vscode-clang-format#installing-clang-format
Great video, Im just getting started with ESP32 and this was a smashing help.
Thanks, David! I'm glad I helped you!
Do you have any video on stm32 to control sensors bldc motor
hey Kamran Rashid, I don't have any stm32 videos yet but I have it on my todo list.
Can you do some bench tests of code performance between Arduino IDE vs VSCode-platformIO? Esp has its own called ESD-IDF and it makes less efficient compilation when bench tested
Around how long should it take to start a new PlatformIO project? I have left mine running (on good wifi) for more than an hour, and nothing has changed.
I appreciate the setup video Tomasz. Keep up the great work, it was insightful.
I'm glad you enjoyed it :)
Is there a way to program the board without installing anything (Arduino IDE , ESP IDF, MU or VS Code editors) nor creating projects? I'd just like to upload micropython through something like thonny/putty and then toggle my ESP32-C3H4-RGB pins via REPL!
My board doesn't seem to have an official port in the micropython download page, but I've read that it should work with the (latest?) 1.18 port: "ESP32-C3 with USB" and the board description "01SPACE_C3_RGB"
But how can I upload it? I've seen people use the python module 'esptool'.. and that you must keep the power-on with the boot button pressed while powering-on... but how can I upload the bin?
hey Ben, to be honest I haven't played around with micropython yet and don't know how this should be compiled to get the binary. Regarding the upload as far as I know there are 3 ways of uploading the code to the board:
- upload a binary using esptool via usb cable connected to the computer (that's how Arduino IDE and PlatformIO do it under the hood by the way)
- OTA - over the air update - board downloads the binary from the internet/local network and update itself automatically
- USB OTG (works only on ESP32-S2) - this potentially could be as simple as connecting the board to the computer and then drag and drop the binary file although I haven't seen any working solution yet
Also I have project on my TODO list to build a tool to write and upload code to ESP32 from the browser so no editor is required however I need to make a few videos before that :)
Great teacher keep on doing
Everything thing is very clear good job
Thank you! 😃
Sir do the esp32’s have any operating system when brand new?
Excellent guide!! Is there any way to write pure C/C++ code without that setup/loop functions? I mean, a tradicional main method, function prototype declaring, callbacks, etc.
Also, can assembly code be used here?
Amazing video . I'm actually very new to the iot area , should i learn electronics first ?
This was a great kick start!
Thank you!
Which programming language do we have to learn in order to program esp 32
I really like using the arduino IDE. I was looking for another way to program an ESP32 but it didn't work for me, I did try using this program but it isn't for me. I also tried ESP-IDF but wow programming with that is a nightmare.
Hey Tomasz, the video was great and very detailed. But the Cp210x driver shows some errors when installed and so the esp32 can’t be flashed can you please help me out with it??
hey Rohanshu, thanks. What is the error message you're getting and at what stage it's happening?
cannot see any link for your USB video. please share
Hi! The board you are using. Is it compatible with GSM SIM880L
yeah, you should be able to wire it up with GSM SIM880L
👍 - dzięki za tutorial ! Świetny jest ten ESP32
spoko, nie ma za co :)
This moment kiedy słuhasz jak gość szpraha po angielsku a wiesz że jest polakiem.
Great tutorial. I am using Esspresif framework but every time I click on "Build", it simply build entire library and takes long time. I don't understand why it build whole library again and again. Do you know how to compile only those files which are modified.
Hi Chadresh, this shouldn't be the case with PlatformIO. Have you got it upgraded to the latest version? Generally the whole project gets recompiled only if there's a change in the includes.
Please make video on ESP32-S2 dev on PlatformIO - cannot get it working!!!
Thank you for your suggestion. Just added the video about ESP32-S2 to my to do list!
hi , a complete newbie here.
I followed the above tutorial with a board bought online, I get this error when uploading. I can see board connected on COM port in dev manager. what do I need to do? I tried boot press to reset board, unplug and plug but still get same error. Bought new data cables from fasgear still same issue
A fatal error occurred: Could not open COM3, the port doesn't exist
Failed uploading: uploading error: exit status 2
Where is the playlist link for this series?
hey, I haven't created a playlist as this is more of an independent video
this is a wonderful esp32 platformio vsc video.. platformio is new to me 🤔 is there a simple way to test the esp32 serial2 with rs485 module for modbus rtu master test? thank you.
hey, q zorn, thank you.
I haven't tried to use Modbus with ESP32 yet. I'll look into it in the future.
Does the esp32 come factory installed with an operating system? Please forgive the stupid question.
Are all ESP32 limited to microUSB connection?
It all depends on the development board. As far as I know there are certain boards made by Adafruit with USB-C.
How do you know it is nodemcu-32s. Mine is, I just did the same as you but how do you know?
how do you install the driver on win10? there's no file to exectue, just a inf file, but when i right click and select install, nothing happens
Hi I was wondering during how does deep sleep work with the void loop?
Hey, when the device is in the deep sleep mode void loop is not being executed until it wakes up.
@@tomasztarnowski4434 thank you
Very nice video thanks a lot! Could you make an example using a temp sensor and uploading it to the FireBase realtime db please? :)
Thanks!
Good suggestion. I'll consider making a video where I use Firebase instead of AWS :)
But this ide plugin is the same as arduino or are we programming lower level?
Hey Luis, this IDE plugin is the same as arduino. You program the board like with Arduino IDE but you get extra VS Code and PlatformIO features like auto code formatting, intellisense, easy access to CLI and Serial Monitor, Unit Testing, Debugging etc.
the driver is maintained by the linux if you read the explenation about the download links
Life saver! Thanks Tomasz, and keep it up!
Thank you, Nick!
Great Video please more from ESP32
Thank you! Working on it :)
Great video! 👍
Glad you liked it, thank you!
is there any inconsistency do you guys experienced using esp 32 compared to esp 8266
hey Mani, there are few things that are slightly different like GPIO constants, using HTTPClient, OTA or connecting to WiFi using WiFiMulti library
Thanks for the clear instruction. You are the man. 👍
Glad to help
Why not use the Espressif IDF Extension?
Mainly because PlatformIO supports Arduino Framework (correct me if I'm wrong) but also the community is bigger so it has a great support.
@@tomasztarnowski4434 I am not an Arduino fan... I'm IDF all the way. The IDF Extension in VSC is working for all my needs at this point. In fact, PIO fights against those tools, so I pulled PIO out of my process about 12 months ago.
To be honest I haven't tried to use IDF extension yet. I will definitely try it at some point in the future (I plan to make some videos about freeRTOS/IDF). Also I think you can use IDF with PlatformIO.
@@tomasztarnowski4434 The new IDF extension is so good, I can't imagine what I might be missing with PIO. Besides, I mentioned already, based on my experience these tools fight each other. PIO was certainly helpful 2 year ago, but Espressif has caught up in their tooling and VS Code and the extension are more than enough for the job.
@@tomasztarnowski4434 Using a library on top of another library is not the way to go. I do understand there are a lot of hobbyist types out there. My prediction is that all mature Arudino people will be forced to graduate to the IDF to become proficient in their craft.