Get Started with ESP32: Lesson 01 - Setting Up the Development Environment

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] [Applause] [Music] hi everyone welcome to the first video Lesson of crow panel in this lesson I will cover the following three points first the configuration of the crow panel development environment second the configuration of compilation information and Third how to use the crow panels serial port to send information to a computer okay let's start with the first Point as mentioned in the introduction the course uses the Arduino IDE so the first step we need to take is to download and install the Arduino IDE open the Arduino website and click the software page this page has the latest version of Arduino IDE 2.3.2 and a more classic version 1.8.9 but I feel that these two versions only differ in the interface you can choose the version you prefer to download but no matter which version the installation method is the same this time I will demonstrate how to install the latest version in the download bar of the windows version there are three installation methods the first is to install through an do XE program which can customize the installation path the second is to download an MSI program for installation which automatically installs using the program's default installation path the third is to download and extract a compressed file of Arduino IDE that can be used directly but in order to install more completely and conveniently I will use the second method for installation which is very suitable for beginners click to enter the MSI installer download page click just download and if you want to support the development of our doino IDE you can click contribute and download to contribute after downloading the installer double click it to run it it will automatically install this process will take a few minutes I will speed up this part of the screen we just need to wait for the installer to finish running and then the installation will be complete then you can see the icon of Arduino IDE on the desktop after installing the Arduino IDE we have an editor that allows us to write and upload code however at this point the Arduino IDE is not capable of developing for the esp32 therefore we need to install the esp32 board package to enable the Arduino IDE to develop for the esp32 run the Arduino IDE click file on the top left corner then open preference find additional boards manager URLs click the button on the right if you are downloading Arduino IDE for the first time this box will be blank we need to add the Json file link of the esp32 package here so that Arduino IDE can find the complete esp32 package for each version for us to install I have placed this Json Link in the course file if you are still not sure where to download the course file you can find the download link in the introduction below this video or on the products wiki page simply locate it and copy it into here but you may ask where did this link come from how can I ensure that this link is correct well that's a good question open your browser search for Arduino esp32 package and open the first link this is the documentation provided by the expressive company on this page we can find the source of the Json file link we choose the stable version copy it and fill it in here this step is completed then click okay to save the settings at this point we can see a progress bar in the lower right corner for downloading the Json file when the download Lo is complete the progress bar will automatically disappear now that Arduino IDE has found all the esp32 packages from the Json file all we need to do is Click tools find boards open the boards manager and search for esp32 find the esp32 package provided by the espressive company select the latest version 2.0.5 click install to reduce strange bugs I recommend that you use the same version of the esp32 package as mine the installation of the esp32 package takes a bit long so I will speed up this part of the screen okay when the installation is complete we can click tools and expand boards then we can see all the boards supported by the installed esp32 package after completing the first point we can develop esp32 on the Arduino IDE but in order to make the content of this Lon more coherent I placed how to configure compilation information in the second point this step should be completed before uploading the code assuming that we have already completed the writing of the code and need to compile and upload it before that we need to configure the compilation information in addition to the code this step also determines whether the program can run properly on the board so please watch my demonstration carefully open the course file find the codee for the first lesson and open it here click tools select board and choose the corresponding chip from the esp32 package we have installed some of you may be confused about what to choose based on this it's easy we can find this table from the crow panels topic page from this table we can know that both 2.4 in and 2.8 in boards use the es32 room chip so before compiling code for these two boards we need to change the board information to to esp32 room day module for the 3.5 in board it uses the esp32 gear Rover chip so in the uino IDE we need to configure the board information as esp32 Rover module next let's look at the 4.3 in 5in and 7in Boards they all use the esp32 S3 room chip but there is no esp32 room option in the esp32 package that's okay we can choose the esp32 S3 Dev module okay if your board is a 2.4 2.8 or 3.5 in board after selecting the board you have completed the configuration of the compilation information and you can compile and upload the code but if you are using a 4.3 in 5 in or 7-in board there are a few additional steps you need to take find the pest Ram option if you are using a 4.3in screen please make sure to select qspi PS RAM and if you are using a 5-in or 7-in screen you need to change it to opip P Ram next find the partition scheme and select huge app this will provide a larger memory space for storing code but generally speaking keeping the default option is sufficient for storing most of the code when not using the lvgl library finally connect the computer and board with a type-c cable and you can find the serial port number of the board connected to the computer in the port if your Comm 1 existed before before the board was connected this is not the serial port number of the board I should choose Comm 6 of course it may not be Comm 6 on your computer it may be com 3 or com 8 which is determined by the system however if your computer cannot recognize the connected serial Port after connecting to the board it may be because you have not installed the ch340 driver you need to install it first the installation tool for this driver is in the tools folder of the course file here the configuration and comp compilation information is complete you can compile and upload the edited code to your board now we have completed all the configurations and next let's see how this code enables the board to send messages to our computer through the serial Port the program is quite straightforward and consists of only two parts the setup function runs first when the program is powered on in this function we use the serial begin function to initialize and activate the serial port and we set the bow rate of the serial port to 9600 after that we can use the print function to send information to the serial Port of our computer the loop function below will run continuously and I have written a piece of code for counting inside it which allows me to know that the board is operating normally all right let's click this button in the top left corner to compile and upload the code and see the result the process of compiling and uploading can be quite slow so I have accelerated the footage for this part part after the upload is complete we can click on the magnifying glass icon in the top right corner of the IDE to open the serial monitor you will then see the serial monitor panel at the bottom of the IDE it's important to note that you can set the B rate on the right side of the serial monitor panel and this B rate must match the one set in the code otherwise the serial Port will receive garble text think of it as two people who both only speak English chatting and suddenly a starts speaking French naturally B won't understand what a is saying and it will appear as garbled text to be to have an effective conversation it's crucial to ensure both parties are speaking the same language therefore the setting of the B rate is very crucial okay that's the end of the first lesson of crow panel if you think this lesson has been helpful to you remember to subscribe to my channel see you next time [Music]
Info
Channel: Elecrow
Views: 3,144
Rating: undefined out of 5
Keywords: arduino for beginners, learning arduino, arduino projects, electronics basics, esp32 screen, electronics, arduino, esp32, arduino projects for beginners, elecrow, learn arduino
Id: 5zmF9GCfcTs
Channel Id: undefined
Length: 10min 6sec (606 seconds)
Published: Mon May 13 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.