Capacitive Touch

Capacitive Touch

Capacitive Touch

June 2, 2017

Introduction

evive has 12 touch inputs, which are interfaced via the MPR121 chip using SPI interface. The touch library is easy-to-use, and you can just plug a wire from the outputs to any conducting surface, and get a touch-sensitive surface!

evive Capacitive Touch Pins
 

Programming in Arduino IDE

To use touch inputs in Arduino IDE, you have to evive Library

Example

This code detects if someone have touched banana attached to channel 1 of Touch inputs and display the state on TFT Screen.

Programming in Scratch

To get the state of touch pins in Scratch, you have to use Channel () touched block. Channel () touched block can be found under the Robots palette in the extension evive Inbuilt tools. If the specified channel is touched, the block returns “True”, else it returns false.

Example

  • Playing Piano on evive buzzer

Arduino Mode Scratch touch input example

Share this Page
Facebook
Twitter
Google+
Pinterest
Reddit
Print
Related Tutorials
Featured Projects

Leave a Reply

Leave a Reply

Close Menu
×

Cart