News for hackers. Stuff that matters.
Re:Linear Variable Differential Transformer (LVDT) Basics by kragen on Friday October 11, 2024 @04:07PM (#41813164)
I've been thinking about using the magnetic and mechanical design of an LVDT in a different application: a high-reliability keyboard with a four-dimensional scan matrix to reduce the number of electrical lines required.

For a conventional keyswitch-matrix multiplexed keyboard with 81 keys, you need 18 GPIO lines, 9 row lines and 9 column lines. Even with Charlieplexing, I believe you need 14 GPIO lines to get to 81 keys. (½(14·13) = 91.) Keyswitch matrices are also mechanically and chemically delicate; a spill of solvent, battery acid, or sometimes even saltwater can damage the keyswitches, and they do not work underwater unless the keyboard is hermetically sealed. Such seals have to be flexible and are regularly flexed during usage, so they usually fail after only a few years. Some keyswitch contacts were often made of metal, which suffers oxidation over time resulting in keyswitch failure; many current keyswitches instead use contacts made of graphite-filled rubber, which doesn't form a solid oxide surface layer. (Keyswitches also generally require debouncing, though I suspect this is less of a problem with the graphite-filled rubber contacts.)

Capacitive keys avoid contact bounce and oxidation, but tend to suffer even worse from submersion because of the high electrical permittivity of water. They are also more sensitive to electrical noise.

By contrast, a differential-transformer key mechanism would permit an 81-key keyboard with only 12 GPIOs, high EMI immunity, and extreme mechanical robustness.

The four-dimensional multiplexing works as follows. There is a 3×3 primary-winding matrix and a 3×3 differential secondary-winding matrix. Each of the 9 primary-winding-matrix cells has the primary windings of 9 different keys in it, each of which belongs to a different cell of the secondary-winding matrix. The primary windings can be in series, in parallel, or a combination of the two.

...

Re:Linear Variable Differential Transformer (LVDT) Basics by HeyLaughingBoy on Friday October 11, 2024 @05:05PM (#41813737)
In any practical application, the number of GPIOs simply wouldn't be an issue. Transistors are as cheap as sand.

What would you foresee as the application for a keyboard like this? It sounds like Hall-Effect switches would work just as well and cost significantly less.

Re:Linear Variable Differential Transformer (LVDT) Basics by kragen on Friday October 11, 2024 @05:21PM (#41813864)
You may be right.
Re:Linear Variable Differential Transformer (LVDT) Basics by kragen on Friday October 11, 2024 @08:49PM (#41815406)
Thinking about it a bit more, if it were true that "in any practical application, the number of GPIOs simply wouldn't be an issue. Transistors are as cheap as sand," nobody would multiplex keyboards or LEDs at all. And it's true that it's feasible at this point to put a driver chip on every LED; the WS2812 is a common chip that you can hook up into long daisy-chains into which you shift a bunch of digital binary data to tell them how to drive one RGB LED each. And you can do the same thing with keys on a keyboard, putting one microcontroller on every key and connecting them all to a common bus or a token-ring-like bucket brigade.

But people still do multiplex lots of LED matrices and keyboard matrices.