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

blandname and 3 Guests are viewing this topic.

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #550 on: Wed, 14 June 2017, 21:58:10 »
hid_listen should displays like below. You will see 'Listenning:' when you get connected to your keyboard and will see 'debug: on' when you press the combo. Did you see those output on hid_listen?

Also refer this FAQ entry. https://github.com/tmk/tmk_keyboard/wiki/FAQ#debug-console

Code: [Select]
Device disconnected.
Waiting for new device:.......
Listening:

debug: on
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline sodiumjoe

  • Posts: 29
  • Location: Portland, OR
Re: Alternative Controller for HHKB
« Reply #551 on: Fri, 16 June 2017, 01:06:37 »
It's not a big deal, since I got everything working now, but this is what I see when I add a `dprint()` and try to debug:

Code: [Select]
Waiting for device:
Listening:

debug: on
^[^[^[
debug: off

keyboard: on
keyboard: 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 02 00 00 00 00 00 00 00 0^[0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

debug: off

debug: on
^R

debug: off
^[^[jlij^C

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #552 on: Fri, 16 June 2017, 01:14:54 »
It's not a big deal, since I got everything working now, but this is what I see when I add a `dprint()` and try to debug:

Code: [Select]
Waiting for device:
Listening:

debug: on
^[^[^[
debug: off

keyboard: on
keyboard: 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 02 00 00 00 00 00 00 00 0^[0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
keyboard: 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

debug: off

debug: on
^R

debug: off
^[^[jlij^C

Looks like it works well so you can use dprintf() in your code when you need to debug some later :D
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline sodiumjoe

  • Posts: 29
  • Location: Portland, OR
Re: Alternative Controller for HHKB
« Reply #553 on: Fri, 16 June 2017, 12:49:32 »
But that's *with* debug statements in the code, on keys that I was pressing. Where are the debug messages supposed to show up?

Offline sinegav

  • Posts: 9
  • Location: Norway
  • love keybaords
Re: Alternative Controller for HHKB
« Reply #554 on: Sat, 17 June 2017, 18:03:04 »
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.

Show Image


Hey thank you so much for this!!  ;D I was always wondering what I would use to cover these holes with.
It was a bit hard to find them actually, so if anyone is looking here is a link for it: http://www.ebay.com/itm/10Pcs-Plastic-USB-A-Male-Anti-Dust-Plug-Stopper-Cap-Cover-Black-Clear-SH-E4Y8-/252874131909?hash=item3ae07909c5:g:jAQAAOSwN6JY9NCv

Visit the Typing Test and try!

Offline JunkFace

  • Posts: 75
Re: Alternative Controller for HHKB
« Reply #555 on: Tue, 27 June 2017, 10:50:55 »
I was just wondering if I could restore the function (FN) key to the HHKB after a Hasu Bluetooth controller has been installed.  I don't see any place to set this up in the firmware, only keys to change the layers.  I've gotten so used to the HHKB's layout not having the FN key is a real pain.  I'd be fine with the layers if it worked like a switch but if its going to change the whole keyboard layout that won't do for multi-key commands like ctrl+alt+del or alt+printscreen, ctrl+f5 etc.  Anyone have any insight on this?  I'd really like to avoid remapping several layers, making new macros or doing any kind of software level keybindings.

Please let me know!

Offline Atredl

  • Posts: 384
  • Location: SoCal
Re: Alternative Controller for HHKB
« Reply #556 on: Tue, 27 June 2017, 11:30:53 »
I was just wondering if I could restore the function (FN) key to the HHKB after a Hasu Bluetooth controller has been installed.  I don't see any place to set this up in the firmware, only keys to change the layers.  I've gotten so used to the HHKB's layout not having the FN key is a real pain.  I'd be fine with the layers if it worked like a switch but if its going to change the whole keyboard layout that won't do for multi-key commands like ctrl+alt+del or alt+printscreen, ctrl+f5 etc.  Anyone have any insight on this?  I'd really like to avoid remapping several layers, making new macros or doing any kind of software level keybindings.

Please let me know!
Go to the "Layer switching and etc" tab, there you'll find layer switch(momentary) options. You can use L1 and it will act exactly like the original FN key on the stock HHKB as long as you have all your functions on Layer 1.

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #557 on: Wed, 28 June 2017, 03:31:11 »
I was just wondering if I could restore the function (FN) key to the HHKB after a Hasu Bluetooth controller has been installed.  I don't see any place to set this up in the firmware, only keys to change the layers.  I've gotten so used to the HHKB's layout not having the FN key is a real pain.  I'd be fine with the layers if it worked like a switch but if its going to change the whole keyboard layout that won't do for multi-key commands like ctrl+alt+del or alt+printscreen, ctrl+f5 etc.  Anyone have any insight on this?  I'd really like to avoid remapping several layers, making new macros or doing any kind of software level keybindings.

Please let me know!
it comes with  FN key similar to stock controller by default, you won't need worry. use keymap editor if you want to change keymap.
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Online clee290

  • Posts: 32
Re: Alternative Controller for HHKB
« Reply #558 on: Sun, 02 July 2017, 18:10:45 »
Hi everyone!

First I just wanted to thank Hasu for this awesome controller! I've had mine for about a month now and it has been working great!

Right now, the firmware that I've been using was created using the website in the OP (http://www.tmk-kbd.com/tmk_keyboard/editor/). I was just wondering, can I create a QMK firmware and flash that to my HHKB too?

Thanks!

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #559 on: Tue, 04 July 2017, 03:04:07 »
Hi everyone!

First I just wanted to thank Hasu for this awesome controller! I've had mine for about a month now and it has been working great!

Right now, the firmware that I've been using was created using the website in the OP (http://www.tmk-kbd.com/tmk_keyboard/editor/). I was just wondering, can I create a QMK firmware and flash that to my HHKB too?

Thanks!

Hi,
Simple answer is no, you can't use QMK firmware with TMK keyboard editor in general. Technically it is still possible with tweaks but I guess its explanation is not what you want.

If you want to use QMK firmware you better build it from source code, they have decent documents and community support. It doesn't seems QMK has support for  bluetooth controller, though.
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Online clee290

  • Posts: 32
Re: Alternative Controller for HHKB
« Reply #560 on: Tue, 04 July 2017, 10:05:57 »
Hi everyone!

First I just wanted to thank Hasu for this awesome controller! I've had mine for about a month now and it has been working great!

Right now, the firmware that I've been using was created using the website in the OP (http://www.tmk-kbd.com/tmk_keyboard/editor/). I was just wondering, can I create a QMK firmware and flash that to my HHKB too?

Thanks!

Hi,
Simple answer is no, you can't use QMK firmware with TMK keyboard editor in general. Technically it is still possible with tweaks but I guess its explanation is not what you want.

If you want to use QMK firmware you better build it from source code, they have decent documents and community support. It doesn't seems QMK has support for  bluetooth controller, though.

Thank you :) 

Edit: Also, once I build the .hex file, would I just need to flash it to my keyboard like I had done previously? Or would I need to do something differently to prepare it for a different type of firmware?
« Last Edit: Tue, 04 July 2017, 13:30:14 by clee290 »

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #561 on: Tue, 04 July 2017, 20:10:30 »
Edit: Also, once I build the .hex file, would I just need to flash it to my keyboard like I had done previously? Or would I need to do something differently to prepare it for a different type of firmware?

Same method should work, there are no diffrence there.
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Online clee290

  • Posts: 32
Re: Alternative Controller for HHKB
« Reply #562 on: Tue, 04 July 2017, 23:05:44 »
Edit: Also, once I build the .hex file, would I just need to flash it to my keyboard like I had done previously? Or would I need to do something differently to prepare it for a different type of firmware?

Same method should work, there are no diffrence there.

Awesome, thanks Hasu!

Offline ttezz

  • Posts: 1
Re: Alternative Controller for HHKB
« Reply #563 on: Wed, 05 July 2017, 05:43:59 »
Hi, I need some help with the QI wireless charge modification  in this page by [manisteinn]

https://imgur.com/a/9yds3

I know nothing about the hardware / eletronic stuff.. :-[
how is it possible to connect the relay to the pcb ?
I have checked the hw design.. It seems like PPTC, JP0, JP1.. ?
but what pin should I connect with exactly?

and what is the black small parts located right to the jst battery power pin..?
He mentioned only the relay.. but nothing about it...




Offline kenmai9

  • Unicornforce
  • * Exquisite Elder
  • Posts: 2087
  • Location: Orange County, CA
  • Skrrr
Re: Alternative Controller for HHKB
« Reply #564 on: Wed, 05 July 2017, 12:46:41 »
@Hasu or anyone,

Is it possible to add macros to your tmk editor? Or is it possible to use EasyAVR?

http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb

Thanks

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #565 on: Wed, 05 July 2017, 13:33:22 »
no unfortunately at this time. to use macro you have to edit code and compile with command line tools.
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline kenmai9

  • Unicornforce
  • * Exquisite Elder
  • Posts: 2087
  • Location: Orange County, CA
  • Skrrr
Re: Alternative Controller for HHKB
« Reply #566 on: Wed, 05 July 2017, 14:09:14 »
no unfortunately at this time. to use macro you have to edit code and compile with command line tools.

Alrighty thanks! I guess I'll start figuring that out. Cheers

Offline online

  • Posts: 21
Re: Alternative Controller for HHKB
« Reply #567 on: Sun, 23 July 2017, 08:02:18 »
I'm thinking to get a JP type-s, and noted drilling is required for Hasu BT.
Can I use USB mode without battery installed? Will the controller fits without drilling holes?
I will most likely use it wired but in case I want to try Bluetooth later.

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #568 on: Sun, 23 July 2017, 17:53:16 »
I'm thinking to get a JP type-s, and noted drilling is required for Hasu BT.
Can I use USB mode without battery installed? Will the controller fits without drilling holes?
I will most likely use it wired but in case I want to try Bluetooth later.

no, you need holes to install the TMK bluetooth controller into HHKB JP.
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline online

  • Posts: 21
Re: Alternative Controller for HHKB
« Reply #569 on: Mon, 24 July 2017, 12:30:49 »
I'm thinking to get a JP type-s, and noted drilling is required for Hasu BT.
Can I use USB mode without battery installed? Will the controller fits without drilling holes?
I will most likely use it wired but in case I want to try Bluetooth later.

no, you need holes to install the TMK bluetooth controller into HHKB JP.
Thanks for your reply.
oh well, I guess I will settle on the wired one.

Offline 0100010

  • Posts: 1068
  • Location: DFW, TX, US
  • Not Sure
Re: Alternative Controller for HHKB
« Reply #570 on: Fri, 18 August 2017, 11:52:33 »
Dumb question // but if one uses the TMK keymap editor to create the hex file // do you only also need FLIP to program the controller?  Or is there still a need to compile firmware first?
  Quoting me causes a posting error that you need to ignore.

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #571 on: Fri, 18 August 2017, 17:10:11 »
Dumb question // but if one uses the TMK keymap editor to create the hex file // do you only also need FLIP to program the controller?  Or is there still a need to compile firmware first?

yes, you don't have to compile if you use keymap editor, from which you can download precomiled firmware. you need just a flash tool(FLIP/dfu-programmer) to program your controller.
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline 0100010

  • Posts: 1068
  • Location: DFW, TX, US
  • Not Sure
Re: Alternative Controller for HHKB
« Reply #572 on: Fri, 18 August 2017, 21:32:52 »
Nice - makes it easy.

One more question - the 4 through holes near the USB port, can they be used as break out points for the USB power / data lines (in yellow below)?





If they are, was thinking of using a vertical PCB mount female USB A port, wired to those points, in one of the same locations that the original controller has its USB hub ports (to use a USB A port for the HHKB instead of the mini USB port).


  Quoting me causes a posting error that you need to ignore.

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #573 on: Fri, 18 August 2017, 22:26:21 »
Nice - makes it easy.

One more question - the 4 through holes near the USB port, can they be used as break out points for the USB power / data lines (in yellow below)?

Show Image




If they are, was thinking of using a vertical PCB mount female USB A port, wired to those points, in one of the same locations that the original controller has its USB hub ports (to use a USB A port for the HHKB instead of the mini USB port).

Show Image



Hmm, I'm not sure what your intention is.
yes, the 4 pins breakouts USB lines(VUSB, D-, D+ and GND). You will want to use Type-B connector, not Type-A in most cases, to connect to host PC with normal A-B cable.

Just to be sure, my TMK Alt Controller has no USB hub function.
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline 0100010

  • Posts: 1068
  • Location: DFW, TX, US
  • Not Sure
Re: Alternative Controller for HHKB
« Reply #574 on: Fri, 18 August 2017, 23:01:41 »
Yes, normally type B port would be best, just not sure there is room.  Know a type A port would fit, since the original controller had a pair there previously.

Goal would be to have a more robust port than USB mini, for connecting the HHKB to the PC.
  Quoting me causes a posting error that you need to ignore.

Offline tinyprawn

  • Posts: 73
Re: Alternative Controller for HHKB
« Reply #575 on: Sun, 20 August 2017, 22:40:43 »
Hasu,

I have an already-modified HHKB that has the programmable controller but it doesn't have the bluetooth components on it. From what I've seen, it looks like the footprint is there for the bluetooth chip. Can I pick up some components from Digikey and solder them on to make it bluetooth?

I have a reflow oven if SMD soldering is necessary.

Thanks for all of your contributions to the community.  I've been enjoying my AEK ALPS64 for a year now and I look forward to this enhanced HHKB.

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #576 on: Sun, 20 August 2017, 23:23:37 »
Yes, normally type B port would be best, just not sure there is room.  Know a type A port would fit, since the original controller had a pair there previously.

Goal would be to have a more robust port than USB mini, for connecting the HHKB to the PC.

Ah, it makes sense. Yes, you can uses the breakout pins if mini USB receptacle happens to be broken for some reason.
I believe Hirose receptacle my controller uses is reliable and durable enough for normal uses. I'll offer repair or replacement service at reasonable cost when the connector is messed.
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline hasu

  • Thread Starter
  • Posts: 2450
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #577 on: Sun, 20 August 2017, 23:32:24 »
Hasu,

I have an already-modified HHKB that has the programmable controller but it doesn't have the bluetooth components on it. From what I've seen, it looks like the footprint is there for the bluetooth chip. Can I pick up some components from Digikey and solder them on to make it bluetooth?

I have a reflow oven if SMD soldering is necessary.

Thanks for all of your contributions to the community.  I've been enjoying my AEK ALPS64 for a year now and I look forward to this enhanced HHKB.

Sure, you can. It is Microchip(which merged Roving Networks some ago) RN42-I/RM. And  you can find parmeter of other componets easily in schematic.
https://octopart.com/rn42-i%2Frm630-microchip-70466722

https://github.com/tmk/HHKB_controller

This BOM may be old and not updated but will be still useful. Let me know if you find any incorrectness.
https://github.com/tmk/HHKB_controller/blob/master/BOM.txt
⚠ My Engrish is broken.  !!!FC980C Alt GB!!! HHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline tinyprawn

  • Posts: 73
Re: Alternative Controller for HHKB
« Reply #578 on: Mon, 21 August 2017, 11:57:46 »
Hasu,

I have an already-modified HHKB that has the programmable controller but it doesn't have the bluetooth components on it. From what I've seen, it looks like the footprint is there for the bluetooth chip. Can I pick up some components from Digikey and solder them on to make it bluetooth?

I have a reflow oven if SMD soldering is necessary.

Thanks for all of your contributions to the community.  I've been enjoying my AEK ALPS64 for a year now and I look forward to this enhanced HHKB.

Sure, you can. It is Microchip(which merged Roving Networks some ago) RN42-I/RM. And  you can find parmeter of other componets easily in schematic.
https://octopart.com/rn42-i%2Frm630-microchip-70466722

https://github.com/tmk/HHKB_controller

This BOM may be old and not updated but will be still useful. Let me know if you find any incorrectness.
https://github.com/tmk/HHKB_controller/blob/master/BOM.txt

Awesome! Thanks.