Week 10 – Musical instrument (Group Project with Isabella)

Concept

Mini Piano

Given that we had to make a musical instrument, we were inspired by a project we found in YouTube of what seemed like a piano. From this, we aimed to make a smaller scale of this project following the requirements for the assignment. The circuit consists of one piezo speaker, a potentiometer as an analog sensor, and a three buttons as digital sensors.

Circuit Illustration

Figure 2 ( Circuit design with code and simulation on “Magnificent Jaiks” by Abdelrahman

Final Results

VIDEO

 

What I’m Proud Of

One aspect of this project I’m particularly proud of is the octave multiplier implementation. Instead of having fixed notes, I used the potentiometer to create a continuous pitch control that multiplies the base frequencies by a factor between 0.5x and 2.0x. This simple line of code:

float octaveMultiplier = map(potValue, 0, 1023, 50, 200) / 100.0;

transforms a basic three-note instrument into something much more expressive and fun to play with. You can play the same melody in different registers, which makes the instrument feel more like a real musical tool rather than just a tech demo.

Challenges and Further Improvements

Despite the complexity of the circuit, Abdelrahman successfully managed to produce a design in Magnificent Jaiks which I managed to follow without any issues. After arranging the jumper wires and all the other pieces, the final result was as we aimed for. One of the biggest challenges we faced was finding a way to divide the work as a result of the distance. Nevertheless, we managed to make a plan after meeting on zoom, and finished our circuit on time. For future projects, one thing I would like to improve on is developing an instrument of this kind with more buttons in order to have a larger version of the mini piano done for this assignment.

Leave a Reply