Paper Piano With Arduino




Introduction: Paper Piano With Arduino

About: I build fun and awesome projects with Arduino, Raspberry Pi, ESP8266, ESP32 based boards.

This is a simple project using an Arduino, a drawn keyboard using lead pencil, a paper, and a speaker.

Step 1: Materials

- Male-to-male jumper wires :

- Breadboard :

- Arduino Uno board :

- Resistor 1M ohm :

- Speaker :

- Pencil

- A4 paper

- Paper clip

Step 2: Drawing Your Keyboard

The sensors are created by drawing on a paper with a pencil. In my project I only use 8 keys. Each key piano is a sensor that the sensor and your body form a capacitor. The more its capacitance, the more charge it can store. The capacitance of this sensor depends on how close your hand with the sensor. If you want to get some nice, thick lines on the paper.

Step 3: Putting It All Together

- Lets put resistors on breadboard.

- Connect your jumper wires to drawing via paperclip.

- Each one end of resistor requires two jumper wires.Connect your each jumper wire from paper piano to each one end of resistor and then connect wires to digital pin 3-10.

- The other end of each resistor is connected to pin 2.

- Connect a speaker to the Arduino with one wire to the digital pin 11 and the other one to the ground of the Arduino.

Step 4: Code

Before you start playing your paper piano, you will need Capasitive sensor library if it is not already installed. This can be downloaded from here.

When you want to add a new library into your Arduino IDE. Go to the directory where you have downloaded the ZIP file of the library. Extract the ZIP file with all its folder structure in a temporary folder, then select the main folder, that should have the library name. Copy it in the “libraries” folder inside your sketchbook.

Step 5: Let’s Play

You can make tone sounds if you tap keys of paper piano. If the keys are not responsive,you may need to change capacitiveSensor() value for your drawing or you may need re-trace over your drawing again. I recommend you thick lines on paper when you draw piano keys on paper.

Be the First to Share


    • Big and Small Contest

      Big and Small Contest
    • Make It Bridge

      Make It Bridge
    • Game Design: Student Design Challenge

      Game Design: Student Design Challenge



    Question 1 year ago on Step 1

    Hello! I put this mostly together. Set up the first few keys correctly (I believe). Drew the keyboard. Decided to connect one key to test before finishing the rest. Doesn't work. Can't figure out my issue. Made the key very dark. Firmly paper-clipped a jumper to it. Nothing. Is there anyway to test it without the pencil drawing? I am using a piezo instead of a speaker (we have the starter kits in a class I'm teaching and so we only have those instead of the speaker). Could that be why no sound is coming out?


    3 years ago

    code is not working please help me?


    Reply 2 years ago

    same here :(


    Question 3 years ago

    Does it work without resistances?