Thank you for this tutorial. I like to ask you about the types of the parameters used. When You use PinMode(6,INPUT). Could it have been PinMode(s,INPUT) ? Cound s have been declared as a constant instead of an integer? Do digitalRead(s) require, that you use an integer as parameter?
Welcome! Not necessarily int. You can also use byte as datatype. Since the value(6) is small and accommodate within 255(max size of byte). But Const is a keyword. You can use this for pin declarations since the pin number is fixed. Ex: const int s= 6; or const byte s= 6;
Sir what if the push button have four terminals then how will i connect that. In your video it had only two terminals but the push button i got having four terminals
There is no difference in the functionality. 4 pin buttons are used to control two devices together, but you can still use the same in this case. Keeping the button pressed, check which two pins are getting connected used continuity tester(on multimeter)
analogRead and digitalRead are two different functions to be used depending on the type of input device. Here I am using push button which is digital, so digitalRead. In case of analog inputs like potentiometer, sensors you have to use analogRead.
Thank you for this tutorial. I like to ask you about the types of the parameters used. When You use PinMode(6,INPUT). Could it have been PinMode(s,INPUT) ? Cound s have been declared as a constant instead of an integer? Do digitalRead(s) require, that you use an integer as parameter?
Welcome!
Not necessarily int. You can also use byte as datatype. Since the value(6) is small and accommodate within 255(max size of byte).
But Const is a keyword. You can use this for pin declarations since the pin number is fixed.
Ex:
const int s= 6;
or
const byte s= 6;
@@techathome Thank you. 🙂
Sir what if the push button have four terminals then how will i connect that. In your video it had only two terminals but the push button i got having four terminals
There is no difference in the functionality. 4 pin buttons are used to control two devices together, but you can still use the same in this case.
Keeping the button pressed, check which two pins are getting connected used continuity tester(on multimeter)
@@techathome thanku sir😊
The link you have provided for code and circuits is not open for any video.pleaee help
That is compressed file.
Install winRaR software on your computer and extract using it.
If button is pressed 3 times with then..LED ON HOW TO DO HELP ME
You have to keep a counter and monitor the value until 3 count.
Can you send request on mail: deepakhd20@gmail.com
How to make simulink model to make it work instead of coding
I have not tried it.
أهلاً وسهلاً ومرحباً بك-شكراً لك-يتعذر التعليق-لا أعلم .
I thought he was suppose to use analogRead instead of digitalRead since he is using an input device.
analogRead and digitalRead are two different functions to be used depending on the type of input device.
Here I am using push button which is digital, so digitalRead.
In case of analog inputs like potentiometer, sensors you have to use analogRead.
Starting and ending circuit are different
Greatly explained
Thank you!
Can we use 1k resistor?
You can use
Wonderful❤
Thanks 🤗
best tutorials love it .
Thank you
it is not working
Thank u sir
Circuite diagram are not open
Download complete rar file and extract
super
Thanks
it doesn't work!!!!!!!!
Check the connection.