Author Topic: Noob question: why diodes?  (Read 11468 times)

0 Members and 1 Guest are viewing this topic.

Offline blueangel2323

  • Thread Starter
  • Posts: 82
  • Location: Toronto
Noob question: why diodes?
« on: Mon, 21 September 2015, 12:35:39 »
Sorry if this is a stupid question, but what is the purpose of adding diodes at each switch? I know that the function of a diode is to only allow current to travel in one direction, but why is this important when building a mechanical keyboard matrix? And why are diodes NOT required for the membranes of rubber dome keyboards? Can anyone explain this in non-technical terms? Thanks.

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
Re: Noob question: why diodes?
« Reply #1 on: Mon, 21 September 2015, 12:40:10 »
Here is a pretty detailed explanation on the subject by komar007:

http://blog.komar.be/how-to-make-a-keyboard-the-matrix/
KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline blueangel2323

  • Thread Starter
  • Posts: 82
  • Location: Toronto
Re: Noob question: why diodes?
« Reply #2 on: Mon, 21 September 2015, 13:38:53 »
Thanks. The page you linked to was a little too technical for me, but this page answered my question quite clearly: http://deskthority.net/wiki/Rollover,_blocking_and_ghosting

Quote
Keyboards without a PCB solve this problem using blocking: the controller will limit the number of keys pressed concurrently to a safe limit. Since ghosting occurs when three out of four keys are pressed within a square section of the matrix (which typically does not correspond to a group of four physical keys), the safe limit is considered to be two keys: any third key pressed after that is simply not registered, to protect against the third key causing ghosting to occur. Such keyboards are referred to as two-key rollover, or 2KRO. Keyboards with diode protection that can detect an unlimited number of simultaneous keypresses are termed N-key rollover, or NKRO.