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

Поділитися
Вставка
  • Опубліковано 27 жов 2024

КОМЕНТАРІ • 298

  • @sohamgaud7120
    @sohamgaud7120 3 роки тому +22

    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

    • @hrithikruhela
      @hrithikruhela 2 роки тому +1

      @@yuvrajkukreja9727 I also realised the correct answer from your explanation. good explanation bro!

    • @DevUbaidullah
      @DevUbaidullah 2 роки тому +1

      @@yuvrajkukreja9727 nice bro

  • @67omkarwaghmare28
    @67omkarwaghmare28 2 роки тому +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.

  • @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 😁

  • @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.

  • @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 (:

  • @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

  • @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.

  • @farukhossain3719
    @farukhossain3719 3 роки тому +1

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

  • @indianarduinoprojects8753
    @indianarduinoprojects8753 3 роки тому +1

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

  • @onkarjadhav7995
    @onkarjadhav7995 3 роки тому +1

    Hello sir finally aap aagaye bhahot khushi hue

  • @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....

  • @Short_Study.
    @Short_Study. Рік тому +1

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

  • @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

  • @BhupenderSingh-id3zr
    @BhupenderSingh-id3zr Рік тому

    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...

  • @sahilsawal664
    @sahilsawal664 3 роки тому +3

    Awsm 🔥

  • @__ayu
    @__ayu Рік тому

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

  • @thegreaticons5071
    @thegreaticons5071 3 роки тому

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

  • @TheUnboxingBaba
    @TheUnboxingBaba 2 роки тому +1

    Please complete this playlist. It is very helpful.

  • @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

  • @tanyamaheshwari5893
    @tanyamaheshwari5893 3 роки тому

    Thanks for coming 🙏

  • @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.

  • @shreechandansamal5206
    @shreechandansamal5206 3 роки тому

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

  • @ScienceEverywhereMAA
    @ScienceEverywhereMAA Рік тому

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

  • @the_a_ma_n._1104
    @the_a_ma_n._1104 3 роки тому

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

  • @priti5763
    @priti5763 Рік тому +1

    Very easy explanation.
    Amazing 👏

  • @pettyscientist2357
    @pettyscientist2357 3 роки тому

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

  • @shivaraghav2899
    @shivaraghav2899 2 роки тому +1

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

  • @faizmajzoob1710
    @faizmajzoob1710 3 роки тому

    Very glad to see you again ❤

  • @electricalandelectronics5937
    @electricalandelectronics5937 3 роки тому

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

  • @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.

  • @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

  • @chinmoydastouring
    @chinmoydastouring 10 місяців тому

    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.

  • @sentrymental5679
    @sentrymental5679 3 роки тому +1

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

  • @anshijain5480
    @anshijain5480 3 роки тому

    Finally you are back 😁

  • @GouravChalotra01
    @GouravChalotra01 Рік тому

    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

  • @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;

  • @englishinsambalpuri9364
    @englishinsambalpuri9364 3 роки тому

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

  • @mridulsarkar9015
    @mridulsarkar9015 2 роки тому +1

    Program 2, bcos else option is not added.

  • @rockytarget8423
    @rockytarget8423 2 роки тому

    your videos are really interesting

  • @YashJain-qh5tn
    @YashJain-qh5tn 2 роки тому +1

    Aap pls btao ki Nodemcu ko Google Assistant se kese control kare?

  • @Harry-qn8yf
    @Harry-qn8yf 3 роки тому

    And thank you so much for coming back 😍

  • @SumitKumar-bc5fj
    @SumitKumar-bc5fj 3 роки тому

    Happy to see you after a long time sir ❤️

  • @TechnicalidEas07
    @TechnicalidEas07 3 роки тому

    Love it love from Technical idEas 🤩❤️

  • @xyzschoolforgamers3573
    @xyzschoolforgamers3573 3 роки тому

    comeback op 🤩

  • @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 ,

  • @diy_513
    @diy_513 Рік тому

    It's a good teacher 😊

  • @samratbiswas7010
    @samratbiswas7010 Рік тому

    I think all the program works properly.

  • @prakashthakor2383
    @prakashthakor2383 3 роки тому

    I am happy to see you again ❤️

  • @aaotv8421
    @aaotv8421 Рік тому +2

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

  • @mechatronicsprioritysystem6487
    @mechatronicsprioritysystem6487 2 роки тому

    GREAT SIR. THANKS FOR THE VIDEOS. VERY HELPFUL.

  • @ravishverma2054
    @ravishverma2054 2 роки тому +1

    Sir next video ies Serise ka kab aa raha hai

  • @Aniket_gamer_Yt_990
    @Aniket_gamer_Yt_990 3 роки тому

    Bhai aapko wapas dekhkar bahut acha laga

  • @Anyonymus123
    @Anyonymus123 Місяць тому

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

  • @rajumahanta3808
    @rajumahanta3808 3 роки тому +1

    thank you sir.

  • @samirkayal2316
    @samirkayal2316 Рік тому +1

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

  • @vaibhavTheProgrammer
    @vaibhavTheProgrammer 7 місяців тому

    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.

  • @RS-fj3hy
    @RS-fj3hy Рік тому

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

  • @shahaji1318
    @shahaji1318 3 роки тому

    Great ....welcome sir

  • @mdashif9365
    @mdashif9365 3 роки тому

    Sir,your way of explanation always awesome. Sir, when will you upload next video on aurdino programming?

  • @vijaygautam1165
    @vijaygautam1165 3 роки тому +1

    Aa gye sir wapes

  • @mridulsarkar9015
    @mridulsarkar9015 2 роки тому

    Thank yous for you wonderful videos series. And contribution.

  • @sambitprakashmohanty4103
    @sambitprakashmohanty4103 2 роки тому

    Thank you so much sir please continue this series

  • @itachi_kun____
    @itachi_kun____ 3 роки тому

    Finally back I am your fan ❤ sir

  • @manjusunagar5440
    @manjusunagar5440 6 місяців тому

    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.

  • @arnabroy5613
    @arnabroy5613 2 роки тому

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

  • @krishnasingh-cg8oq
    @krishnasingh-cg8oq 2 роки тому +1

    Super teching

  • @dominocreator4989
    @dominocreator4989 2 роки тому

    Thank you sir for such great explainations. I love the videos u make. Eagerly waiting for your new upcoming videos for arduino

  • @sakalagamingyt3563
    @sakalagamingyt3563 11 місяців тому

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

  • @farukhossain3719
    @farukhossain3719 3 роки тому +1

    Bro, where u go again?🥺🥺

  • @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

  • @pranjalyellurkar3001
    @pranjalyellurkar3001 2 роки тому

    Very nice explanation 👍🏻

  • @prachiraut2490
    @prachiraut2490 Рік тому

    Which application use for simulation

  • @arduinoprojecttutorial6774
    @arduinoprojecttutorial6774 2 роки тому

    Sir g.ap se bohut kuch sikha arduino ka....
    Mene apko ek request kortihu...ap 2 nodemcu use korke server and client ka tru led on off korke dekhaiye....

  • @kartikkarjee2764
    @kartikkarjee2764 2 роки тому +1

    sir 15th video kab ayega

  • @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

  • @Indian0333
    @Indian0333 2 роки тому +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 🙏🏻

  • @studymathsandchemistry495
    @studymathsandchemistry495 Рік тому

    sir super class 😊😊👌👌🙏🙏

  • @rZERO_game
    @rZERO_game 2 роки тому

    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.

  • @rishusingh9867
    @rishusingh9867 Рік тому

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

  • @sahilshaikh6312
    @sahilshaikh6312 2 роки тому

    Hi bro , you are awesome but you left one topic , the topic is libraries

  • @rahulbhosale7251
    @rahulbhosale7251 2 роки тому

    sir, which online circuit simulator you used ?

  • @Nikhil-or8nu
    @Nikhil-or8nu Рік тому

    program 2 can not execute the task which you gave.

  • @akbfreefire6534
    @akbfreefire6534 2 роки тому

    Done ✅
    Ur all all video ♥️

  • @mohammadkhalid6886
    @mohammadkhalid6886 3 роки тому

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

  • @DarkXamper
    @DarkXamper 3 роки тому +1

    Can you make a Electric Match Igniter system using 3.7v battery and an indicator led with a safety switch for the whole ckt without using Arduino or any Bluetooth or wifi module .

  • @cpsanjana
    @cpsanjana 2 роки тому

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

  • @sanketmendke9793
    @sanketmendke9793 3 роки тому

    Finally back ❤️❤️❤️❤️

  • @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

  • @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.

  • @rohithm6280
    @rohithm6280 3 роки тому

    Answer- program 3 is wrong
    Reason- program doesn't use input value, it does not blink on vibration

  • @robosapien1413
    @robosapien1413 3 роки тому

    Waiting for arduino series 🥳🥳🥳

  • @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

  • @madhvendrasingh806
    @madhvendrasingh806 3 роки тому

    bhai next video mei ultasonic sensor ke sath led control using while ya do while in tinker cad pe video plz

  • @geekformer9455
    @geekformer9455 2 роки тому

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