so, i have an 88 weighted keyboard arranged in 8 x 11 array and i'm having trouble connecting it.
there are lot's of other project that seem to use shift registers o mux's, what i want to make is an easy to integrate, read and most importantly of all understandable code. there are lot's of people looking to modify their pianos and it's a really nice project. issue is every piano is arranged diferently.
ideally you would define your number of keys, rows and columns, and the code would do the rest.
so let's get at it
here is how the array is connected to the arduino:
int O1 = 52;
int O2 = 50;
int O3 = 48;
int O4 = 46;
int O5 = 44;
int O6 = 42;
int O7 = 40;
int O8 = 38;
int R1a = 36;
int R1b = 34;
int R2a = 32;
int R2b = 30;
int R3a = 28;
int R3b = 26;
int R4a = 24;
int R4b = 25;
int R5a = 27;
int R5b = 29;
int R6a = 31;
int R6b = 33;
int R7a = 35;
int R7b = 37;
int R8a = 39;
int R8b = 41;
int R9a = 43;
int R9b = 45;
int R10a = 47;
int R10b = 49;
int R11a = 51;
int R11b = 53;
so, basically what should happen is
- write O1 HIGH
- read each Ra and Rb
- if for example R3a is HIGH we initialize a timer that counts untill R3b is HIGH
- write O2 HIGH
and so on untill you get back to O8 HIGH and repeat the cycle.
opinions? ideas? why do kids love the taste of cinnamon toast crunch?