0:09
hello and welcome to controllers Tech I
0:12
have already made a playlist covering
0:14
the es 32 MCU using the eclipse-based
0:18
ID I wanted to continue the playlist but
0:21
there are a lot of changes in the ID
0:24
which made it harder for me to keep
0:26
myself updated with the
0:28
changes there are very few videos in the
0:30
playlist and even in those videos some
0:33
users complain that the library
0:35
functions have been changed in the new
0:37
IDE also I have switched to Mac OS now
0:41
and therefore I have decided to make a
0:43
new video showing how to run your first
0:45
project on es32 with this new
0:49
IDE here on I will continue this series
0:52
and keep posting the videos
0:55
regularly we will first cover the basic
0:57
peripherals like uart SP I i2c ADC
1:03
Etc then we will move on to displays and
1:07
sensors if there is a major change in
1:09
the functions I will repost the video
1:12
for the specific peripheral explaining
1:15
changes the videos in the playlist will
1:18
be ordered accordingly so if there is
1:20
any confusion regarding the order please
1:24
playlist I am going to use the es room
1:27
32 development board with 38 pin pins
1:30
for this entire series you can purchase
1:33
the board from controller's tech
1:35
store both 30 pin and 38 pin development
1:39
boards are available with us all right
1:43
let's start the process of installation
1:46
scratch open the get started page on the
1:50
website I have selected the latest
1:53
stable version at the time of making
1:57
5.2.2 we will install the eclipse plugin
2:01
so open the link from here if you are
2:04
using a Windows computer download the
2:07
installer from this link if you have a
2:10
good data plan better go for the
2:14
installer otherwise download this
2:17
offline installer and install the
2:20
ID the Windows installation is similar
2:22
to what I covered 3 years ago so you can
2:25
refer to that video in case of any
2:28
doubts the installer will install all
2:30
the needed tools for the ID to run in
2:34
this video we will focus on installing
2:38
OS let's open the ID link and the
2:42
prerequisites in different
2:44
tabs the prerequisits basically contain
2:47
the Java Python and the git
2:50
softwares next download the ID according
2:55
structure I have a Mac M2 processor
2:58
which is an arm 64 4-bit architecture so
3:01
I will download this one now let's
3:04
download the prerequisites I will start
3:08
Java I am going to download the latest
3:11
available version this time that is
3:14
22 as I mentioned I have the arm 64-bit
3:18
architecture and I am downloading the
3:21
dis image file let's download python now
3:26
it has autod detected the OS so just
3:30
download at last we need to download the
3:35
git the git is available on the Mac
3:37
through home brew so you need to First
3:41
brew to check if it is already installed
3:44
on your Mac open the terminal and type
3:47
through as it says the command is not
3:50
found which means it has not been
3:52
installed yet here is the command which
3:55
we need to run in our terminal type in
3:58
your system password word and hit return
4:02
hit return again to continue the
4:04
installation while it is downloading the
4:07
required software let's install the
4:09
other tools I am going to first install
4:22
package I am installing it at the
4:24
default location all right the Java has
4:27
been installed successfully now we will
4:40
python again I am installing it as the
4:43
default location the python is also
4:47
successfully the espressif ID has been
4:50
downloaded but we first need to install
4:56
software the command tool is now
4:58
downloading the home brew so we will
5:01
wait for it to finish you can refer to
5:04
this video for installing the home brew
5:09
Mac the admin has also provided the
5:12
commands we need to use during setup all
5:15
right the home brew has been installed
5:18
successfully but if you note here the
5:21
home brew is still not in our path which
5:23
means that we can't just use the Brew
5:25
commands yet the installer does provide
5:28
the method to add the home route of the
5:30
path but I will go with the video method
5:33
type CD to go to the home
5:36
directory here we need to create a new
5:40
file in my case the file already exists
5:44
and there is some stm32 Cube MX related
5:47
path into it anyway just copy this
5:50
command from here and paste it inside
5:53
this file now press contr X to exit and
5:57
press y to save the file finally hit
6:00
enter or return now if you type lser L
6:05
you should be able to see the file you
6:07
just created now restart the terminal
6:10
and Source the updated
6:15
configuration The Brew command should
6:17
work fine now and to test it you can
6:19
check its version here we got the
6:22
version which means the Brew command is
6:25
now running fine so we will install the
6:32
all right the installation is successful
6:35
we have installed all the tools needed
6:37
for the IDE although there is one more
6:40
requirement that all these tools should
6:42
be available on the system environment
6:45
path let's check if we can run them from
6:48
the home folder itself Python 3 version
6:51
command seems to be typed wrong let me
6:54
try with Python 3 the python runs fine
6:58
let's try with with the git typing git
7:01
does not say invalid command so this is
7:04
also running fine let's try Java now
7:08
again we do not get the invalid command
7:10
error so all the tools are available in
7:13
the system path let's install the ID
7:19
now all right let's open the IDE from
7:22
the application section
7:30
click open we need to set the workspace
7:34
folder I am creating a new folder to
7:36
identify the es32 projects and I will
7:40
always use this folder for
7:46
es32 let's close this welcome page and
7:49
we will create a new expressive IDF
7:52
project here it says we need to install
7:55
and configure the required paths for
7:57
creating and building the ESB ID F
8:00
projects basically it will download the
8:03
files needed for the ID to run this is
8:06
going to be a one-time setup only so
8:08
click yes now click on ADB IDF and
8:13
choose the folder where the downloaded
8:15
files will be saved I am creating a new
8:18
folder for this and naming it espb IDF
8:22
all right the downloading has started
8:25
and it will take some time to finish I
8:28
am going to skip this part
8:30
just let it download and install
8:31
whatever it needs all right everything
8:34
is done and you can see the green box on
8:37
the top indicating the ID version now we
8:41
will create our first project choose the
8:44
board you are using here the es room 32
8:48
is a simple es32 board so I have
8:51
selected it just give some name to this
8:55
project it's better to use one of these
8:58
examples there is also a blink example
9:01
so let's use it click finish to create
9:05
the project on the left you can see the
9:07
project Explorer which contains all the
9:10
files used in our project here it has
9:13
the main file the PO pin connected to
9:16
the LED might be different in different
9:18
board series therefore we need to
9:21
configure this pin in the SDK
9:24
configuration let's build the project
9:27
once the build is successful and the
9:30
errors in the main file are gone now
9:35
configuration now open the example
9:38
configuration here set the K pin number
9:41
that you want to toggle in case of the
9:44
es room 32 with 38 pins the K1 is
9:48
connected to the onboard LED you can
9:51
also change the blink period but I am
9:53
leaving it to 1 second click save to
9:56
save this configuration
9:59
now build the project again the build is
10:02
successful so we will load it to the
10:04
board but before that we need to
10:07
configure the ESB Target make sure the
10:10
IDF Target is set correctly now choose
10:14
the serial Port where the ESB is
10:16
connected to here you can see it has
10:19
detected the Target now click on the Run
10:22
button to flash the project to the
10:27
board the project has been loaded loaded
10:29
and you can see the LED on board is
10:32
blinking every second you can also view
10:35
the output of the log on the serial
10:37
terminal click here to launch the
10:40
terminal make sure the project name and
10:43
the serial Port are set correctly on
10:46
clicking okay a new terminal window will
10:49
open and it will start sewing the log
10:52
output the P1 is used by the U to
10:55
display these logs on the serial
10:57
terminal but we are using that pin in
10:59
the project because it is connected to
11:02
board this is why we are not able to see
11:05
the output of the logs here I will
11:08
change the pin in the end and we will
11:10
see how the output is
11:12
displayed so the LED is blinking every 1
11:16
second let's say we want to Blink it
11:21
milliseconds all we need to do is change
11:24
the blink period in the SDK
11:27
configuration and if you do not want to
11:29
do it there you can also change it here
11:32
in the code it c f I am changing it to
11:36
500 millisecs here let's build the code
11:40
again and now flash it to the
11:47
board you can see the LED blinking
11:50
period is now every 500
11:53
milliseconds now let's quickly see the
11:55
output of the logs on the serial
11:58
terminal let's open the SDK
12:00
configuration and set the blink number
12:02
to anything other than one as I said P1
12:06
is connected to Art which is used by the
12:10
terminal now save this configuration and
12:13
build the project again this is the log
12:17
data that we are expecting on the
12:19
terminal it should display turning the
12:21
LED and then on or off depending on the
12:24
current state of the
12:26
LED let's Flash the project to the board
12:30
the LED will not blink now since we are
12:33
using pin number five which is not
12:36
LED but you might see the LED turning on
12:40
when the data is being transferred and
12:42
that is because the uart pin is
12:45
LED now click on the terminal set the
12:48
project and serial port and click
12:51
okay here you can see the logs on the
12:55
terminal it is changing every 500
12:58
milliseconds as that's the loop
13:00
delay the i in the log indicates that it
13:03
is an information log the function used
13:07
for the information log is ESP log I we
13:11
will see more about these logs in the
13:15
videos this is it for the
13:17
video I hope you understood how to
13:19
install the ID on the Mac OS and how to
13:22
get your first project running on the
13:26
32 like I said I will continue this
13:29
so you can expect a video around every
13:32
week Whenever there are major changes in
13:35
the IDE I will make the video again for
13:37
the topic covering the required
13:40
changes that is it for
13:42
today you can download the code from the
13:46
description leave comments in case of
13:49
any doubt keep watching and have a nice