1 of 34

Keycon West 2014

HaaTa - Jacob Alexander

Actuation Sensing

2 of 34

Actuation

To make (a machine or electrical device) move or operate.

- Merriam-Webster

3 of 34

But…isn’t that incredibly vague?

4 of 34

And…isn’t this a talk about keyboards!?

5 of 34

Don’t worry, I’ll make this obvious

6 of 34

Keyboard switches are sensors

Which “sense” actuation

7 of 34

8 of 34

9 of 34

Common Keyboard Switch Types

  • Electrical Contact
    • Cherry MX
    • Most Alps compatible (e.g. Matias)
    • IBM Model M Buckling Spring
    • ...and most switches you can think of

  • Capacitive
    • Topre
    • IBM Model F Buckling Spring
    • IBM Beam Spring
    • Foam’n’Foil (BTC, Keytronic, etc.)

10 of 34

Electrical Contact Switches

  • Pretty much everywhere (Cherry MX)
  • Easy to understand

OFF

ON

11 of 34

Electrical Contact Switches

  • Pros
    • Simple
    • Cheap

  • Cons
    • Requires “debouncing”
    • NKRO requires either diodes or 1xN matrix
    • Susceptible to corrosion

12 of 34

Aside - Debouncing

  • Metal contacts do not make a perfect connection instantaneously
  • Causes the sense line to bounce on and off before the line settles
  • Debouncing is an issue on press and release

13 of 34

Capacitive Switches

  • Common...in touch screens!
  • Understanding requires knowledge of capacitors
  • Senses the distance to a dielectric material
    • e.g. your finger

Capacitor

14 of 34

Capacitive Switches - Capacitive Sense Pads

No dielectric present

Dielectric present

15 of 34

Capacitive Switches

  • Pros
    • No diodes
    • Simple
    • Corrosion resistant
    • Cheap

  • Cons
    • Requires “debouncing”
    • Sensing circuit is moderately complicated (ADC)
    • Susceptible to dirt, humidity and temperature

16 of 34

Exotic Switch Types - Magnetism

  • Hall Effect Sensor
    • Honeywell
    • Tesla (Soviet Bloc Company - Czech Republic)
  • Magnetic Reed
    • Alps
    • Fujitsu
    • Honeywell
    • Many others (Soviet, German, Mexican, etc.)
  • Magnetic Valve
    • ITW
    • ADI

17 of 34

Exotic Switch Types - Hall Effect

Sam/dorkvader is doing a presentation on this

  • Pros
    • Analog
    • Impervious to environment
    • Schmitt triggered - debounced
  • Cons
    • Expensive
    • Requires a moving magnetic field (e.g. magnet)
    • Less effective underwater :P
    • Each switch must have at least 3 pins
      • Vcc,Gnd,Sense

18 of 34

Exotic Switch Types - Magnetic Reed

  • Uses a magnetic field to connect the two reeds
  • Usually filled with a gas to prevent corrosion
    • And often high voltage
  • Patented in 1941 by W. Ellwood
  • Very common in old Calculators

19 of 34

Exotic Switch Types - Magnetic Reed

  • Pros
    • Resists corrosion
    • Impervious to environment
    • Cheap
  • Cons
    • Requires a moving magnetic field (e.g. magnet)
    • Less effective underwater :P
    • Requires debouncing

20 of 34

Exotic Switch Types - Magnetic Valve

21 of 34

Exotic Switch Types - Magnetic Valve

  • Pros
    • Resists corrosion
    • Impervious to environment
    • Cheap
    • Some variants require a magnetic field
  • Cons
    • Some variants require a magnetic field
    • Requires a ferrite
    • Less effective underwater :P
    • Requires debouncing

22 of 34

Exotic Switch Types - Optical

  • Single Photoresistor
    • Burroughs

  • Encoder
    • Burroughs
    • Collimation
    • Many more (but I don’t have them :P)

Ebay pic...

23 of 34

Exotic Switch Types - Optical

  • Encoder vs. Single Photoresistor
    • Similar to 4x4 vs. 1x16 matrix
    • 1x16 and Single Photoresistor is more expensive
  • Photoresistor changes its resistance depending on the light detected
    • Usually of a specific wavelength, often infrared
  • Simple blockers or complex polarizers

24 of 34

Exotic Switch Types - Optical

25 of 34

Exotic Switch Types - Optical

  • Pros
    • Little debouncing
    • Conceptually simple
    • No corrosion
    • Simple sense circuit

  • Cons
    • Requires “debouncing”
    • Susceptible to dust/dirt
    • Light source has a limited life
    • NKRO can be complicated (with encoders)

26 of 34

Exotic Switch Types - Inductive

  • HP
    • Only one I have
  • Very common, but not common in keyboards
  • Often used instead of pressure sensors for cars at stop lights
  • Complicated to understand
    • Requires knowledge of an “inductive short”

27 of 34

Exotic Switch Types - Inductive

  • Detects the proximity of metals
  • Different metals (like dielectrics) have different sense levels
    • Uses a pulsed signal to generate a magnetic field
    • The field is then affected by the nearby metal
    • This affects the voltage output of the inductor pad
      • On the pcb

28 of 34

Exotic Switch Types - Inductive

  • Pros
    • No diodes
    • Cheap
    • Corrosion resistant
    • Impervious to environment
    • Analog

  • Cons
    • Requires “debouncing”
    • Sensing circuit is moderately complicated (ADC)
    • Sensitivity is defined by size/length of each inductor

29 of 34

Exotic Switch Types - Acoustic

  • Yep

30 of 34

Exotic Switch Types - Acoustic

31 of 34

Exotic Switch Types - Acoustic

  • Uses TDOA - Time Difference of Arrival
  • Each key hits a position on an isolated transfer bar
  • Similar to a guitar string, but faster

32 of 34

Exotic Switch Types - Acoustic

33 of 34

Exotic Switch Types - Acoustic

  • Cons

Complicated mechanically

Sound transfer bar must be isolated

Needs two pulses for press/release

NKRO is very tricky

Patented by Smith-Corona in the early 1980s

  • Pros
    • Was cheap in the 80’s?
    • Corrosion resistant
    • Presses don’t need to be debounced
    • Impervious to environment*

34 of 34

That’s it!

Questions?

anything I missed?