File Exchange

image thumbnail

3 Note Piano on Arduino with S-Functions

version (455 KB) by Techsource Technical Team
Use of Arduino Capacitive Sensing Library in Simulink using S-Functions


Updated 13 Nov 2015

View License

The 3-Note Piano makes use of the capacitive sensing library to generate a tone when a sensing plate is touched. A sensing plate, which is a material with insulating properties, is connected to a high value resistor enables the Arduino to sense the electrical capacitance of the human body.
In Simulink, C-code is wrapped in an S-Function.

Cite As

Techsource Technical Team (2020). 3 Note Piano on Arduino with S-Functions (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)


Transformée en Z


Updated model to show display outputs in External Mode.
Updated documentation to describe use of renc2cpp function.

Added photo.

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Device Drivers