Your Shopping Cart is empty.

  • Push Button v2.0
    • i i
    • images/l/Geeetech_PushButtonv2.0_1.jpg images/l/Geeetech_PushButtonv2.0_1.jpg
    • images/l/Geeetech_PushButtonv2.0_2.jpg images/l/Geeetech_PushButtonv2.0_2.jpg
Push Button v2.0


Shipping Weight:20g

Free Shipping!


Vote for specials.

0 votes



Simply plug this Push Button Digital Sensor to the Sensor Shield; projects can get physical interactivity by using data from digital Read ‘High’ or ‘Low’. A "high" signal is given when the button is pressed.

Building interactive work is as easy as piling bricks, just plug it to our Arduino Sensor Shield with a buckled cable, and make it looks professional and neat.
int buttonPin = 6; // input pin of pushbutton
int val = 0; // variable for reading the pin status
void setup() {
pinMode(ledPin, OUTPUT); // declare LED as output
pinMode(buttonPin, INPUT); // declare pushbutton as input
void loop(){
val = digitalRead(buttonPin); // read input value
if (val == HIGH) { // check if the input is HIGH (button released)
digitalWrite(ledPin, LOW); // turn LED OFF
} else {
digitalWrite(ledPin, HIGH); // turn LED ON




int ledPin = 13; // pin for the LED

login or register to add your words.