Micro Electric Piano

by chrismtian in Circuits > Arduino

2968 Views, 3 Favorites, 0 Comments

Micro Electric Piano

IMG-20191220-WA0021 (1).jpg

I was a mentor for MakerBay and want to document here the project from my student:

The goal is to building and designing an functioning electric piano with the microcontroller Arduino.

Ever since I started learning piano about 8 years ago... my friend started to make music using his computer, I started started to become a little bit more interested in making some music of my own. However when I come up with some chords or melodies, I am unable to play and record it properly on Logic Pro (in the software instrument where I can then edit it afterwards); as such, I end up trying to play it on my piano. Except, if I could have a portable electric piano, I would be able to jot my ideas down on the go, and be able to record it easily ...

This task is highly challenging as it requires the creator to be pretty well versed in electronics, be creative, know coding ... Some more specifics are having the ability to design a functioning piano, create an electrical circuit, and create the product using “final product” type materials.

Supplies

  • 3D printer
  • with filament in two colors (classic is black and white)
  • breadboard (size depends on the amount of keys you want to have)
  • buttons for arduino (amount is the same as the amount of keys)
  • arduino microcontroller
  • 2-AAA battery holder
  • speaker
  • wire
  • sandpaper
  • wood
  • drill

Research:

Design the Instrument

IMG-20191219-WA0008 (1).jpg
IMG-20191219-WA0009.jpg
IMG-20191219-WA0010.jpg
Design.JPG

Make some initial sketches. They can be done on the computer (with Autodesk Fusion 360 a 3D CAD, CAM, and CAE software) or/and also with pen and paper. The size of the instrument depends on the amount of keys you want to have. If you need to be ready on time you should decide at this point how many functions you want to have because every function will need time. (for example: recording your music, power from battery or power from cable, an external Audio Jack to connect all kind of speaker or just one fixed speaker, just white or also black keys)

Coding

Multiple buttons Interrupts

The Tone library allows to play tones on a speaker (obviously^^).

The biggest effort was to make playing 3 tones together possible.

Building the Circuit

WhatsApp Image 2019-12-20 at 20.46.48 (2).jpg

3D Printing

20191216_164412 (1).jpg
20191216_164417 (1).jpg
20191216_164414 (1).jpg

You can use a software like Automaker from Robox to design the parts and send the command to the printer. We printed 3 parts. One for the black buttons and two for the white (or here grey).

Testing

20191219_153135 (1).jpg

Test 3D printed parts with your circuitry before...

Measuring/Woodwork

WhatsApp Image 2019-12-20 at 20.28.06 (2).jpeg

and

Assembling

Playing
IMG-20191220-WA0023 (1).jpg

Your Micro Electric Piano is working!