Author Topic: Alternative Controller for HHKB  (Read 166190 times)

0 Members and 1 Guest are viewing this topic.

Online Atredl

  • Posts: 190
  • Location: SoCal
Re: Alternative Controller for HHKB
« Reply #500 on: Sat, 14 January 2017, 23:44:06 »
I think so, but it depends on what you want with the function.
Firmware supports 'dual role key' that allows you to assign two different actions on a key in general.

Sent from my Nexus 5X

My idea was to have it act as a left hand accessible function button since the hhkb doesn't have an extra bottom below the left shift key. My goal would be for it to simply mirror what the right function key does. Is that doable?

Offline hasu

  • Thread Starter
  • Posts: 2170
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #501 on: Sun, 15 January 2017, 21:58:11 »
I think so, but it depends on what you want with the function.
Firmware supports 'dual role key' that allows you to assign two different actions on a key in general.

Sent from my Nexus 5X

My idea was to have it act as a left hand accessible function button since the hhkb doesn't have an extra bottom below the left shift key. My goal would be for it to simply mirror what the right function key does. Is that doable?

Yes, it is possible. You can use this 'spacefn' mapping as starting point.
https://goo.gl/zHcyu0
⚠ My Engrish is broken.  TMK firmware  ⌨ HHKB Alt controller  ⌨Protocol Converters
Alps64

Offline kentt

  • Posts: 5
Re: Alternative Controller for HHKB
« Reply #502 on: Mon, 30 January 2017, 14:43:16 »
I was thinking of trading up from my hhkb pro 2 to the khkb pro BT jp.  Is there a custom controller for that. I have one for my pro 2.
« Last Edit: Tue, 31 January 2017, 18:16:28 by kentt »

Offline dr-slump

  • Posts: 20
Re: Alternative Controller for HHKB
« Reply #503 on: Wed, 01 February 2017, 14:38:16 »
I was thinking of trading up from my hhkb pro 2 to the khkb pro BT jp.  Is there a custom controller for that. I have one for my pro 2.

I'm on the fence for a Pro JP model too & would like to add a Hasu controller if that's even possible
Waiting for Miami Dolch . . .

Looking for: Titainium Spacebar 6.25

       

Offline osxoep

  • Posts: 309
Re: Alternative Controller for HHKB
« Reply #504 on: Wed, 01 February 2017, 17:32:52 »
I was thinking of trading up from my hhkb pro 2 to the khkb pro BT jp.  Is there a custom controller for that. I have one for my pro 2.

I'm on the fence for a Pro JP model too & would like to add a Hasu controller if that's even possible

hasu controller + pro jp works

not sure if there's a bluetooth version yet
HHKB Pro JP with hasu's controller (waiting for MX sliders)

Offline dr-slump

  • Posts: 20
Re: Alternative Controller for HHKB
« Reply #505 on: Thu, 02 February 2017, 06:14:33 »
I was thinking of trading up from my hhkb pro 2 to the khkb pro BT jp.  Is there a custom controller for that. I have one for my pro 2.

I'm on the fence for a Pro JP model too & would like to add a Hasu controller if that's even possible

hasu controller + pro jp works

not sure if there's a bluetooth version yet



Thanks for the info !  Now I only have to source some Novatouch stems  :eek:
Waiting for Miami Dolch . . .

Looking for: Titainium Spacebar 6.25

       

Offline mmdango

  • Posts: 28
  • Location: California, US
Re: Alternative Controller for HHKB
« Reply #506 on: Thu, 09 February 2017, 13:42:50 »
Hi guys!

Quote
System control is not supported
        It can't send Power, Wake and Sleep keys.
Not sure if this above quote is relevant, but...

I currently have the DIP switch 6 on for my HHKB which allows me to wake up my mac using the HHKB. Will the BT controller affect that functionality? If it's relevant, I am on Sierra OSx 10.12.2.

Offline Tactile

  • Posts: 655
  • Location: Portland, OR
Re: Alternative Controller for HHKB
« Reply #507 on: Fri, 10 February 2017, 21:49:20 »
I've had someone ask where I got the USB plugs for the empty holes left in the rear of my HHKB after installing Hasu's controller (which doth rock, BTW. Thanks, Hasu!).

I just did a search on Ebay for "USB port (cover,plug)" and found these:
160126-0

They are a little undersize because they are designed for hardware inside the holes, not just an empty hole. I just wrapped some Kapton tape around the body to add a little dimension and they're now a nice press fit. I used Kapton tape because it's very thin, allowing very fine "adjustment" by layering, and also because it has an adhesive which won't weep out over time.

...and it looks like this:
160128-1

Offline robotmaxtron

  • Posts: 89
  • Location: Austin,TX
Re: Alternative Controller for HHKB
« Reply #508 on: Mon, 13 February 2017, 10:08:45 »
I've had someone ask where I got the USB plugs for the empty holes left in the rear of my HHKB after installing Hasu's controller (which doth rock, BTW. Thanks, Hasu!).

I just did a search on Ebay for "USB port (cover,plug)" and found these:
(Attachment Link)

They are a little undersize because they are designed for hardware inside the holes, not just an empty hole. I just wrapped some Kapton tape around the body to add a little dimension and they're now a nice press fit. I used Kapton tape because it's very thin, allowing very fine "adjustment" by layering, and also because it has an adhesive which won't weep out over time.

...and it looks like this:
(Attachment Link)

Just as another point of reference, I opt'd for a slightly more custom approach. Using a design previously uploaded in this thread, saved in github https://github.com/robotmaxtron/HHKB-usb-dust-covers I got some printed for about $10 I think at Shapeways.


Offline DRAZAH

  • Posts: 26
  • Hype-S
Re: Alternative Controller for HHKB
« Reply #509 on: Thu, 23 February 2017, 10:26:15 »
Anyway to get a USB port on the Hasu controller like the stock HHKB? I know they aren't much power but I use mine for my G900 wireless receiver dongle, I was about to get a HASU controller but was unaware that I would lose the 2 USB ports, I don't need both but would need 1 because its somewhat of a game change for me.

Offline alh84001

  • Posts: 270
  • Location: EU-HR-ZG
Re: Alternative Controller for HHKB
« Reply #510 on: Fri, 03 March 2017, 17:41:41 »
Time for a couple of stupid questions:
1) if sticking to USB, I could also use tmk usb->usb converter, with a difference of being limited to 6KRO. Any other notable differences?
2) is Pro BT keyboard fully unsupported in a sense that there are electrical/connection differences, or is it unsupported in a sense that built-in BT won't work, and current controller board can't be physically installed into the case? In other words, if you take out the PCB, connect it to the controller, would it work? (lack of (proper) programmability is such a bummer with that board)

Offline hasu

  • Thread Starter
  • Posts: 2170
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #511 on: Fri, 03 March 2017, 18:42:51 »
Time for a couple of stupid questions:
1) if sticking to USB, I could also use tmk usb->usb converter, with a difference of being limited to 6KRO. Any other notable differences?
2) is Pro BT keyboard fully unsupported in a sense that there are electrical/connection differences, or is it unsupported in a sense that built-in BT won't work, and current controller board can't be physically installed into the case? In other words, if you take out the PCB, connect it to the controller, would it work? (lack of (proper) programmability is such a bummer with that board)

1) And you cannot remap 'Fn' key with USB-USB converter.
2) ProBT is completely diffferent keyboard physically and electrically.
⚠ My Engrish is broken.  TMK firmware  ⌨ HHKB Alt controller  ⌨Protocol Converters
Alps64

Offline alh84001

  • Posts: 270
  • Location: EU-HR-ZG
Re: Alternative Controller for HHKB
« Reply #512 on: Fri, 03 March 2017, 19:04:52 »
1) You mean you can't move Fn to another key, or you can't map anything else to Fn key? You can still use it, right?
2) Even the PCB? Interesting.

Thanks!

Offline hasu

  • Thread Starter
  • Posts: 2170
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #513 on: Fri, 03 March 2017, 19:15:06 »
1) You mean you can't move Fn to another key, or you can't map anything else to Fn key? You can still use it, right?
2) Even the PCB? Interesting.

Thanks!

1) the latter. You can define layer change action on any key except for key with legend 'Fn'.
2) Some pics of Pro BT.
https://imgur.com/a/YfcYt
⚠ My Engrish is broken.  TMK firmware  ⌨ HHKB Alt controller  ⌨Protocol Converters
Alps64

Offline devoi

  • Posts: 17
  • Location: MA
Re: Alternative Controller for HHKB
« Reply #514 on: Tue, 07 March 2017, 19:31:17 »
Would increasing the matrix refresh rate be a possibility? I'd assume it depends on how the capacitor charges over time and whether or not the controller itself is the thing that dictates it, so I'm not entirely sure.

Offline hasu

  • Thread Starter
  • Posts: 2170
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #515 on: Tue, 07 March 2017, 21:18:28 »
Would increasing the matrix refresh rate be a possibility? I'd assume it depends on how the capacitor charges over time and whether or not the controller itself is the thing that dictates it, so I'm not entirely sure.

Interesting subject.
First, my Alt controller emulates scan method/timing of original Topre controller so both takes almost same time to scan matrix. And Pro2(and Pro1) scans 8x8 matrix for 15ms while JP scans 16x8 for 15ms, you will know that JP scans twice faster actually there. Pro2 and JP uses same sensing chip TP1684, Pro2 will be able to scan at same rate as JP, namely for 7.5ms.

You can see all of scanning code in this one file. Difference is just following lines, you can use 30us instead of 75us for Pro2 and push it on more.
The delay time is needed to wait until settling signal of switch capacitance before sensing next switch.
https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/matrix.c
Code: [Select]
#ifdef HHKB_JP
            // Looks like JP needs faster scan due to its twice larger matrix
            // or it can drop keys in fast key typing
            _delay_us(30);
#else
            _delay_us(75);
#endif

This is logic analyzer chart when scanning of FC660C which has 16x8 matrix and essentially same as JP. From this pic it takes around 110us to check a switch.


And this is actual waveform from switch sensor, it seems to take 10us to settle signal after sensing. Cyan line is identical to LVC138A_~EN(A0) in pic above and yellow indicates voltage of signal sensed by TP1684.


And some pics can be found here.
https://imgur.com/a/jat2a
⚠ My Engrish is broken.  TMK firmware  ⌨ HHKB Alt controller  ⌨Protocol Converters
Alps64

Offline devoi

  • Posts: 17
  • Location: MA
Re: Alternative Controller for HHKB
« Reply #516 on: Fri, 10 March 2017, 18:34:02 »
After looking at a few reviews of the official BT model, are there any limitations (in the keyboard itself, less the controller) keeping away the possibility of a new revision that has a better handling of battery power? I believe LeandreN's review claimed about 3 months off of two AA batteries.

Offline hasu

  • Thread Starter
  • Posts: 2170
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #517 on: Fri, 10 March 2017, 18:38:57 »
Yeah its great. Long battery life. Get it. No woe.

Btw did you try tweaking scan code? I'm curious what you find.

Sent from my Nexus 5X

⚠ My Engrish is broken.  TMK firmware  ⌨ HHKB Alt controller  ⌨Protocol Converters
Alps64

Offline devoi

  • Posts: 17
  • Location: MA
Re: Alternative Controller for HHKB
« Reply #518 on: Fri, 10 March 2017, 21:23:27 »
As far as I can tell, changing the scan rate was a decent success. I haven't had any issues since I changed the 75us delay down to the 30us that the JP uses.

Is there currently an idea of an updated controller using a more modern version of bluetooth, and would that come with higher power efficiency? I get about 2-3 days of use off of one charge (using a 2000mah battery), which isn't too bad, but doesn't compare too well to the months of charge that the PFU BT model gets with just two AA batteries.

Offline Daphen

  • Posts: 12
Re: Alternative Controller for HHKB
« Reply #519 on: Sat, 11 March 2017, 17:32:39 »
Hey, I just got a USB alt controller and have installed it, the keyboard doesn't close 100%, is that normal? (It's basically fine and I can live with it, it's just cracking when pushing on the back plate.)

The real question I came here to ask is how do I set up a program that actually flashes the hex files onto the keyboard?
Am I stupid? I can't seem to find anything other than some posts about "FLIP" which only seems to be available on Windows.
The only programmable keyboard I've had was the White Fox and the instructions for that was so straight forward that I managed without a hassle.
I'm a web developer and am comfortable with the command line but all the directions I've found are vague and I don't understand them, so if there's a clear guide for the USB version of the controller for Mac, it would be great if someone could give me a link or something.

Sorry if this is super noobish, I just didn't know where to turn.

Offline hasu

  • Thread Starter
  • Posts: 2170
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #520 on: Sat, 11 March 2017, 18:17:40 »
Hey, I just got a USB alt controller and have installed it, the keyboard doesn't close 100%, is that normal? (It's basically fine and I can live with it, it's just cracking when pushing on the back plate.)

The real question I came here to ask is how do I set up a program that actually flashes the hex files onto the keyboard?
Am I stupid? I can't seem to find anything other than some posts about "FLIP" which only seems to be available on Windows.
The only programmable keyboard I've had was the White Fox and the instructions for that was so straight forward that I managed without a hassle.
I'm a web developer and am comfortable with the command line but all the directions I've found are vague and I don't understand them, so if there's a clear guide for the USB version of the controller for Mac, it would be great if someone could give me a link or something.

Sorry if this is super noobish, I just didn't know where to turn.

Which model is your hhkb? In case of Pro2 or JP you have to put ferrite core on cables right place to close tidily. In any case it should close.

Check MANUAL section in first post of this thread and wiki for flashing TMK HHKB Alt controller.
https://geekhack.org/index.php?topic=71517.0
https://github.com/tmk/tmk_keyboard/wiki#flash-firmware
⚠ My Engrish is broken.  TMK firmware  ⌨ HHKB Alt controller  ⌨Protocol Converters
Alps64

Offline Daphen

  • Posts: 12
Re: Alternative Controller for HHKB
« Reply #521 on: Sat, 11 March 2017, 18:34:27 »
Hey, I just got a USB alt controller and have installed it, the keyboard doesn't close 100%, is that normal? (It's basically fine and I can live with it, it's just cracking when pushing on the back plate.)

The real question I came here to ask is how do I set up a program that actually flashes the hex files onto the keyboard?
Am I stupid? I can't seem to find anything other than some posts about "FLIP" which only seems to be available on Windows.
The only programmable keyboard I've had was the White Fox and the instructions for that was so straight forward that I managed without a hassle.
I'm a web developer and am comfortable with the command line but all the directions I've found are vague and I don't understand them, so if there's a clear guide for the USB version of the controller for Mac, it would be great if someone could give me a link or something.

Sorry if this is super noobish, I just didn't know where to turn.

Which model is your hhkb? In case of Pro2 or JP you have to put ferrite core on cables right place to close tidily. In any case it should close.

Check MANUAL section in first post of this thread and wiki for flashing TMK HHKB Alt controller.
https://geekhack.org/index.php?topic=71517.0
https://github.com/tmk/tmk_keyboard/wiki#flash-firmware

I have the Pro 2 Type-S. I'll have to dive deeper tomorrow.. Thanks.

Offline Daphen

  • Posts: 12
Re: Alternative Controller for HHKB
« Reply #522 on: Sun, 12 March 2017, 06:13:03 »
Hey, I just got a USB alt controller and have installed it, the keyboard doesn't close 100%, is that normal? (It's basically fine and I can live with it, it's just cracking when pushing on the back plate.)

The real question I came here to ask is how do I set up a program that actually flashes the hex files onto the keyboard?
Am I stupid? I can't seem to find anything other than some posts about "FLIP" which only seems to be available on Windows.
The only programmable keyboard I've had was the White Fox and the instructions for that was so straight forward that I managed without a hassle.
I'm a web developer and am comfortable with the command line but all the directions I've found are vague and I don't understand them, so if there's a clear guide for the USB version of the controller for Mac, it would be great if someone could give me a link or something.

Sorry if this is super noobish, I just didn't know where to turn.

Which model is your hhkb? In case of Pro2 or JP you have to put ferrite core on cables right place to close tidily. In any case it should close.

Check MANUAL section in first post of this thread and wiki for flashing TMK HHKB Alt controller.
https://geekhack.org/index.php?topic=71517.0
https://github.com/tmk/tmk_keyboard/wiki#flash-firmware

So I actually just have to install dfu with homebrew (done already) and then run these commands:
dfu-programmer atmega32u4 erase --force
dfu-programmer atmega32u4 flash <layout I made with the TMK layout editor.hex>
dfu-programmer atmega32u4 reset

In my terminal with the keyboard connected, followed by pressing the red button, am I missing something?
Do I have to place the hexfile in a specific folder? Do I have to stand in the same folder that my hexfile is placed in?
I don't even have to stand in some specific folder or download some HHKB specific files from TMK's Github?

Also, is it normal that my alt controller board is green? All the pictures I've seen of it show the card being blue.
« Last Edit: Sun, 12 March 2017, 16:48:50 by Daphen »

Offline hasu

  • Thread Starter
  • Posts: 2170
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #523 on: Mon, 13 March 2017, 19:14:29 »
Hey, I just got a USB alt controller and have installed it, the keyboard doesn't close 100%, is that normal? (It's basically fine and I can live with it, it's just cracking when pushing on the back plate.)

The real question I came here to ask is how do I set up a program that actually flashes the hex files onto the keyboard?
Am I stupid? I can't seem to find anything other than some posts about "FLIP" which only seems to be available on Windows.
The only programmable keyboard I've had was the White Fox and the instructions for that was so straight forward that I managed without a hassle.
I'm a web developer and am comfortable with the command line but all the directions I've found are vague and I don't understand them, so if there's a clear guide for the USB version of the controller for Mac, it would be great if someone could give me a link or something.

Sorry if this is super noobish, I just didn't know where to turn.

Which model is your hhkb? In case of Pro2 or JP you have to put ferrite core on cables right place to close tidily. In any case it should close.

Check MANUAL section in first post of this thread and wiki for flashing TMK HHKB Alt controller.
https://geekhack.org/index.php?topic=71517.0
https://github.com/tmk/tmk_keyboard/wiki#flash-firmware

So I actually just have to install dfu with homebrew (done already) and then run these commands:
dfu-programmer atmega32u4 erase --force
dfu-programmer atmega32u4 flash <layout I made with the TMK layout editor.hex>
dfu-programmer atmega32u4 reset

In my terminal with the keyboard connected, followed by pressing the red button, am I missing something?
Do I have to place the hexfile in a specific folder? Do I have to stand in the same folder that my hexfile is placed in?
I don't even have to stand in some specific folder or download some HHKB specific files from TMK's Github?

Also, is it normal that my alt controller board is green? All the pictures I've seen of it show the card being blue.

Note that you have to press red button on your controller to enter flash(DFU bootloader) mode before running dfu-programmer commands. Of course, you have to give proper path of hex file on the command as other command line tools require. And you may need to add 'sudo' to the commands as the document says.

Yes, new revision of TMK Alt controller pcb is green, but it may be changed in future.
⚠ My Engrish is broken.  TMK firmware  ⌨ HHKB Alt controller  ⌨Protocol Converters
Alps64

Offline Daphen

  • Posts: 12
Re: Alternative Controller for HHKB
« Reply #524 on: Mon, 13 March 2017, 19:19:43 »
Hey, I just got a USB alt controller and have installed it, the keyboard doesn't close 100%, is that normal? (It's basically fine and I can live with it, it's just cracking when pushing on the back plate.)

The real question I came here to ask is how do I set up a program that actually flashes the hex files onto the keyboard?
Am I stupid? I can't seem to find anything other than some posts about "FLIP" which only seems to be available on Windows.
The only programmable keyboard I've had was the White Fox and the instructions for that was so straight forward that I managed without a hassle.
I'm a web developer and am comfortable with the command line but all the directions I've found are vague and I don't understand them, so if there's a clear guide for the USB version of the controller for Mac, it would be great if someone could give me a link or something.

Sorry if this is super noobish, I just didn't know where to turn.

Which model is your hhkb? In case of Pro2 or JP you have to put ferrite core on cables right place to close tidily. In any case it should close.

Check MANUAL section in first post of this thread and wiki for flashing TMK HHKB Alt controller.
https://geekhack.org/index.php?topic=71517.0
https://github.com/tmk/tmk_keyboard/wiki#flash-firmware

So I actually just have to install dfu with homebrew (done already) and then run these commands:
dfu-programmer atmega32u4 erase --force
dfu-programmer atmega32u4 flash <layout I made with the TMK layout editor.hex>
dfu-programmer atmega32u4 reset

In my terminal with the keyboard connected, followed by pressing the red button, am I missing something?
Do I have to place the hexfile in a specific folder? Do I have to stand in the same folder that my hexfile is placed in?
I don't even have to stand in some specific folder or download some HHKB specific files from TMK's Github?

Also, is it normal that my alt controller board is green? All the pictures I've seen of it show the card being blue.

Note that you have to press red button on your controller to enter flash(DFU bootloader) mode before running dfu-programmer commands. Of course, you have to give proper path of hex file on the command as other command line tools require. And you may need to add 'sudo' to the commands as the document says.

Yes, new revision of TMK Alt controller pcb is green, but it may be changed in future.

Awesome. So press button, run commands, point at correct hex file path, done?