PICTURE OF PROJECT HERE (IDLE)
This project was done by Chelsea Manzano, James Toplis, and Migo Mantes. The purpose of the project is to create an air piano. First of all, an air piano is like a piano that will generate sounds, the keys of an octave, when a finger or an object is placed on top of a light sensor. It is similar to a normal piano, but their difference is that a normal piano needs to be pressed for it to create a sound while in the air piano, one can just put his or her finger above the light sensor, without touching it, and it will create a sound. Since the air piano has 4 light sensors, the 8 sound clips, do(low)-re-mi-fa-so-la-ti-do(high), can be played by either hovering a finger above a single sensor or hovering multiple fingers above multiple sensors at the same time.Combinations can be used (for example, block the 1st and 3rd sensor) and it will create a sound in the range of do-re-mi-fa-so-la-ti. It will play the "so" sound.
EXPLANATION:
PICTURE OF PROJECT HERE (BEING USED)
First of all, when someone hovers his or her finger on top on a sensor/s, without touching it, the computer where it is connected will create a sound. Each sound, do-re-mi-fa-so-la-ti, has a sound file, so there are 8 sound files inside the project folder. For example, a person's finger was sensed by the first sensor, it will play a specific sound and that sound is the "do" sound. Another example is that when light sensors 1 and 3 are blocked, it will play the sound of "so".
It was programmed in arduino and processing that there are specific combinations that play specific sounds. This was done using binary. The light sensors will produce an output and an example output would be 100 (this is just an example). If the sensor gets blocked, or cannot detect light, the output number would decrease, for example, it would be less than 30. Also, single digit will be used for it to determine whether the sensor is being blocked or not. Thus, the project is programmed in a way that for example, the determining digit is 30, when a light sensor/s output/s is/are greater than 30, it will have a value of 0. When a light sensor/s output/s is/are less than 30, it will have a value of 1. If its value is 0, it means that it is not being blocked, or nothing is being detected except light. If its value is 1, an object is being detected because the light is being blocked, thus, less light is being sensed by the sensor.
For the sound file to be loaded in arduino, the example LoadAFile was used in processing and from this code, it was modified so that 8 sound files can be loaded by the project. To know which sound file should be loaded, it is going to be determined by its binary values. Each sensor has a binary digit and if all sensors are not being blocked, its value will be 0000. If the first sensor is blocked, it will be 1000, and it will play the sound of "do(low)" because it is programmed that every sound has its specific binary value. Here are the binary values of each sound:
Idle - 0000
Do(low) - 1000
Re - 0100
Mi - 0010
Fa - 0001
So - 1010
La - 0101
Ti - 1100
Do (high) - 0011
Whenever a combination above is used, it will play a sound in the range of do(low)-re-mi-fa-so-la-ti-do, and with this, the project has turned into an air piano that can play a single octave. In conclusion, whenever a light sensor/s get blocked, it will check if it has satisfied a binary value combination above, and if it satisfies one, it will load a sound file and that will be played. It is as if one is pressing a key in a piano to create a sound, but in the air piano, one must just hover his or her finger above the sensors and check if it will play a sound if it satisfies a binary combination above.
VIDEO:
*This is a sample video of how the project works (papalitan ko pa yung video pag na-videohan na)
*(DESCRIPTION OF WHAT'S HAPPENING)
CREDITS:
We would like to thank the following person/s for helping us with our project:
- Sir Toto (for helping us with our code)
- Sir Justin (for helping us during physics lab)
- Physics Department (for letting us borrow things needed for our project like, wires, bread board, etc.)
- EJ Magdaluyo (for helping us with connecting arduino and processing)
PICTURE (CHELSEA, TOPLIS, MIGO)
Thank you!