Abstract The portable piano is the ideal best friend for anyone who loves playing the piano yet can't afford to pay the huge prices. This keyboard is highly portable and thus reduces bulk for people who travel often yet don't want to leave their piano behind.
The glove keyboard sorts that issue providing portability and efficiency. The piano can be played on any surface and doubles up as a glove to keep you warm. Each fingertip contains a pressure sensor that sends an analog signal upon exertion of pressure. The signal is then converted into frequency data and transmitted to the speaker which plays the corresponding sound.
Future The glove piano's future is to be able to play all the notes in the piano using the 88 keys. In this way we cannot be limited to the key C that we used for each finger.
Initial 2 min video https://www.youtube.com/watch?v=78uQL-zSjIE&feature=youtu.be
Code
include
SoftwareSerial BTSerial(2, 3); // 2- TX, 3 - RX char currnote = 0; int finger1=A1; int finger2=A2; int finger3=A3; int finger4=A4; int finger5=A5;
void setup(void) { BTSerial.begin(9600); Serial.begin(9600);
pinMode(12, OUTPUT); pinMode(finger1, INPUT); pinMode(finger2, INPUT); pinMode(finger3, INPUT); pinMode(finger4, INPUT); pinMode(finger5, INPUT);
}
void loop(void) { if (analogRead(finger1) < 10){ currnote = 'C'; BTSerial.write(currnote); Serial.println(currnote); //delay(200); } if (analogRead(finger2) < 10){ currnote = 'D'; BTSerial.write(currnote); Serial.println(currnote); //delay(200); } if (analogRead(finger3) < 10){ currnote = 'E'; BTSerial.write(currnote); Serial.println(currnote); //delay(200); } if (analogRead(finger4) < 10){ currnote = 'F'; BTSerial.write(currnote); Serial.println(currnote); //delay(200); } if (analogRead(finger5) < 10){ currnote = 'G'; BTSerial.write(currnote); Serial.println(currnote);
}
delay(200); }
//BTSerial.flush();
Log in or sign up for Devpost to join the conversation.