Thanks for Visiting here

How to use a Push Button with Arduino
hello Guys in this post we will study the Push button. in this post learn how to use a push button with Arduino use and will see after press the push button what output give push button on Arduino.
![]() |
How to use a push button with arduino |
Push Button :
push button is a device to send high signle when it press and low signal when it not pressed .
Arduino Code:
int pusb=13;
int value;
void setup()
{
Serial.begin(9600);
pinMode(pusb,INPUT);
}
void loop()
{
value=digitalRead(pusb);
Serial.println(value);
delay(500);
}
OUTPUT :
0
0
1
0
0
Thanks for comment