I am looking to incorporate in my project using arduino with 5 buttons to pulse the associated relay That means that each switch will create a short single output pulse no matter how long the button is pressed Your help will be greatly appreciated Many thanks Erik Hoffman London, UK
You have written in code that when switch output is high then led output will be high but in video when you press button led turns off means it is getting output low🤔
Ya Jo ap wires lga rhay ha is ky blkl smjh nhy lg rhy koncy wire ks number k sath lgany he. College lock down ky wja se bnd he kuch chezo ky smjh nhy lg rhy
Can you tell me how I can write the code so when I press the push button the led turns ON and stays ON and when I press it again it turns OFF and stays OFF untill I press it again to turn ON. Thank you !!!
if(digitalRead(BUTTON) == HIGH) { digitalWrite(LED,HIGH); } if(digitalRead(BUTTON) == HIGH && digitalRead(LED) == HIGH) { digitalWrite(LED, LOW); } try this one you might blow up something be careful
I am looking to incorporate in my project using arduino with 5 buttons to pulse the associated relay
That means that each switch will create a short single output pulse no matter how long the button is pressed
Your help will be greatly appreciated
Many thanks
Erik Hoffman
London, UK
Yes, you can do with the use of Delay() function .. between on and off timings of your output.
I've searched many vid. and like this but only your tutorial worked
Thank you very MUCH IT WORKS!!!!
You have written in code that when switch output is high then led output will be high but in video when you press button led turns off means it is getting output low🤔
he did it wrong when wiring .. switch was pulled to ground
Wheres the code you were going to upload later??
Where is the code?
Thank you, Bhai ya bta de k led light or black color ky wire, white color k bord me jha mrzy dal sktay ha
Super 👍 Thanks
Ya Jo ap wires lga rhay ha is ky blkl smjh nhy lg rhy koncy wire ks number k sath lgany he.
College lock down ky wja se bnd he kuch chezo ky smjh nhy lg rhy
bro,
you have enabled access to ur personal data too !!
you have to put a resistor in there or it will burn out over time
the codes were not readable
something is wrong with code didn't work
@Shyam Sundar
we can operate this in VSCode using Platform I/O?
Yes
Great video sir can you do you a video on 5 push buttons?
Of course you can do it ... Just follow same steps on each pushbutton
it did not work why???
Can you tell me how I can write the code so when I press the push button the led turns ON and stays ON and when I press it again it turns OFF and stays OFF untill I press it again to turn ON.
Thank you !!!
if(digitalRead(BUTTON) == HIGH)
{
digitalWrite(LED,HIGH);
}
if(digitalRead(BUTTON) == HIGH && digitalRead(LED) == HIGH)
{
digitalWrite(LED, LOW);
}
try this one
you might blow up something be careful
forum.arduino.cc/index.php?topic=200933.0
this is what you need
You will find a lot of info on that matter
sorry for the late response
Int state = 0 ; //initialize as global variable or in setup
If(digitalRead(buttonpin))
{
State! = state;
}
digitalWrite(ledpin, state) ;
can you give me the code dude?
God, where is pull down resistor? Stop teaching people this madness.
Arduino has very low output current that's why I didn't add it.
@@shyamsundarsaravanan7398 some time you'll get error signal
Code please
Very simple
thats not blinking!
Plz give me link arduinobord plz
give me the cod e
Code!
Bro i will subsceibe you if you will make more videos
Plz sir plz
What about blinking using Millis? People who use delays in the program are stupid
Very simple and basic blaahhhhhhhhhh