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 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 has touched banana attached to channel 1 of Touch inputs and display the state on TFT Screen.

Programming in PictoBlox (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.

channel touched

Example

  • Playing Piano on the evive buzzer

touch example 2

Share this Documentation
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 Tutorials & Projects
channel touched

channel () touched?

evive Inbuilt tools. evive have 12 capacitive touch inputs, where you can sense if the pin is touched or not. If the specified channel is touched, the block returns “True”, else it returns false.

Touch-Based Piano

Make an eight key DIY piano using capacitive touch inputs. The sound is generated using a piezo buzzer which is in-built (in evive).

All articles loaded
No more articles to load
Featured Projects
All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart