Digital Push Button - Green

This large button gives your Arduino project the first touch of the physical world. Simply plug into the IO expansion board for quick and easy plug and play. Use the button to trigger another sensor, build a gamepad, or anything your imagination can think of!

Quick Spec

  • Supply Voltage: 3.3 - 5V
  • Indicator LED on board
  • Easy 'Plug-n-Play'
  • Large button keypad and high-quality first-class hat
  • Can acomplish very interesting and interactive work
  • Interface: Digital
  • Size: 22 x 30mm
  • Net Weight: 14g

Wiring Diagram

DFR0029-Diagram

Sample Code



/*
  # Description:
  # When you push the digital button, the Led 13 on the board will turn off. Otherwise,the led turns on.
*/
int ledPin = 13;                // choose the pin for the LED
int inputPin = 2;               // Connect sensor to input pin 3


void setup() {
  pinMode(ledPin, OUTPUT);      // declare LED as output
  pinMode(inputPin, INPUT);     // declare pushbutton as input
}

void loop(){
  int val = digitalRead(inputPin);  // read input value
  if (val == HIGH) {            // check if the input is HIGH
    digitalWrite(ledPin, LOW);  // turn LED OFF
  } else {
    digitalWrite(ledPin, HIGH); // turn LED ON
  }
}



Resources

Shipping List

  • 1 x Digital Push Button - Green
  • 1 x Digital Cable


Digital Push Button - Green

  • Brand: DF Robot
  • Product Code: DFR0029-G
  • Stock

    Warehouse Stock Status Location
    Centurion In Stock UR115
    Stellenbosch In Stock A0159

    We ship free of charge between branches to complete your order.

  • R33.00 (Inc Tax: R37.95)


Related Products

Digital Push Button - Green and Yellow

Digital Push Button - Green and Yellow

Digital Push Button - Green and Yellow Our redesigned digital push buttons come with LED, immersion gold surface, and bright colored hats. A captital D at left corner indicates that it is a digital..

Centurion
Stellenbosch

R55.00 (Inc Tax: R63.25)

Digital Push Button - Red, Blue, Green, Yellow

Digital Push Button - Red, Blue, Green, Yellow

Digital Push Button - Red, Blue, Green, Yellow Press to release pleasure! Our redesigned digital push buttons come with LED, immersion gold surface, and bright colored hats. A capital D at left corne..

Centurion
Stellenbosch

R125.00 (Inc Tax: R143.75)

Digital Push Button - Red and Blue

Digital Push Button - Red and Blue

Digital Push Button - Red and Blue Our redesigned digital push buttons come with LED, immersion gold surface, and bright colored hats. A captital D on the left corner indicates that it is a digital..

Centurion
Stellenbosch

R38.00 (Inc Tax: R43.70)

Tags: digital, push, button, green, 3.3v, 5v