Interfacing Key Switch Module with evive

KY-004
About This Tutorial
The tutorial will show how to interface key switch module with evive and display the state of the switch on TFT Display.
Tutorial Info

Components Required

ImageComponentQuantityAvailable in Kit
evive1
USB A-B Cable1

Introduction 

The key Switch module work as switch which is on when button is pressed and off when it’s not , so when the button is not pressed  high signal is received at the digital pin and when the button is pressed the current passes through the switch and a low signal is received at the digital pin ,advantage of using key switch module is ,  it has in built pull up resistor which will pull digital pin high when switch is not pressed.

 

Before proceeding further in to this tutorial go through  evive digital input and Tactile switch tutorials which will give you some idea about digital input and why we use pull-up and pull-down resistors.

Circuit Diagram

  • Connect signal pin of key switch module to pin number 10 of evive
  • Connect middle pin to VCC
  • Connect pin having ‘-‘ sign on board to GND 

 

Code

So when switch of the key switch module  is pressed , digital pin will read low signal and high when switch is not pressed  , also the state of the digital pin will be displayed on TFT display.

Share this Tutorial
Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Projects & Tutorials
evive TFT Display
How to Manipulate evive’s TFT Display
This tutorial discuss evive's TFT Display, the blocks under evive TFT Display extension, and certain example programs to show the usage of different blocks in Scratch mode.
All articles loaded
No more articles to load
Featured Projects
All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart