Thứ Bảy, 1 tháng 7, 2017

Waching daily Jul 2 2017

HELLO FRIENDS

ITS NAMAN TANWAR HERE AND YOU ARE WATCHING THE ELECTRIC GUY

AND THIS IS OUR FIRST VIDEO OF ARDUINO TUTORIALS

SO LET'S GET STARTED

LET'S FIRST WE TAKE A LOOK AT ARDUINO IDE

IT CONSIST OF 2 SECTIONS

FIRST SECTION IS void setup()

IN WHICH WE INITIALIZES THAT WHICH PIN SHOULD TO BE USED FOR WHAT PURPOSE

WHETHER IT WILL GIVE OUTPUT OR IT WILL TAKE INPUT

SECOND SECTION IS void loop()

IN WHICH WE WILL WRITE OUR PROGRAM

WHICH WILL BE RUNNING AGAIN AND AGAIN FOREVER

THE SENTENCES WHICH STARTS FROM DOUBLE FORWARD SLASHES (//) ARE CALLED COMMENTS

THIS COMMENTS ARE USED TO

REMIND THE USER THAT

WHAT THE PROGRAM CAN DO

BUT IT IS NOT IMPORTANT AT ALL

TO WRITE THIS WHEN YOU ARE PROGRAMMING

NOW LETS TAKE A LOOK AT LED BLINK PROGRAM

FIRST GO TO FILE -> Examples -> 01. Basics -> and then Blink

IN THIS CODE AT void setup() SECTION

pinMode COMMAND INITIALIZES THE BUILT IN LED AS OUTPUT

AND THEN IN void loop() SECTION FIRST LINE OF CODE INCREASES THE VOLTAGE LEVEL OF LED

AND THUS TURN ON THE LED

THE SECOND LINE OF CODE GIVES THE PROGRAM A DELAY OF 1 SECOND

AND THEN IN 3RD LINE

IT DECREASES THE VOLTAGE LEVEL OF LED

AND THUS TURN OFF THE LED

AND THEN AGAIN GIVE THE PROGRAM A DELAY OF ONE SECOND

AS THIS PROGRAM IS IN void loop() SECTION

THIS PROGRAM WILL RUN OVER AND OVER AGAIN FOREVER

BEFORE UPLOADING THIS CODE TO ARDUINO

DON'T FORGOT TO SET THE CORRECT BOARD WHICH IS Arduino/Genuino Uno

AND THE CORRECT PORT

AFTER IT IS DONE, JUST

CLICK THIS BUTTON

AND UPLOAD PROCESS WILL BE STARTED

AFTER UPLOADING THE CODE

THE BUILT IN LED OF THE ARDUINO

WILL START BLINKING

I HOPE THAT YOU LEARNED SOMETHING NEW FROM THIS VIDEO

PLEASE LIKE, COMMENT AND SHARE THIS VIDEO

AND IF YOU WANT TO STAY TUNED WITH MY UPCOMING VIDEOS, PLEASE SUBSCRIBE

Không có nhận xét nào:

Đăng nhận xét