This is a very interesting project to make your own touch piano using leaves!!!!!
The video below will give you an overview of this project.
We made a piano using a touch sensor, as well as leaves for piano keys.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
This is a very interesting project to make your own touch piano using leaves!!!!!
The video below will give you an overview of this project.
Projects-master.zipThe code for leaf piano can be found under "LeafPiano" folderx-zip-compressed - 16.59 MB - 04/12/2019 at 02:20 |
|
Step 1: Copy the mp3 files to a SD card, name the folder as corresponding to the instrument's indexes and name the mp3 files same as corresponding to Touch Sensor channel's indexes.
Step 2: Plug SD card to Grove - MP3, connect Grove - MP3 and Touch Sensor to port D2 and I2C port in Base Shield, connect conductive objects to Touch Sensor's channels via crocodile clips.
Step 3: Plug the Base Shield to Seeeduino, then connect Seeeduino to PC via a USB cable.
Touch sensor's library can be found here:
http://wiki.seeedstudio.com/Grove-12_Key_Capacitive_I2C_Touch_Sensor_V2-MPR121/
Grove - MP3 library also can be found in Seeed Wiki, or you can simply include MP3.h in project folder.
Seeeduino's digital pin 2 and 3 act as a software serial, it controls MP3 Grove by using the protol in KT403A datashell. After Grove MP3 and Touch Sensor are initialized, set Touch Sensor's sensitivity and Grove - MP3's volume.
The loop() method keep on checking if Touch Sensor is touched or not, if it is touched, play the corresponding mp3 file in current instrument folder. Current insreument can be changed by input instrument's index via hardware serial.
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates