Hi! welcome to esp32 starter kit from SunFounder this is the best
esp32 learning kit from SunFounder it has this esp32 microcontroller which has built-in Wi-Fi
and Bluetooth this board can do everything Arduino Uno can do or many other Arduinos
can do plus extra more features because we have Wi-Fi and Bluetooth the possibilities
are endless you can get connected to the cloud or do the control or read information or values via
your mobile device or your desktop or over the cloud from a far location comes it comes with
a camera extension kit where you can stream the video over Wi-Fi either through the cloud or to
your network and also it comes with micro SD card where you can save images on the micro
SD card or you can write from the device any information log the information on the device
and read it back you can power the board using this included 18650 lithium battery and it has
built-in charger where you can connect micro USB and charge the battery the kit comes with
300 this is esp32 development board microcontroller Wi-Fi and Bluetooth the
actual chip is this piece which has been soldered and different manufacturer are offering it at
different size sometimes even you might get it at this larger size but the actual chip is this
one this is antenna and we will connect micro USB here to program this so what this does is
it can read input pens like voltage or signal or pulses or it can output signal or pares and this
can be used so we with the uh temperature sensor with a speed sensor uh with motion sensor with
different kind of sensor motor control display camera whatever you think can be controlled with
uh electric signal this would be able to do it in most cases this can do everything that Arduino Uno
can do using Arduino IDE we can program esp32 the same way as we do uh other Arduino like Arduino
Uno but this has much more capability even in terms of size it's small but it has a Wi-Fi
which Arduino majority of Arduino bards they do not have it has Wi-Fi and Bluetooth using Wi-Fi
and Bluetooth we can send the information over the Wi-Fi to uh Remote device like your mobile
device or your computer or to the cloud so we can report a temperature motion of something a burglar
alarm door opens robotic arm does something so we can do a lot of cool projects with this
SunFounder has provided this extension board where we can insert this on the board and we can easily
connect our uh devices via this uh terminals with a screw or a direct connection Terminals and here
you can insert microSD card to read from micro SD card or right to it and this is the camera that
you can connect to this point and this camera also comes with the kit where you can connect
and stream the video over Wi-Fi over Wi-Fi either on our device or computer or if you have a cloud
subscription you can watch it over the cloud they have included also a battery this is a lithium
18650 battery where we can connect this to the terminal and the device can be turned on easily
without a power adapter or for the battery and when you connect it via micro USB this battery can
be charged there is a built-in charger where you can charge this battery and power the device as
well when we want to program this we will connect the connector to this terminal and program the
device in order to work with this board with Arduino you need to install Arduino
IDE a free software this is arduino.cc website I'm on arduino.cc when you arrive here click
on software and on the download you will see Arduino IDE right now the version is 2.2.1 by
the time you watch the this video it might change but does not matter from the right
you select your operating system for Windows 10 or newer select the top one or MSI installer or
zip whichever you prefer for Linux or Mac just select the operating system I'm just selecting
this one it asks for the donation just click or just download and they will ask for your
email enter your email and confirm the privacy and
if you want to receive uh special deals or commercial offers check that otherwise just
download then click on the file to open it you have no choice but to agree with the term click
next accept this security warning and again agree accept whatever is the installation path
once the installation is completed the checkbox is already checked just click
finish you might get a lot of warning every warning that you see uh displaying accept them
all and accept so this can get connected sometimes I ask for network connectivity
and security warning you have no choice but to accept it for example this one I'm
accepting it and this one accepting it it's installing a lot of library and uh code that
is needed so Arduino IDE have been now installed this is just a simple plane
installation now I closed Arduino IDE. to open it click on start and just type “ard” Arduino
and you will see it here these are the downloaded file do not click on that click on this and this
is now uin ID I can click here to go full screen now let's get familiar ourself with Arduino IDE
anytime if you need to look at that version just look at the top or click on help about and it will
tell you the version that you have installed on your machine we have here file menu with
certain options which I'm going to go through some of them edit sketch tool help from here
we will select our board when we are working with a board we must select it from here and
when we write our code the code that you write we click here to verify it will go and run if
there is any error it will tell you for example right now it says fully qualified board is not
selected so we can select our board and then go so the first thing let's select our board
Click On Tools board and board from here let's say if you select Arduino Uno it has selected
and there is nothing in the code but let's just click so indexing and everything and
it's done so this is now done and this button is to upload the code to your uh board at the
bottom here we can select and see our own code that we have sketches here we select different
boards or ADD boards if we want and from here we can select library and search library that
we want and this is for the debugging to see the value or information and from here we can
just search anytime just click again it will disappear to save this code that is on the
screen click file and then save and here name it for example test one or whatever you want
now this has been saved this icon on the right side is serial Monitor and this is called serial
plotter if I click on this the serial monitor is displayed here and some information will be
displayed to we can click again and it will disappear can click on file preferences and
here there are a lot of preferences that you can set for example this text size is 14 you
can put for example 20 and automatic scale 100% And then the light the theme for example if you
want to work with dark that's a dark theme uh you can select that let's go again back to
preferences and here it has auto save and if you want to save all the files in a
specific location for example if I select uh board and create I'm creating a folder
called if I select this anytime I save it will go directly to this location without
browsing or any hustle once the installation is finished we can see the examples by clicking on
file examples and here we have tons of examples available for us for example if I click on uh
hover over basic we see all these codes each is a project if I go on digital these are projects
analog these are projects and so forth so they are available if I go on basic for example
blank this is the blank code that is available
in order for Arduino IDE or Arduino program to work with this ESP we have to add the board to
the program for our user one point you will come here and we will copy this line we need
it selected right click and select copy and then come to Arduino IDE go to file preferences and
here we have path here we can paste it here uh but if you have a lot of other stuff you can click on
the bigger screen will open and this is telling our do we know where to get the board information
click okay and then click okay that is done now from here we select click on board and we type
esp32 make sure to select the one because this is the manufacturer
Espressif and select install now this is installing the boards for this Arduino
IDE so it says successfully installed click and it will disappear now let's connect it for the first
time so we heard the sound
by default it should be installed now let's check
it right click on the start menu here and go to device
manager from here select port and you will see USB serial CH 340 and com 8 if you don't see it then
it means you need to install the driver because your system or computer is not supporting it I
will provide you a link so you can select and download the driver now we have to select the
port for this so Arduino ID can work with this now let's select the board there are two ways
one way is to come here and click and search for the board the other way is to click on
tools board and then you can go for esp32 which we just installed and here you can see a lot
of options available and here it says esp32 Dev module we will select this one and the module is
selected this the board is now selected now we have to select the port from here
we can select the port already it shows com it I'm not going to click on that let's let
me show you another way tool port and COM8 is shown here so I can either click on this
and you see it has been selected or click in here there are two ways to select the
port and now the port have been selected properly and we can upload the code to the
board this esp32 can be programmed in multiple ways but three ways are available with all the
code and information in this course I'm going to uh Arduino which is the easiest
one for many people but micropython is also very easy if you're familiar with uh python
then micropython would be a preferred method for you here are the list of projects available with
all the codes wiring diagram and information for you so these are lists of components and
these are the projects for Arduino user if you want to use Arduino these are all projects and
step-by-step instruction about 50 projects up to here if you are preferring micropython then
these are available projects for micropython and if you want to play with scratch you can
install pi two blocks and write the codes and program it if you want to proceed programming
with Arduino here is an example 2.2 fading an LED it has been full explanation and wiring diagram
and actually actual wiring on breadboard and the actual code that you can run and program every
bit of code have been explained here example page using micro python if I scroll down you see the
wiring you see the breadboard how to connect it and also here are the codes that it shows
uh Python Programming to turn the L on and off and every piece of the code have been explained
here now let's install the provided starter kit code if we click on this you will see the
zip file click open it's located inside download and let's right click and then extract all I'm
extracting it in this location because there is another folder inside it I'm going to delete it
and it should be inside download click wait for it this has been closed and we have a folder
or directory called esp32 starter kit main double click and let me arrange it in order
and the code that we are working is called C inside the C folder there are the code and
libraries for us so there is esp32 Library there are two one is audio one is something
else so let's install these two to install libraries go to sketch include Library add Dov
Library click go to the download folder that we downloaded and this what the zip let's deleted so
we are not confused and click on this to open it go to C for example libraries and then the
first one a2dp click and open this has been installed let's install the other one Library
include library at zip Library again back to download esp32 stter CIT C library and then
audio click now this has been it says processing and Library installed what happens and where is
the library if I click on file examples by the way once you select the esp32 now we can see the
libraries available and the installed one click on file examples and here are the these are all
the basic that comes and ardino otaa so these are esp32 development code examples and which we these
are the two codes that we have installed under each title we have tons of uh Pro uh
codes
that