How to use a Push Button with Arduino

Thanks for Visiting here

Print Friendly and PDF

 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 .
push button

Wiring Diagram:


 
push button wiring diagram
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


Push button with arduino OUTPUT

written by : Nitish Roy

Thanks for Reading 😊



Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.