Tactile Switch

Tactile Switch

Tactile Switch

June 2, 2017


The two tactile switches are connected to Arduino pins 38 and 39, both active high. This means that the pins are at +5V when the switch is pressed, and at 0V (Ground) otherwise.

evive Tactile Switch Pushbuttons

evive Notes Icon
Note that pins 38, 39 are pulled low, i.e. they will be at 0V (and not floating) when the switch is not pressed.

Programming in Arduino IDE

The test code for the tactile switch is given below:

Programming in Scratch

To get the state of the tactile switch, you can use Tactile Switch () pressed block. This block can be found under the Robots palette in the extension evive Inbuilt tools. The switch whose state you want to check can be chosen from the drop down on this block. It is a Boolean block which returns “TRUE” if the switch is pressed and “False” if the switch is not pressed.


  • Rotating the sprite if the tactile switch 1 is pressed.

Share this Page
Related Tutorials
Featured Projects
Drip Irrigation System
Drip Irrigation System

Introduction Drip irrigation system is a type of micro-irrigation of soil which has the potential to save water and nutrients by allowing water to drip slowly to the roots of

Explore this Project

Leave a Reply

Leave a Reply

Close Menu