Hello friends......
Today i am here with you with a new video
In my previous videos i had used Arduino UNO
So what is Arduino UNO?
Let's see......
It's a circuit board
This is an micro-controller which name is ATMEGA328P
There are some pins
Some of them are digital I/O pins (0 to 13)
A0 to A5 are analog pins
And some are for power supply
0 to 13 are known as digital pins
The RX and TX pins are used for serial communication
Pins which contain ~ symbol before pin numbers are PWM pins
This pins are for power supply
for 5 volt
for 3.3 volt
for ground
Analog pins where we connect analog sensor
This pins are used for servo motors
you can connect servo motor here
this is a reset button
what is the use of reset button?
If you press the reset button of arduino
then the task will be restart
This is the external DC power supply for arduino
It's the USB port for arduino to upload the code
This is the usb cable for arduino UNO
This one connect to arduino
and this one for pc
To upload code in arduino UNO you need to have an software
and the name of the software is arduino IDE
The link to download arduino IDE is given in the description
Now, let me show you how to upload code in arduino
And how to download arduino IDE
open google and type..
"download arduino ide"
search....
click on second link ('Arduino IDE')
after that you can see the platform for which arduino UNO is available
for windows
Mac OS
Linux
chose according to your platform
I have selected Mac OS
Click on "just download"
downloading started
I have already installed arduino IDE
so i am not going to show you how to install arduino IDE
let me open arduino ide
In this part you and add or include different libraries and also define variables and conatants
In this "void setup()" part  we define which pin is work as input and which one will be output
and the "void loop()" part will repeatedly executed
this part will execute once when arduino is turned on
But the loop part will executed repeatedly until power is turned off or pressed reset button
now i am going to show you how to upload code
i am going to show you how to blink the builtin LED in Arduino
go to file
then Example
then Basics
after that Blink
with in "void setup()"  builtin LED is initialised as OUTPUT
in loop part LED_BUILTIN is set as HIGH means the led will turn on
delay is used here  for how much time (mili second) the LED will turn on
here it's 1 second (1000 ms = 1sec)
and here it's set to low for one second
That means the led will on for 1 sec and off for 1 sec
Now let's upload this code in arduino board
Connect the usb port
go to "tools"
select board "Arduino/Genuino uno"
select the usb port
then click on upload
after uploading successfully you will see uploading done message
the led is blinking (on for 1 sec and off for 1 sec)
if you increase the delay
i set delay to 3 second
now it will be on for 3 sec and off for 3 sec
upload code
turn on for 3 sec off for 3 sec
