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)
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
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.
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.
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.
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
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.
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
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.
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...
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
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.
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
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;
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
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 🙏🏻
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
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.
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.
Very Very Very Happy to See our Best Teacher of Coding back 😍🙏🥳😇🤩
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)
I think your explanation is wrong but your answer is right
@@akashnain2202 may be ,because i am not a teacher!
@@yuvrajkukreja9727 can you explain please
@@yuvrajkukreja9727 nice bro
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
Our teacher is back😊
Its time to learn new topics and learn more about robotics
yes bro
Finally you are back 😊. So excited 😁
Mai 1 we 14 tak video dekha hu maja aagya mai khud coding karke kai project bna chuka a thanks sir
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 (:
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.
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.
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.
Sir aap mahan ho!!!!!
Aap hame bohot acche se arduino me pro bana rahe ho
1 saal bad ap ne eq video de. Thank you sir. Video ap ke bhot he knowlagebal hi.
Waiting for you sience 1 year,
Welcome,
Your videos are awesome
Finally !! You are back after one year and if anyone thinks that the program number 2 is wrong please :)
like the comment....
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
complete this course
Very best explain sir
And thank you ma arduno coding seek gaya 🌏🌏🌏✌✌✌✌😎😎😎😎😎
Finally ,🥰🥰🥰you are back after more than 1 year
Program 2, bcos else option is not added.
Hi,
program no.2
isliy kiun k program 2 me sensor HIGH ho ya LOW ho LED HIGH hi rahy gi.
So glad to see you back
I learned arduino programming by seeing ur videos
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.
Hello sir finally aap aagaye bhahot khushi hue
Program 1 will not work because we are storing String i.e LOW in 'int' datatype.
बहुत बहुत धन्यवाद भाई 🙏 FOR THIS PLAYLIST
program 2 because lights will be blinking always, only if vibration detected light will be off and again on, and it will blink otherwise.
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
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.
Am so happy you are back 😂😍😍😍😍
Jldi se jldi aage aage or video uplod kro
Program 1 because it will continueously keep the led off until the sensor gives HIGH signal
Bro error program kaun sa hai wo batana hai
@@Sujeetsharma843 no one will throw error but 1 and 3 will accomplish the task
@@krishna290gamer2 bhai , wo ek logical error hai ,
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.
Program 2
Kiu ke " else" Statement Nahi Lagaya He
2nd becz led will glow in both cases (digitalWrite(5)==low,digitalWrite(5)==high)
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...
Program 2 execute nahi hoga, if use hua hain else nahi use hua hain.
Q2 was wrong because else statement is not give so program was executed without vibration only one second blink LED
So glad to see you back, bro!!! 🥳🥳
We missed you a lot 😢😢
Where were you till now?? 🙂
Welcome back sir thanks for continue
Hello,,, 3rd program not work kiuki wahan else condition hae ,,,
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
8:47
Quite good explanation. Learned lot from this video series. Thank you very much.
Program can't be executed # Syntax error ( if without else
Please complete this playlist. It is very helpful.
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.
program 2 can not execute the task which you gave.
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
😵😵😵😵are sir you are back we are waiting you for a long time.bahat din ka break leliye 🤣🤣.
Thanks for coming 🙏
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
Program 2 cannot be able for this circuit
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;
Sir next video ies Serise ka kab aa raha hai
Very easy explanation.
Amazing 👏
without any vibration led will on for 1000ms second and off for if statement executed time,
Awsm 🔥
program 2 will not run properly cuz it is syntax of if condiotion tht it must contain else
its Program 1 , cause the pin is read only once. If initially val = LOW, the LOOP will never terminte
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.
Sir where are you.
You are uploading video almost about 1 year later
Yes, from now I'll try to upload regularly.
@@EngineersElectronics thx bro🥰🥰 waiting for more incredible videos about arduino,raspberry pi,iot etc, some more project
Pls make more videos sir, I love your way of explaining!!
Wow 🤩🤩 you are back I am waiting for your video.।
Sir ardiuno sikh ne ke lia kon sa corse kar na chahiye
superb......easy to understand......u have bright future....keep it up
the 2nd program cannot execute because there is no else after if
I wanted to join but no joining sign is there why?
Bro, where u go again?🥺🥺
Aap pls batao ki NodeMCU ko google assistant se kese control kare?
Thank you sir. We were waiting for your videos eagerly🥲
program number 2
cannot serve the purpose because just after low high command is given and it will be executed
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
Which application use for simulation
Aapka explanation bahut acche Hain 😘
Sir next video kab ayaga ???
Second is to be correct because in this all necessary commands defined another two programs is wrong because not be declared correctly
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 🙏🏻
sir the program no two will throw an error
It's a good teacher 😊
2nd one is not correct. The return value will not be 0 .. because 'if' statement is incomplete without 'else'.
sir 15th video kab ayega
I think all the program works properly.
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
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.
Love it love from Technical idEas 🤩❤️
Bhai aapko wapas dekhkar bahut acha laga
I think 1 and 2nd because 1 st wale mai while mai kar val low hoga to vo infinite loop mai fas jayebga
your videos are really interesting
Program 2 will not execute due to incorrect syntax.
Program 2 will not as per requirement because it has incomplete if-else statement meaning else is not there in the program.
Very glad to see you again ❤
can I turn on all pmw pin at same time plz release a video about it
in which language ,do we code in "Arduino ide" ???
I think its c++
Arduino programing ka iska baad q koi video nehi haaye? 🥺💔
GREAT SIR. THANKS FOR THE VIDEOS. VERY HELPFUL.
Brother really your content are very useful for us... Please keep it up... And help us to understand Arduino programming....
program 2 will not be able becuase else is not used with if
Very nice explanation 👍🏻
Arduino will never come out of while loop in first program
am I right ??
..
..
.
.
.
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.
Your videos are very effective and best but it will be better if you also include the values of components like resistors etc
Program 2 will not execute. Because else is not added in program
After long time, Please keep it up,
We support you, 🙂🍏🍏🍏
Finally you are back 😁
I am happy to see you again ❤️