If you find music and musical instrument fascinating and have some knowledge of the technical know-how of Arduino and simple coding, then let’s make a simple piano with limited hardware and with a set of codes. This article which is completely adapted from Simple Piezo Piano Using Arduino by SUG4R’s Blog, aims to make some beautiful music. In order to build a simple piezo piano, he used an Arduino board and a piezo for playing sound. For newbies, unlike other pianos, this one will have only 8 basic notes: ‘c’ ,‘d’, ‘e’, ‘f’, ‘g’, ‘a’, ‘b’, ‘C’.
We can begin this project by assembling an Arduino board and Piezo for sound output. For making those basic notes, we need 8 buttons, one for every note and 8 Resistors for each button along with 10 Cables
The circuit connectivity:
The 8 buttons / notes which is placed in a row for ‘c’ , ‘d’, ‘e’, ‘f’, ‘g’, ‘a’, ‘b’, ‘C’ is fairly visible in the circuit connectivity placed above. They are organized in a way that when you press any of the button, you will hear the sound within frequency creation from the piezo.
The codes of Arduino reads the signals from the buttons and it creates a frequency to produce sound with the piezo. The codes are really simple and can be found on SUG4R’s Blog. Once you are done with the codes, you will get the frequencies for the notes in numbers. Writing those value of electricity into a piezo helps producing all those notes. For better understanding, you can visit the author’s site. All the best.
Filed Under: Reviews