How to Setup and Program ESP32 Microcontroller- Complete Guide
ฝัง
- เผยแพร่เมื่อ 6 พ.ค. 2024
- Let’s learn how to Setup and Program ESP32 Microcontroller using Arduino IDE. We’ll connect ESP32 Dev Kit with computer using USB cable. And then install ESP32 board support in Arduino software. This will let us select ESP32 WROOM Microcontroller in Arduino IDE. Finally, we’ll upload Arduino program to blink LED. The ESP32 board has built-in LED connected to IO2 Pin.
[SUPPORT]
►► Try the world's most trusted PCB design software, Altium Designer with 365, for free and 25% off your purchase: www.altium.com/yt/binaryupdates
►► Free search engine for the best quality components from Octopart: octopart.com/
[RESOURCES]
►► Need Help? To Learn Embedded Systems: courses.binaryupdates.com
►► Software Packages: dl.espressif.com/dl/package_e...
►► Install ESP32 Boards: raw.githubusercontent.com/esp...
[TIMESTAMPS]
00:00 Introduction
00:20 ESP-32 Introduction
00:40 Connect ESP32 Module
01:30 Add support of ESP32 Boards
03:14 Install ESP32 Board in Arduino
05.16 Program and Upload Code
05:49 LED Blinking of ESP32 Module
06:55 Change delay of LED blink
07:52 outro - วิทยาศาสตร์และเทคโนโลยี
Thank you so much you absolutely saved my grade! I could not get my ESP32 to connect no matter what I tried and this was the only video that went in depth enough to help me solve the problem.
Hi Lena, I'm glad to know finally you can program your ESP32 Development Board. I'll be posting more videos about ESP32 programming and projects. Thanks for your wonderful words. Good luck and best wishes!
This is very helpful. It sure would be nice if you would copy those urls and paste them into the description so we could copy and paste them instead of trying to read them in the video stream. The resolution is not so great.
Thank you very much for this tutorial !
Hi Aamed, Glad it was helpful!
Hope I'll get time this year to make more videos on ESP32 Microcontroller programming. Wish you good luck and best wishes!
Super. Explained from scratch. Thanks.😊
Thanks bro !! So much for this vedio.
Thanks for the tutorial. Was wondering if you have a video having an input pin configured and an output as well. Like for an example, if you press a button, LED will turn on.
I'll surely making Switch as an input and LED as an output. So that LED will be controlled from button switch connected to ESP8266 NodeMCU. Thanks for suggestions!
@@BINARYUPDATES thank you for noticing my comment. Looking forward to your video..
bro I can't find the the second url link anywhere
I really like your video, thank you so much, I will check your others videos! :)
Hi Maria, Glad you like them
Best wishes!
So good! Thanks. You helped me a lot.
Hi Baresaint, Glad to hear it!
good one, but you missed a huge part about installing the driver for the USB chip. only took me 10 mins to fix that but all good.
Thanks brother. it helped me a lot. ♥♥
Glad to hear that this ESP32 Programming lesson was useful to you. Best wishes!
bro mine esp32 board is of type ch9102x driver, it's not showing port in the arduino ide...please help me out
It does not show my port I have just purchased a new esp32
Hi Nick, please check drivers are installed properly. Usually, ESP32 comes with CP2102 USB driver chips from Silicon labs. Once you install drivers and use quality Micro USB Cable then you'll find COM port number in device manager. Good luck and best wishes!
the voltage out of usb ports are 5v , is it safe to connect esp32 with it ? wouldnt it damage the esp32 ??
Yes, its safe to connect ESP32 board using USB port because its had LDO on the board as a voltage regulator.
3:34
I have problems failing to install the esp32 board manager, is there alternative methods to install esp32 manager?
have you solved the problem?
i am facing the same issue
this program is alread head into its example its a not complete video as per caption mentioned, i want to know that how i can upload my own program in Aruduino????????????
helped me
I'm glad you find this ESP32 tutorial useful. Thank you!
hey whats that white board with holes called? Please answer
breadboard
esp32 wroom , error compiling to board . Which board should i select? I selected wroom development
Hi, Select "ESP32 Dev Module" as a board under Tools section of top menu bar in Arduino IDE. I hope this may help. Best wishes!
Bro i have issue after uploading there is no light blinking in led application and when serial monitor it is show so many command like spi flas boot like
Hi Adhil, it seems to me your ESP32 Microcontroller is not been programmed properly. May it has some issue with flash. Try to press and hold Flash button for 10 second and again reupload the code and see if it works. I hope you may find this useful. Good luck and best wishes!
@@BINARYUPDATES bro that is not issue I solved out when I select board node mcu 32 s instead of esp32 board in board manager
where is the link to download esep32
i got i working for first time lol.
i watched other tutorial they are asking to connect resistors(hell of connections to do) and that never worked.
as beginner, this is straight forward no complicated connections.
its like my first python code(print("Hello world"))
Thank you soooo much.
Where is the link??
I am a Mac M1 user. I already installed the boards and port but Please tell me how to install the esp32 driver.
I face "Failed uploading: uploading error: exit status 2" this issue.
Please tell me how can I fix this
Hi Kanika, just search for "download CP2102 drivers for Mac M1". And you'll find download link online. Most of ESP32 board uses CP2102 as a USB to TTL converter chip. So installing drivers for this chip will let your device detect by laptop. I'm not frequent user of MAC but I'm sure this may help you. Good luck and best wishes!
@@BINARYUPDATES Thanks sir. Sir another problem i am facing is that the serial monitor is displaying only the special characters. If i want to display a normal comment, its not working. I chane the baund 9600, and try others but still not working.
Can i do these processor for esp-32 wroom -32D
Hi Keerthu, yes it will work with ESP32 WROOM 32D module as well.
Good luck and best wishes!
Help me...
After uploading wifi code in ESP32, it shows symbolic language in monitor settings....
Help me
Please make sure the serial baud rate is properly setup in ESP32 code as well as in Serial monitor of Arduino. Also, make sure SSID and password is correctly mentioned in code without any typo mistake. I hope this may help. Good luck and best wishes!
sir URL link please?
Hello im just programing my esp32 but always says sketch uses 237109 bytes (18%) of program storage space. Maximum is 1310720 bytes. Global variable use 21048 bytes (6%) of dynamic memory, leaving 306632 bytes for local variables. Maximum is 327680, how to fix it
This is not an error, just info. It's giving you some stats on your code and how much memory it uses on the board.
@@darokahn1025 yeah i just forgot to transfer to my esp LOL.
UsbEndpoint[mAddress=2,mAttributes=2,mMaxPacketSize=32,mInterval=0. Problem 😢😢
I think surviving in software engineer is little bit easier than core field 😭 share your thoughts bro
Hi Coolbro, its difficult to say as it depends on person to person. But career is more stable in core especially embedded software, in case if you're working in product base company. This is just my personal opinion. Best wishes!
@@BINARYUPDATES I have 6yrs careergap, I m from ece background, some of the institutes in bangalore claim definetly you will get placed as fresher we provide 100% placements and knowledge is imp than gap, will companies hire careergap candidates if knowledge is good? Share ur honest feedback
Please help 😢😢UsbEndpoint[mAddress=2,mAttributes=2,mMaxPacketSize=32,mInterval=0
hello , why there's no port shown ??😢
Its because you need to install drivers for ESP32 Module in your laptop. Also make sure to use quality USB cable while connecting to PC. I've dedicated video to fic driver issue for NodeMCU on my channel which may be useful to resolve this issue. Good luck and best wishes!
My laptop isnt able to detect the board. It is a new esp32.
There is no new COM port showing. Is it the usb cable?
Hi Akarsh, it possible. Try good quality USB cable between your ESP32 board and laptop. Also make sure, drivers are installed properly. I have made separate video on the same. Good luck and best wishes!
i cant select port help me
There are cables where only the power line is plugged in (Charge only) Are you sure yours is a data cable?
bro for me it's not showing the port
Please make sure the cable you're using is quality and support data and power both. Also make sure if drivers are installed properly. I hope this may help. Good luck and best wishes!
Hello
Thanks for the video and it was very helpful
Three additions from me
1. Use a good USB cable or the WROOM32 may not get detected
2. Use the correct USB driver for your board - mine was Silabs CP2102 hence installed the latest universal driver from SILABS site here
3. I did not require to press the Boot button for making it work in write mode
Thanks again
Note - I could not add links to the download as Google for some reason blocks it
Hi Anand, thank you so much for adding more points. Best wishes!
Does this work for all esp32 variants
Yes, it does work with most ESP32 variants in market
Best wishes!