Arduino Programming Series - Tutorial 14 | While Loop [in Hindi]

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 299

  • @sohamgaud7120
    @sohamgaud7120 3 ปีที่แล้ว +23

    Very Very Very Happy to See our Best Teacher of Coding back 😍🙏🥳😇🤩

  • @yuvrajkukreja9727
    @yuvrajkukreja9727 3 ปีที่แล้ว +30

    8:43 i think "program 2" because it continously make led high........ even when "if" statement executes to make "led" LOW then also ,with in few milli-second it will turn "LED" HIGH again.(and this millisecond gap can't be seen by human eye)

    • @akashnain2202
      @akashnain2202 2 ปีที่แล้ว +1

      I think your explanation is wrong but your answer is right

    • @yuvrajkukreja9727
      @yuvrajkukreja9727 2 ปีที่แล้ว +4

      @@akashnain2202 may be ,because i am not a teacher!

    • @ashutoshk1002
      @ashutoshk1002 2 ปีที่แล้ว

      @@yuvrajkukreja9727 can you explain please

    • @DevUbaidullah
      @DevUbaidullah 2 ปีที่แล้ว +1

      @@yuvrajkukreja9727 nice bro

    • @DevUbaidullah
      @DevUbaidullah 2 ปีที่แล้ว +1

      You are right bro But reason is if the pin 5 is low then pin 4 is low But Now we need the check again pin 5 condition if the program do not check the pin 5 condition the led will blinking
      I think it much better explain But I am not pro in English So sorry for that

  • @sunitapandey5960
    @sunitapandey5960 3 ปีที่แล้ว +18

    Our teacher is back😊
    Its time to learn new topics and learn more about robotics

  • @himanshudewangan1228
    @himanshudewangan1228 3 ปีที่แล้ว +6

    Finally you are back 😊. So excited 😁

  • @aleezakhatoon3197
    @aleezakhatoon3197 2 ปีที่แล้ว +1

    Mai 1 we 14 tak video dekha hu maja aagya mai khud coding karke kai project bna chuka a thanks sir

  • @hansikabagga
    @hansikabagga 3 ปีที่แล้ว +1

    what?I have been watching ur videos from a year now and just started this series yesterday and now almost finished and u uploaded another.Thank u (:

  • @umargul5644
    @umargul5644 2 ปีที่แล้ว +3

    Well come back sir, from your kindly teaching now we are already learned almost (c language) too with ardiuno, Love from Pakistan 🇵🇰 ♥ ❤ 😍 💕 💖 🇵🇰.and my opinion is, all three programs are correct.

  • @67omkarwaghmare28
    @67omkarwaghmare28 3 ปีที่แล้ว +15

    I am very happy to see you, sir! OP Come Back
    And I think 2nd program can't execute Arduino, because it does not contain the 'else' condition, and 'if' condition is false then execution goes to the next part then led is high.
    I was confused but led becomes a high position and Arduino did not understand this program.

  • @sambitprakashmohanty4103
    @sambitprakashmohanty4103 2 ปีที่แล้ว +1

    Continuously light is glow but at loop is start the light is off in short time of interval. Then when vibration is detected the if condition is false then the light is not off the short interval time. So that when vibration is detected then the light will be continuously glow and vibration is not detected then the light is slightly blinking but we don't see, we feel it constantly glow. Thank you so much your tutorial. I hope next video is coming soon.

  • @swapnilpatil8265
    @swapnilpatil8265 3 ปีที่แล้ว +1

    Sir aap mahan ho!!!!!
    Aap hame bohot acche se arduino me pro bana rahe ho

  • @mohdkashif3856
    @mohdkashif3856 3 ปีที่แล้ว

    1 saal bad ap ne eq video de. Thank you sir. Video ap ke bhot he knowlagebal hi.

  • @anonymous-sj5qu
    @anonymous-sj5qu 3 ปีที่แล้ว +1

    Waiting for you sience 1 year,
    Welcome,
    Your videos are awesome

  • @pyaryrajan8349
    @pyaryrajan8349 3 ปีที่แล้ว +1

    Finally !! You are back after one year and if anyone thinks that the program number 2 is wrong please :)
    like the comment....

  • @GouravChalotra01
    @GouravChalotra01 2 ปีที่แล้ว

    8:52 The reason of turn LED HIGH is because the if condition check only and after the if condition is true or not it will run the below code because there is any condition there

  • @Short_Study.
    @Short_Study. 2 ปีที่แล้ว +1

    Very best explain sir
    And thank you ma arduno coding seek gaya 🌏🌏🌏✌✌✌✌😎😎😎😎😎

  • @farukhossain3719
    @farukhossain3719 3 ปีที่แล้ว +1

    Finally ,🥰🥰🥰you are back after more than 1 year

  • @mridulsarkar9015
    @mridulsarkar9015 2 ปีที่แล้ว +1

    Program 2, bcos else option is not added.

  • @ZairaDanish-q3u
    @ZairaDanish-q3u ปีที่แล้ว

    Hi,
    program no.2
    isliy kiun k program 2 me sensor HIGH ho ya LOW ho LED HIGH hi rahy gi.

  • @indianarduinoprojects8753
    @indianarduinoprojects8753 3 ปีที่แล้ว +1

    So glad to see you back
    I learned arduino programming by seeing ur videos

  • @manjusunagar5440
    @manjusunagar5440 8 หลายเดือนก่อน

    bro the second one program is error one ,because when ever we use if statement for condition we also need to use else
    for to run another condition if the first one condition gets failed.

  • @onkarjadhav7995
    @onkarjadhav7995 3 ปีที่แล้ว +1

    Hello sir finally aap aagaye bhahot khushi hue

  • @sakalagamingyt3563
    @sakalagamingyt3563 ปีที่แล้ว

    Program 1 will not work because we are storing String i.e LOW in 'int' datatype.

  • @__ayu
    @__ayu 2 ปีที่แล้ว

    बहुत बहुत धन्यवाद भाई 🙏 FOR THIS PLAYLIST

  • @SohamDutta222
    @SohamDutta222 ปีที่แล้ว +1

    program 2 because lights will be blinking always, only if vibration detected light will be off and again on, and it will blink otherwise.

  • @shashwatverma6917
    @shashwatverma6917 ปีที่แล้ว +1

    Sir prgram 3 is correct one
    Program 1 me hamne var me digital pin 5 ki value store ki hai but hamne pin 5 ki value HIGH / LOW declare ni ki . But next line me var== LOW declare kiya hai jisse arduino input pin 5 ki value read ni kar paega aur error aajaega.
    Program 2 me hamne IF statement to declare krdiya but IF koi loop ni hai jo break hokr next statement pr jump kare so ELSE statement ki absence me wo program error batayega
    Program 3 me IF condition false hone par arduino ELSE condition execute hogi

  • @VijayKumar-mb3jr
    @VijayKumar-mb3jr 3 ปีที่แล้ว +1

    Program 2 bcz it have only if statement and after if() next line also execute so led will blink after 1 sec. Without any vibration.

  • @thegreaticons5071
    @thegreaticons5071 3 ปีที่แล้ว

    Am so happy you are back 😂😍😍😍😍
    Jldi se jldi aage aage or video uplod kro

  • @pythonkrishna290
    @pythonkrishna290 ปีที่แล้ว +2

    Program 1 because it will continueously keep the led off until the sensor gives HIGH signal

    • @Sujeetsharma843
      @Sujeetsharma843 ปีที่แล้ว +2

      Bro error program kaun sa hai wo batana hai

    • @krishna290gamer2
      @krishna290gamer2 ปีที่แล้ว +2

      @@Sujeetsharma843 no one will throw error but 1 and 3 will accomplish the task

    • @Sujeetsharma843
      @Sujeetsharma843 ปีที่แล้ว +1

      @@krishna290gamer2 bhai , wo ek logical error hai ,

  • @rZERO_game
    @rZERO_game 3 ปีที่แล้ว

    prog 2 will not execute as we want. but program firstoff all no error generate. if statement is always true when no vibration occured,so if statement will execute than goes to next line -- next line instruction is given as on the led . so led will on remain for 1000ms thne again it goes if statement then led will get off but off time is very little then we can;t see.

  • @Mukesh-vo2yr
    @Mukesh-vo2yr 3 ปีที่แล้ว +1

    Program 2
    Kiu ke " else" Statement Nahi Lagaya He

  • @RS-fj3hy
    @RS-fj3hy 2 ปีที่แล้ว

    2nd becz led will glow in both cases (digitalWrite(5)==low,digitalWrite(5)==high)

  • @BhupenderSingh-id3zr
    @BhupenderSingh-id3zr 2 ปีที่แล้ว

    Thanks brother I seen all your tutorial videos about arduino programming, this helps me a lot, the way u explaining the things was literally awesome👍👍, easily I got them...

  • @samirkayal2316
    @samirkayal2316 ปีที่แล้ว +1

    Program 2 execute nahi hoga, if use hua hain else nahi use hua hain.

  • @aaotv8421
    @aaotv8421 ปีที่แล้ว +2

    Q2 was wrong because else statement is not give so program was executed without vibration only one second blink LED

  • @sajidmohammad3190
    @sajidmohammad3190 3 ปีที่แล้ว +2

    So glad to see you back, bro!!! 🥳🥳
    We missed you a lot 😢😢
    Where were you till now?? 🙂

  • @sureshgurjar2262
    @sureshgurjar2262 3 ปีที่แล้ว +1

    Welcome back sir thanks for continue

  • @mohammadkhalid6886
    @mohammadkhalid6886 3 ปีที่แล้ว

    Hello,,, 3rd program not work kiuki wahan else condition hae ,,,

  • @ssgamer3317
    @ssgamer3317 ปีที่แล้ว

    program 2
    bcz there is no else statement and after the true true statement control gos to out of code and it will automatically turn on led without getting any vibration if I am wrong .... please let me know the right answer with explanation

  • @ScienceEverywhereMAA
    @ScienceEverywhereMAA ปีที่แล้ว

    Quite good explanation. Learned lot from this video series. Thank you very much.

  • @geekformer9455
    @geekformer9455 2 ปีที่แล้ว

    Program can't be executed # Syntax error ( if without else

  • @TheUnboxingBaba
    @TheUnboxingBaba 3 ปีที่แล้ว +1

    Please complete this playlist. It is very helpful.

  • @chinmoydastouring
    @chinmoydastouring ปีที่แล้ว

    your previous video you told if we write low so light should be on.if we write high light should be off.so why you tell now. if digitalWrite (4,HIGH) ,LIGHT WILL BE ON.

  • @Nikhil-or8nu
    @Nikhil-or8nu 2 ปีที่แล้ว

    program 2 can not execute the task which you gave.

  • @chanchalverma4598
    @chanchalverma4598 17 ชั่วโมงที่ผ่านมา

    sir i think tino hi right h kyu ki tino m loop alg alg use kie h but algo same h ki low detec p chang kro vrna sb same rhne do

  • @shreechandansamal5206
    @shreechandansamal5206 3 ปีที่แล้ว

    😵😵😵😵are sir you are back we are waiting you for a long time.bahat din ka break leliye 🤣🤣.

  • @tanyamaheshwari5893
    @tanyamaheshwari5893 3 ปีที่แล้ว

    Thanks for coming 🙏

  • @amit_solra
    @amit_solra 3 ปีที่แล้ว

    Sir ......
    Automatic water level controler project me display me kitni bar water tank me bhra gya h show ho ye program bna do pls sir mujhe bhut jarurt

  • @mdfatehuddin9799
    @mdfatehuddin9799 หลายเดือนก่อน

    Program 2 cannot be able for this circuit

  • @arbaz2207
    @arbaz2207 ปีที่แล้ว +1

    program 1& 2 both everyone know how program2 is not gonna work but for program 1 i think val is not updating its value when it enters in loop it runs infinitesmally as it never gonna update and if it update it will be redclaration of val as an error;

  • @ravishverma2054
    @ravishverma2054 2 ปีที่แล้ว +1

    Sir next video ies Serise ka kab aa raha hai

  • @priti5763
    @priti5763 2 ปีที่แล้ว +1

    Very easy explanation.
    Amazing 👏

  • @rZERO_game
    @rZERO_game 3 ปีที่แล้ว

    without any vibration led will on for 1000ms second and off for if statement executed time,

  • @sahilsawal664
    @sahilsawal664 3 ปีที่แล้ว +3

    Awsm 🔥

  • @tayyabaamanat9968
    @tayyabaamanat9968 หลายเดือนก่อน

    program 2 will not run properly cuz it is syntax of if condiotion tht it must contain else

  • @Anyonymus123
    @Anyonymus123 3 หลายเดือนก่อน

    its Program 1 , cause the pin is read only once. If initially val = LOW, the LOOP will never terminte

  • @sandeepkumaryadav8653
    @sandeepkumaryadav8653 3 ปีที่แล้ว

    Bhai program 1st and 2nd dono wrong hai 1st wala upload karne par led on nahi ho raha hai and 2nd wala upload karne par led always on.

  • @counterknowledge
    @counterknowledge 3 ปีที่แล้ว +3

    Sir where are you.
    You are uploading video almost about 1 year later

    • @EngineersElectronics
      @EngineersElectronics  3 ปีที่แล้ว +3

      Yes, from now I'll try to upload regularly.

    • @farukhossain3719
      @farukhossain3719 3 ปีที่แล้ว

      @@EngineersElectronics thx bro🥰🥰 waiting for more incredible videos about arduino,raspberry pi,iot etc, some more project

  • @sentrymental5679
    @sentrymental5679 3 ปีที่แล้ว +1

    Pls make more videos sir, I love your way of explaining!!

  • @the_a_ma_n._1104
    @the_a_ma_n._1104 3 ปีที่แล้ว

    Wow 🤩🤩 you are back I am waiting for your video.।

  • @sagarkrishna4197
    @sagarkrishna4197 3 ปีที่แล้ว

    Sir ardiuno sikh ne ke lia kon sa corse kar na chahiye

  • @electricalandelectronics5937
    @electricalandelectronics5937 3 ปีที่แล้ว

    superb......easy to understand......u have bright future....keep it up

  • @umaranigupta012
    @umaranigupta012 10 หลายเดือนก่อน

    the 2nd program cannot execute because there is no else after if

  • @cpsanjana
    @cpsanjana 3 ปีที่แล้ว

    I wanted to join but no joining sign is there why?

  • @farukhossain3719
    @farukhossain3719 3 ปีที่แล้ว +1

    Bro, where u go again?🥺🥺

  • @YashJain-qh5tn
    @YashJain-qh5tn 3 ปีที่แล้ว

    Aap pls batao ki NodeMCU ko google assistant se kese control kare?

  • @pettyscientist2357
    @pettyscientist2357 3 ปีที่แล้ว

    Thank you sir. We were waiting for your videos eagerly🥲

  • @hemantbhargava59
    @hemantbhargava59 5 หลายเดือนก่อน

    program number 2
    cannot serve the purpose because just after low high command is given and it will be executed

  • @Sujeetsharma843
    @Sujeetsharma843 ปีที่แล้ว

    Program 2 has an error, coz after the execution of if statment inside void loop function the statment for putting led on after detecting the vibration is going to run each and every time

  • @prachiraut2490
    @prachiraut2490 ปีที่แล้ว

    Which application use for simulation

  • @arnabroy5613
    @arnabroy5613 2 ปีที่แล้ว

    Aapka explanation bahut acche Hain 😘
    Sir next video kab ayaga ???

  • @rishusingh9867
    @rishusingh9867 2 ปีที่แล้ว

    Second is to be correct because in this all necessary commands defined another two programs is wrong because not be declared correctly

  • @Indian0333
    @Indian0333 3 ปีที่แล้ว +1

    Sir neo6m gps module se raspberry Pi 4 me realtime location track kaise ker sakte hai python programming se Google map per sir please ees topic per ek video bana dijiye please sir help me 🙏🏻

  • @parikshitmittal3790
    @parikshitmittal3790 3 ปีที่แล้ว

    sir the program no two will throw an error

  • @diy_513
    @diy_513 ปีที่แล้ว

    It's a good teacher 😊

  • @Rishav_raj74
    @Rishav_raj74 5 หลายเดือนก่อน

    2nd one is not correct. The return value will not be 0 .. because 'if' statement is incomplete without 'else'.

  • @kartikkarjee2764
    @kartikkarjee2764 3 ปีที่แล้ว +1

    sir 15th video kab ayega

  • @samratbiswas7010
    @samratbiswas7010 ปีที่แล้ว

    I think all the program works properly.

  • @sandeepkumaryadav8653
    @sandeepkumaryadav8653 3 ปีที่แล้ว

    Yes I got,program 1st is wrong because when I do practical on my pc led is not glowing but when I directly put digitalWrite function in the condition of while loop then it works good,but I still not know why it is not working in first case

  • @rbcreations6384
    @rbcreations6384 ปีที่แล้ว

    I think 2nd program does not execute because if condition is true then led is low ,in this position ''else'' condition is not exist in 2nd program then led becomes low.

  • @TechnicalidEas07
    @TechnicalidEas07 3 ปีที่แล้ว

    Love it love from Technical idEas 🤩❤️

  • @Aniket_gamer_Yt_990
    @Aniket_gamer_Yt_990 3 ปีที่แล้ว

    Bhai aapko wapas dekhkar bahut acha laga

  • @vkgamer9305
    @vkgamer9305 10 หลายเดือนก่อน

    I think 1 and 2nd because 1 st wale mai while mai kar val low hoga to vo infinite loop mai fas jayebga

  • @rockytarget8423
    @rockytarget8423 2 ปีที่แล้ว

    your videos are really interesting

  • @kbdtech9108
    @kbdtech9108 2 ปีที่แล้ว

    Program 2 will not execute due to incorrect syntax.

  • @sunil8085
    @sunil8085 3 ปีที่แล้ว

    Program 2 will not as per requirement because it has incomplete if-else statement meaning else is not there in the program.

  • @faizmajzoob1710
    @faizmajzoob1710 3 ปีที่แล้ว

    Very glad to see you again ❤

  • @sayanshaw2011
    @sayanshaw2011 2 ปีที่แล้ว

    can I turn on all pmw pin at same time plz release a video about it

  • @yuvrajkukreja9727
    @yuvrajkukreja9727 3 ปีที่แล้ว +1

    in which language ,do we code in "Arduino ide" ???

  • @02_avrajeetghosh7
    @02_avrajeetghosh7 2 ปีที่แล้ว +1

    Arduino programing ka iska baad q koi video nehi haaye? 🥺💔

  • @mechatronicsprioritysystem6487
    @mechatronicsprioritysystem6487 2 ปีที่แล้ว

    GREAT SIR. THANKS FOR THE VIDEOS. VERY HELPFUL.

  • @shivaraghav2899
    @shivaraghav2899 3 ปีที่แล้ว

    Brother really your content are very useful for us... Please keep it up... And help us to understand Arduino programming....

  • @insidegamer5845
    @insidegamer5845 2 ปีที่แล้ว

    program 2 will not be able becuase else is not used with if

  • @pranjalyellurkar3001
    @pranjalyellurkar3001 2 ปีที่แล้ว

    Very nice explanation 👍🏻

  • @BharathKumar-st3ep
    @BharathKumar-st3ep 2 ปีที่แล้ว +1

    Arduino will never come out of while loop in first program
    am I right ??

  • @vaibhavTheProgrammer
    @vaibhavTheProgrammer 9 หลายเดือนก่อน

    Program 1 and 2 both will not work.
    Explanation (for program 1): first we read the input and store in the variable val which is 'low' (or 0V). Then the condition for while loop is true and we give 0V output to the pin 4. But we are not updating the value of val inside the loop, so it's value will be 0V and while loop will keep executing infinitely.
    Explanation (for program): it does read 0V and gives output 0V due to the 'if' condition but just after that, program each time gives 'high' output too as there is not 'else' (or any other) condition.

  • @a-49hrishikeshn.92
    @a-49hrishikeshn.92 ปีที่แล้ว

    Your videos are very effective and best but it will be better if you also include the values of components like resistors etc

  • @kumarsreview9705
    @kumarsreview9705 2 ปีที่แล้ว

    Program 2 will not execute. Because else is not added in program

  • @englishinsambalpuri9364
    @englishinsambalpuri9364 3 ปีที่แล้ว

    After long time, Please keep it up,
    We support you, 🙂🍏🍏🍏

  • @anshijain5480
    @anshijain5480 3 ปีที่แล้ว

    Finally you are back 😁

  • @prakashthakor2383
    @prakashthakor2383 3 ปีที่แล้ว

    I am happy to see you again ❤️