boylesg
Advanced Member level 4
- Joined
- Jul 15, 2012
- Messages
- 1,023
- Helped
- 5
- Reputation
- 10
- Reaction score
- 6
- Trophy points
- 1,318
- Location
- Epping, Victoria, Australia
- Activity points
- 11,697
I have printed piano keyboard which I will stick on to a sheet of MBF.
Two nails will be hammered through each key to create electrical contacts to which I can connect wires to below.
Each of these will have a one transistor 'touch' amplifer and the output of these will feed into one or more contacts, on 'Keyboard' header in the circuit below.
The resulting pattern of voltages on the arduino anaolg pins will be read as a binary number between 1 and 64 which will in turn be mapped to the frequency and tone corresponding to that piano key.
If I can control the voltage levels well enough I could potentially have two sets of 64 keys = 128 possible piano keys. E.G. One set of 64 keys that read in as a 5V logic level on the analog pins and another set of 64 keys that read in as a 9V level on the analog pins.
The fun part will be in the arduino programing, sorting out simultaneous 'presses' of more than one piano key at a time which would result in a 'hybrid' signal on the analog pins.
I also want to try and do the analog pin reading via interrupt rather polling, but I am not yet all that clear on how you setup and handle interrupts in an arduino sketch yet.
Any comments or suggestions for improvement?
Two nails will be hammered through each key to create electrical contacts to which I can connect wires to below.
Each of these will have a one transistor 'touch' amplifer and the output of these will feed into one or more contacts, on 'Keyboard' header in the circuit below.
The resulting pattern of voltages on the arduino anaolg pins will be read as a binary number between 1 and 64 which will in turn be mapped to the frequency and tone corresponding to that piano key.
If I can control the voltage levels well enough I could potentially have two sets of 64 keys = 128 possible piano keys. E.G. One set of 64 keys that read in as a 5V logic level on the analog pins and another set of 64 keys that read in as a 9V level on the analog pins.
The fun part will be in the arduino programing, sorting out simultaneous 'presses' of more than one piano key at a time which would result in a 'hybrid' signal on the analog pins.
I also want to try and do the analog pin reading via interrupt rather polling, but I am not yet all that clear on how you setup and handle interrupts in an arduino sketch yet.
Any comments or suggestions for improvement?