Arduino Tutorial: The easiest way to connect a button to Arduino

preview_player
Показать описание
In this video, we are going to see the easiest way to connect a button to any Arduino Board. We are taking advantage of the internal pull-up resistor of the digital pins of the Arduino board, and the connection is extremely easy.

--------------------
Code & Parts
--------------------

Want to learn to code?
Рекомендации по теме
Комментарии
Автор

Who could POSSIBLY DISLIKE THIS? This is gold, thank you dude my struggle finally ENDS!

crackmaster
Автор

It is also possible to achieve this by using pinMode([pin#], INPUT_PULLUP);
It eliminates having to set the pin to high.

Ultimatefire
Автор

can i convert this into a switch? for example i want to make the led on when i press and i want to turn it off when i press the button again

alessandroprati
Автор

thanks a lot for all of your tutorials... thank you very much... would love to checkout more uploads from you...

ParthBhat
Автор

Can this be used with timers and interrupts I want to use an Arduino on a car 12v system so when the key is turned in the door this starts a timer to run something in the car for a set time then turn off?
Love your channel I watch it all the time you are a good teacher Bob UK

MrBobWareham
Автор

if you set default buttonstate to 0 and compare it with low, wouldnt it give u true straight away?

Shib
Автор

how to control amplifire volume use push button code detailed plz

Sadaf
Автор

can you attach the push button to any pin?

joelguerrero
visit shbcf.ru