3 Note Piano on Arduino with S-Functions
Version 1.1.0.0 (455 KB) by
Techsource Technical Team
Use of Arduino Capacitive Sensing Library in Simulink using S-Functions
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 (2026). 3 Note Piano on Arduino with S-Functions (https://uk.mathworks.com/matlabcentral/fileexchange/51980-3-note-piano-on-arduino-with-s-functions), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Simulink > Simulink Supported Hardware >
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Audio and Video Data > Piano sounds >
Find more on Simulink Supported Hardware in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Device Drivers
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
