Ah, just checked out yer HHKB matrix mods - sweet stuff. Looks like the HHKB pro is doing pretty much the same thing as the F, except using the pair of a TP1684 and a trusty 74HC4051 instead of the proprietary 8273565 that the 8 sense line F's used (there is also a four sense line version used by some IBM keyboards - not all strictly Model F).
So - a Teensy(++) has a tolerable mux on the ADC lines, but, internally, just one adc - a binary sequential comparator. If you set the hi-power to the adc bit on the teensy, then you can get the comparator running closer to the main-clock on the thing - though I lose some accuracy when I bring it above a MHz. I'm not at all clear from the datasheets what the max rate actually is, it can be set up to half the main clock-rate, though this is suggested for running at lower rates than 16MHz. Since it loses accuracy on the comp at such rates, (and thus precision on the adc), it's kinda academic how fast one can push it without breaking it.
![Smiley :)](https://cdn.geekhack.org/Smileys/solosmileys/smiley.gif)
I'm still working out the right combination of sample-rates, strobes, offset voltages, actuation thresholds, etc... that will be happy on such hardware. I have a few op-amps lying around - if I can restrict it to readily available ones, then I will be cool with using one, but I kinda want a method that is viable to open-source without requiring folks to buy a stack of weird components. right now I'm getting by with just a mess of resistors and just the teensy for an IC - it would be nice to get this to work, but it is fiddly.
Roughly how long is the strobe and how long is the relaxation before the next strobe on the hhkb pro? Also how long after the start of the strobe does the capsense take its test? On my F, the strobe is about 30us, with the relaxation about 60us. IBM does this 8 times per column, though, the '122' key boards have 16 columns. (127 actual key locations and 1 internal test location
![Smiley :)](https://cdn.geekhack.org/Smileys/solosmileys/smiley.gif)
there is a bit of a gap between strobe groups, so the end result is closer to 15ms rather than the 12 that might be possible if they were packed.
So yeah, I'm around - feel free to say if yer on irc, and for the love of $%&*& someone send me a pm next time Hasu posts a cute hax! I don't always remember to come poke around here on the forum enough.
![Tongue :P](https://cdn.geekhack.org/Smileys/solosmileys/tongue.gif)
until,
dfj