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 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.
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.
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.
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...
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
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.
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
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 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.
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 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....
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
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 🙏🏻
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.
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 .
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
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
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 I also realised the correct answer from your explanation. good explanation bro!
@@yuvrajkukreja9727 nice bro
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.
Our teacher is back😊
Its time to learn new topics and learn more about robotics
yes bro
Finally you are back 😊. So excited 😁
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.
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 (:
Mai 1 we 14 tak video dekha hu maja aagya mai khud coding karke kai project bna chuka a thanks sir
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.
Finally ,🥰🥰🥰you are back after more than 1 year
So glad to see you back
I learned arduino programming by seeing ur videos
Hello sir finally aap aagaye bhahot khushi hue
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....
Very best explain sir
And thank you ma arduno coding seek gaya 🌏🌏🌏✌✌✌✌😎😎😎😎😎
So glad to see you back, bro!!! 🥳🥳
We missed you a lot 😢😢
Where were you till now?? 🙂
Welcome back sir thanks for continue
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...
Awsm 🔥
बहुत बहुत धन्यवाद भाई 🙏 FOR THIS PLAYLIST
Am so happy you are back 😂😍😍😍😍
Jldi se jldi aage aage or video uplod kro
Please complete this playlist. It is very helpful.
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
Thanks for coming 🙏
program 2 because lights will be blinking always, only if vibration detected light will be off and again on, and it will blink otherwise.
😵😵😵😵are sir you are back we are waiting you for a long time.bahat din ka break leliye 🤣🤣.
Quite good explanation. Learned lot from this video series. Thank you very much.
Wow 🤩🤩 you are back I am waiting for your video.।
Very easy explanation.
Amazing 👏
Thank you sir. We were waiting for your videos eagerly🥲
Brother really your content are very useful for us... Please keep it up... And help us to understand Arduino programming....
Very glad to see you again ❤
superb......easy to understand......u have bright future....keep it up
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.
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
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.
Pls make more videos sir, I love your way of explaining!!
Finally you are back 😁
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
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;
After long time, Please keep it up,
We support you, 🙂🍏🍏🍏
Program 2, bcos else option is not added.
your videos are really interesting
Aap pls btao ki Nodemcu ko Google Assistant se kese control kare?
And thank you so much for coming back 😍
Happy to see you after a long time sir ❤️
Love it love from Technical idEas 🤩❤️
comeback op 🤩
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 ,
It's a good teacher 😊
I think all the program works properly.
I am happy to see you again ❤️
Q2 was wrong because else statement is not give so program was executed without vibration only one second blink LED
GREAT SIR. THANKS FOR THE VIDEOS. VERY HELPFUL.
Sir next video ies Serise ka kab aa raha hai
Bhai aapko wapas dekhkar bahut acha laga
its Program 1 , cause the pin is read only once. If initially val = LOW, the LOOP will never terminte
thank you sir.
Program 2 execute nahi hoga, if use hua hain else nahi use hua hain.
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.
2nd becz led will glow in both cases (digitalWrite(5)==low,digitalWrite(5)==high)
Great ....welcome sir
Sir,your way of explanation always awesome. Sir, when will you upload next video on aurdino programming?
Aa gye sir wapes
Thank yous for you wonderful videos series. And contribution.
Thank you so much sir please continue this series
Finally back I am your fan ❤ sir
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.
Aapka explanation bahut acche Hain 😘
Sir next video kab ayaga ???
Super teching
Thank you sir for such great explainations. I love the videos u make. Eagerly waiting for your new upcoming videos for arduino
Program 1 will not work because we are storing String i.e LOW in 'int' datatype.
Bro, where u go again?🥺🥺
Your videos are very effective and best but it will be better if you also include the values of components like resistors etc
Very nice explanation 👍🏻
Which application use for simulation
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....
sir 15th video kab ayega
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
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 super class 😊😊👌👌🙏🙏
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.
Second is to be correct because in this all necessary commands defined another two programs is wrong because not be declared correctly
Hi bro , you are awesome but you left one topic , the topic is libraries
sir, which online circuit simulator you used ?
program 2 can not execute the task which you gave.
Done ✅
Ur all all video ♥️
Hello,,, 3rd program not work kiuki wahan else condition hae ,,,
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 .
I wanted to join but no joining sign is there why?
Finally back ❤️❤️❤️❤️
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
Hi,
program no.2
isliy kiun k program 2 me sensor HIGH ho ya LOW ho LED HIGH hi rahy gi.
Answer- program 3 is wrong
Reason- program doesn't use input value, it does not blink on vibration
Waiting for arduino series 🥳🥳🥳
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
bhai next video mei ultasonic sensor ke sath led control using while ya do while in tinker cad pe video plz
Program can't be executed # Syntax error ( if without else