Velocity Sensitive Cardboard Keyboard

by i95sarmiento in Circuits > Arduino

10273 Views, 31 Favorites, 0 Comments

Velocity Sensitive Cardboard Keyboard

piano cover.jpg
Velocity Sensitive Cardboard Keyboard
piano2.gif

Hello, in this tutorial I wanted to take advantage of the only piece of cardboard that I had in my whole house, because of the quarantine I couldn't get more, but I don't need it! With a small piece we can do interesting experiments.
This time I bring you a Velocity Sensitive Cardboard Keyboard that works with proximity IR sensors. Depending on whether we play a piano key faster or slower, the musical note will sound more or less hard, respectively.

Materials

IMG_20200418_171631.jpg
IMG_20200417_105018.jpg

For Hardware

  • Cardboard sheet, only 55 cm x 25 cm needed
  • Scissors or scalpel
  • Hot silicone gun
  • Gray, white, black paint (optional)
  • Brush (optional)
  • Aluminum rod 5 mm in diameter and 16.3 cm long
  • Instructables sticker (optional)
  • Pencil, pen or sharpie
  • Ruler
  • Rubber strips or some elastic material
  • Sewing machine
  • Tweezers

For Circuit

  • Arduino, I used Arduino Mega 2560
  • 5 10k Ohm resistors
  • 1 1k Ohm resistor
  • 1 100 Ohm resistor
  • Cable
  • 1 buzzer
  • 5 reflective IR sensors, I used QRE1113
  • Universal pcb
  • Battery (optional)
  • Soldering iron
  • Tin
  • Caiman-caiman cable

Cut Cardboard Pieces

IMG_20200418_185703.jpg
IMG_20200418_185703a.jpg

Cut all the cardboard pieces with the dimensions shown in the image, I did it using a ruler and scalpel because I did not have access to a laser cutter, however, I also attached the vector file so that you can easily cut it by laser machine.

Make the 5 Piano Keys

IMG_20200418_193047.jpg
IMG_20200418_193800.jpg
IMG_20200418_193818.jpg
IMG_20200418_194131.jpg

Join the pieces of each piano key using hot silicone, as shown in the images. Repeat the process 5 times.

Make the Piano Base

IMG_20200418_200318.jpg
IMG_20200418_200333.jpg
IMG_20200418_200355.jpg

Join the pieces of the piano base using hot silicone, as shown in the pictures. The base is made up of the drawer and the cover.

Paint Everything With Your Favorite Colors

IMG_20200418_195243.jpg
IMG_20200418_195606.jpg
IMG_20200418_214541.jpg
IMG_20200418_215857.jpg

I decided to paint the piano keys white, as they traditionally are, and the piano base gray to perfectly match the Instructables logo.

Locate the Rubber Straps

IMG_20200418_221716.jpg
IMG_20200418_221801.jpg
IMG_20200418_221819.jpg
IMG_20200418_221947.jpg
IMG_20200418_222016.jpg
IMG_20200418_222334.jpg

The rubber strips allow the piano keys to return to their original position, locate them as I show in the images.

Paste the Sticker (decorate)

IMG_20200418_223056.jpg
IMG_20200418_223038.jpg

At the end of this stage, you should come up with 3 main parts, the cover, the base and the keys of your piano.

Construction of the Circuit

cardboard piano circuit.jpg
cardboard piano schematic.jpg

The circuit is designed with Arduino, you can build it as you see fit, the following steps are tips describing the way I did it.

Cut Universal PCB and Solder

IMG_20200419_093106.jpg
IMG_20200419_094017.jpg
IMG_20200419_094028.jpg
IMG_20200419_101325.jpg
IMG_20200419_101334.jpg
IMG_20200419_102445.jpg
IMG_20200419_102453.jpg

The sensors that I used are SMD, therefore I need a PCB to solder them on, cut 2 x 3 hole rectangles from universal PCB. And add tin to the 4 holes at the ends to be able to solder the IR sensor (see images).

Solder Cables and Resistors

IMG_20200419_105428.jpg
IMG_20200419_112236.jpg
IMG_20200419_115243.jpg
IMG_20200419_115254.jpg
IMG_20200419_115657.jpg
IMG_20200419_110017.jpg

To avoid further complications, I decided to solder the resistors directly to each other so that I could insert them all into the Arduino. Finally, I soldered all the cables guiding me with the fritzing design.

Remember to check your circuit connections with a multimeter.

Insert the Keys Into the Aluminum Rod

IMG_20200419_152044.jpg
IMG_20200419_152050.jpg
IMG_20200419_152417.jpg
IMG_20200419_152426.jpg
IMG_20200419_152437.jpg

Insert the 5 piano keys into the aluminum rod and the rubber strips into the corresponding holes.

Sew together the rubber strips to the base of the piano.

Upload the Program to the Arduino

Connect the Arduino of your piano to the PC and program it with the attached file.


You need to download the "ToneAC" library from https://bitbucket.org/teckel12/arduino-toneac/wik...

Connect Battery

IMG_20200419_165519.jpg
IMG_20200419_165507.jpg

Finally, connect a power bank to play piano in the place you prefer!

Result

IMG_20200419_152829.jpg
IMG_20200419_153549.jpg
IMG_20200419_165612.jpg

I hope that you all enjoyed this Instructable! Thanks for reading and watching.
Iván.