Idea: self-drawing music instrument

In this project, I want to make a homemade piano. I can play music on paper. The piano is made of pencil, so anyone can DIY their own keys. This is what I think is really interesting

working progress

first, I need different colors of wires, 1M resistor, paper clips, 8B pencil, paper.

preparing

627628200558012195.jpg

de172ef28424663e7f5d4a651c0702dd.mp4

                                          I used eight interfaces to create eight notes 

Arduino Coding

I download the Capacitivesensor from the library.

When hand is touched the sensor, the speaker will produce a tone. I set a threshold for it, so that the sensor won't be too sensitive.

When hand didn't touch on it, no tone is produced.

I didn't use the speakers, I let the computer do the sound of the music

Untitled

Untitled

Untitled

serial port testing