Author Topic: Digital Piano keypad design  (Read 1106 times)

0 Members and 1 Guest are viewing this topic.

Offline YaminTopic starter

  • Frequent Contributor
  • **
  • Posts: 309
  • Country: mv
Digital Piano keypad design
« on: February 15, 2019, 02:43:34 pm »
Hi everyone, I was hoping that some one could explain/or point me to some resource which has the explanation on how the keypad of digital pianos work - with all the zener diodes and multiplexing and demultiplexing. I sort of understand how the velocity of the keys are detected. I couldn't find a good schematic either.

Thanks in advance.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11728
  • Country: us
    • Personal site
Re: Digital Piano keypad design
« Reply #1 on: February 15, 2019, 05:52:18 pm »
The first article from google http://blog.komar.be/how-to-make-a-keyboard-the-matrix/

Velocity detection in most keyboards works by having two buttons (sets of contacts) for each key and measuring the time between the first and the second button being pressed.
Alex
 
The following users thanked this post: Yamin

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12594
  • Country: ch
Re: Digital Piano keypad design
« Reply #2 on: February 16, 2019, 10:30:31 pm »
Some expensive digital pianos (like the Yamaha AvantGrand series) use an actual honest-to-goodness piano key mechanism, with hammers and all, except instead of strings, uses fiber-optic photointerrupters (i think it's like 3 or 4 channels per key) to sense the hammer movement. (And then, just as ataradov explained, uses the timing to determine velocity, force, etc.)
 
The following users thanked this post: Yamin

Online Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3843
  • Country: nl
Re: Digital Piano keypad design
« Reply #3 on: February 16, 2019, 11:08:19 pm »
Try to do some research yourself and then come back with more specific questions.
From the text you're typing we can only guess where the holes in your knowledge are.
If you want to pay someone some serious money to design such a keyboard for you that's probably also possible.

Multiplexed Keyboard matrices work just fine without diodes, but when multiple keys are pressed at the same time a diode on each key is one of the easy ways to make sure the comuter does not get confused by all the "shorts" in the keyboard.
As long as only one key is pressed at any thime or it is acceptable to read faulty keys (or ignore keys) when multiple keys are pressed the diodes are not needed. Neither seems acceptable for a piano.
 
The following users thanked this post: Yamin

Offline YaminTopic starter

  • Frequent Contributor
  • **
  • Posts: 309
  • Country: mv
Re: Digital Piano keypad design
« Reply #4 on: February 17, 2019, 07:33:47 pm »
Thanks everyone, most of the articles I find online are  about computer keyboard. I know its similar. I have worked on repairing couple of digital pianos (nothing fancy just some cleaning ;) ). All of them had zener diodes connected to the pads and upto three demulitplexer chip like 74Ls138. Trying to figure out how it works.
 

Offline GopherT

  • Contributor
  • Posts: 24
Re: Digital Piano keypad design
« Reply #5 on: February 17, 2019, 08:48:59 pm »
I've also seen photo-diode/IR emitter pairs detect movement of a small plastic strip on each key - the plastic strip had very finely printed rows of black lines. The black lines interrupt the IR beam and the rate of the interruptions determine the velocity of the key press.
 
The following users thanked this post: tooki, Yamin

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15321
  • Country: fr
Re: Digital Piano keypad design
« Reply #6 on: February 18, 2019, 01:00:49 am »
The lower-end musical keyboards usually are just based on rubber domes (just like the cheap computer keyboards are).
Most often, there are two domes (switches) per key, with a certain spacing along the key's axis, to detect velocity (but this is really all there is to it, the rest is similar to a computer keyboard). And each key is just using one or two springs for its action. Just like NKRO keyboards, multiplexed keyboards require a diode per key, which is the simplest topology overall. But even on cheap-ass musical keyboards, the diodes are really the least of your concern cost-wise, as most of the cost will come from the mechanical parts.

Good piano-like keyboards are a lot more sophisticated as tooki mentioned. They can also detect other parameters than just velocity.

 
The following users thanked this post: Yamin


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf