hi welcome to an Arduino step-by-step course by Robojax this is for absolute beginners
you just need to have a development board and also some components that is needed for that lecture
and you need to have a pc or mac to start learning Arduino
in order to develop codes or run your programs on Arduino board you need to use a software as
that is called Arduino ide the ide stands for integrated development environment
and we can get it from arduino.cc website Arduino ide is offered in two ways
one is the web editor that you can do it via the internet on the browser and the other is
called desktop editor that you download and install the software on your computer
web editor has advantages and some disadvantages the first one is that it needs high speed internet
if you don't have high speed internet web editor is not a good option and the sketch or the code
that you write will be saved on the cloud not on your computer always accessible from any
device let's say you log in in one machine with the internet you have all the codes here and
if you move without your computer on the other machine anywhere in the world you can access it
and the software that you need to work or the ide
is always updated and you don't have to worry about it and some other benefits
then we have the desktop editor that you need to download and install it on your computer
this can be installed on windows mac or Linux machine
and this is secure and safe in your computer
and your codes are private even though the courseware web are
also private but still they are in your not in your hand
and this desktop editor needs update via internet so from time to time when id is
updated or new version comes you need to update it in order to get
all the new benefits that's available for this ide
now let's get Arduino id and install it on your machine
I’m installing it on this windows machine this is windows 10. first go to arduino.cc
and press enter this web page is updated and changed from time to time so the
options or the menu that I tell you might not be available by the time that you watch the video
but it's a very relevant and the same method will apply you just need to search for example
it's called now software and it's called online or download online tools or for the web editor
when you need to use it using the internet and from using the browser this is a chrome google
chrome browser that I’m using or you can go for the download I’m clicking now on downloads
again the Arduino web editor is also available here which I will not use scroll down sometimes
I put it lower or somewhere and this is the latest version that is available Arduino 1.8.8
and here are the versions for windows we have two versions here it says
install for windows xp and app this is installer the other one is zip and this is if you're using
windows app system which login requires and you have to log in and it works only with windows
8.1 or 10. so you have to have Microsoft account to install it which I’m not going through this
way because this is the easiest one and then we have for mac and these are the versions for Linux
now amongst these two you have two options when you use the installer you will install it and
the windows directory program files and it will be installed if you use it as a zip it this doesn't
need an installation you just extract it the files are there and you can move it any anytime
let's say you format your computer or delete the file for something so you can easily back this app
but this one because this is the installation directory you cannot move it from one computer
to another computer and it will not work so I prefer this one let's get this one
and again this screen might change here it says support us by making some donation or contribution
here if you want to contribute proceed here or just download which I’m going to click now
it pops up and asks me to save it I’m going to save it here
and they download and save
it takes a while it's 182 megabytes about 18 seconds left 15 seconds
now the downloads have been completed I can run it but the best option is to opin the folder
show in folder and now this is a zip file that I have downloaded I don't see the dot zip file
first let's change the computer settings so you can see the extension of this file
click on start and type folder and you will see file explorer option click on that and go
to view tab under this these two bullets are on this side the second option says hide extensions
for the known file type now if I uncheck this and apply pay attention here that you'll see dot zip
now it shows dot zip and all extensions are shown so this is a good option for us because
we want to see what is a file extension click ok now you know that this file is dot zip file
the extension is here to extract this there are many ways one we would be to have 7.0
installed if you have it installed right click 7zip will be here if not go to the internet
7 web just type 7zip and the first one 7-zip.org click on download
and here windows 32 windows 64 and other versions and most of the time now you
will not find any 32-bit so it will be 64. click here download and install it
now right click 7.0 extract here when you do that you will see a new folder Arduino 1.8.8 when you
do that you will see a folder Arduino dash 1.8.8 appears so this has been extracted and all the
files are here if I click here this is now ready for us to run for the other unit to run it we run
Arduino dot exe you see the extension is if you hide the extension you will just see the Arduino
but in case if you are unable to remove it or if you don't like it this icon with the world
Arduino is the one that we run not this one this is a debug executable so this is a file
and one way to make it easy to use it all the time just drag it and pin to the taskbar here
now this folder I can close it but remember the location if you go under the download and
you will see it it's always here since closing it now this is the software let's click and opin it
increase the size and this is Arduino ide the text is very tiny I’m going to increase the text size
by clicking on the file preference and here I’m going to put it at 18.
so you will see a larger text this is id or integrated development environment
and here are the menus and some icons
these icons let's go with this icons first this is to check the code
when you run the code when you type your code before using it when you click here it says verify
it checks it and if there is any error it will give you a hint and under this area
so you can find a problem here is the process of developing code with Arduino so inside ide
you will develop a code this is a code that is human readable with certain functions and methods
and certain syntax after you finish your code when you prepare to send it to your Arduino first
it is being compiled to machine language so this is human readable and then internally the ide will
compile it and create a hexadecimal file that is ready to be sent to the microcontroller or
Arduino board and after that it's being downloaded and sent so this three processes being completed
from the time that you start your project until the time that if a program is loaded into Arduino
after the program is loaded then you do need to connect to computer you can power it up with a
using a power adapter or other means or a usb whichever means that you want the cool will run
this icon is for new if you click here you will opin a new sketch you will start with
a new sketch I’m closing it this is to opin your previous or old code that you've already written
and this is to save down mean save it on your computer if I click it pops up and it says
now by default this is the suggestion from the program as you can see this is the icon for java
the code is running based on java and if I do the down it goes under my document my document
and it creates a folder called Arduino which I’m not going to check it and we can just name it
test01 now it has been saved from the tool we will be using a serial monitor sometimes serial
plotter I this will not work I’m not going to click but there's a shortcut ctrl shift m
and also the type of board that is connected you are selected here
and the port that your device is connected which I’m going to show you next
and now here is my Arduino board I am going to connect it via usb to my computer and we are going
to see what we see here this is on one side of the cable that is connected to usb the other side we
will connect it in here I heard the sound and the light is on now this is on to ensure working with
this board we have to select on our Arduino ide a write option so it can work with this
this is main original Arduino or Arduino main board this is Arduino uno if that is different
you go from this menu and select the right Arduino because for this course I’m using Arduino uno you
select the second option and it should work if you click put tool ports you will see
the port now it shows Arduino Genuino uno but if you don't see it one of these ports belong to this
because the name of this one is in here I can select it but there is a way that we can check the
port on your windows 8 or windows 10 right click on the start menu and go to device manager
you will see the device manager after that scroll down and you see ports com and lot
collapse this arrow and you have to see more than one this is the intel internally it's
being used and this is Arduino uno com4 if I disconnect now the cable
you will see that that disappears this way I know my board has that for and now
let's see it might have been changed so this will change from time to time depending
on more devices that are connected to your machine so that is my actual
board now I’m disconnecting it we will see under the tools the com port is there
if I go on tools again and see it under the port the port has disappeared
let me connect it you will not see it until you click again
now you can see that it has been selected because once we select it it knows the device
and all the time it will be selected until you connect another device
but this number might change you become five six whatever because if the port is used this
port number four is used before you connect this board it will change and the other option
that we use a lot is the serial monitor when I click on serial monitor this screen pops up
we are going to use this a lot and the serial monitor can be either accessed
via this shortcut ctrl shift m or by clicking in here or you can click directly in here
on this icon on the right side it will pop up so every time we refer to the serial monitor
we are referring to this window and as you can see it shows that it is communicating or using com4
this was the introduction to ide and how we start using it for the rest I’m going to explain it one
by one with the example please make sure to subscribe by clicking at the subscribe button
in here thank you thank you for watching tutorial from Robojax if you learned something and found
this useful please thumb up as this will help my video in the search algorithm of YouTube
if you have comment or question please post it at the comment section below
I try to answer and reply and don't forget to subscribe to get updates on my upcoming videos