INFOSTATION CORP
  • Home
  • Gallery
  • Contact
  • About
  • Digital Goods
  • Home
  • Gallery
  • Contact
  • About
  • Digital Goods
Search

Push The Button Using The Key Switch Module

19/6/2019

Comments

 
A key switch module is a push button device that would provide an output HIGH signal when the button has been pressed. The module contains a tactile push button switch and a resistor.
Picture
Connection
Connect the "-" pin to GND of Arduino, the middle pin to 5V of Arduino, ​and the "S" pin to any digital pin of Arduino. In our code example, the "S" pin is connected to digital pin 4 of Arduino.
Module
Arduino
"-"
GND
middle pin
5V
"S"
4

    
Upload the code and test the module. The LED should turned on when the button has been pressed, and turned off when it is not pressed.
Comments

    Noel Anonas

    Author, coder, Innovator
    email:
    ​noelqanonas@gmail.com
    My Resume
    ​Couse Outline for Java

    Picture

    Archives

    July 2019
    June 2019
    May 2019
    June 2017

    Categories

    All

    RSS Feed

    View my profile on LinkedIn
  • Home
  • Gallery
  • Contact
  • About
  • Digital Goods