Author Topic: [TMK] HHKB Alt Controller  (Read 174085 times)

0 Members and 6 Guests are viewing this topic.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #500 on: Sun, 18 March 2018, 21:22:03 »
Hi, I would like to buy a hasu bluetooth controller for my HHKB Pro2. O really don't know how this works though. I'm new in the forum.

I'm happy to answer if you have any specific question after reading the first post.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline kaesve

  • Posts: 6
Re: [TMK] HHKB Alt Controller
« Reply #501 on: Wed, 04 April 2018, 14:26:58 »
Hi Hasu,

I'm having a problem with my hhkb (jp layout) with your controller. I'm not sure what the problem is caused, but I'm hoping you could help me figure this out. Two keys on my board are 'broken'; the left windows key now acts as the left alt key, and the left alt key is unresponsive. It actually started with both keys being completely unresponsive, but the win key started triggering the alt-key after I used compressed air to clean the board. This makes me think that there's just some dirt short-circuiting something, and that it is fixable, but I'm not sure where the problem would be. I took the case apart and removed the domes/springs for those keys but i did not see anything strange. Do you have an idea on how I can troubleshoot this issue?

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #502 on: Wed, 04 April 2018, 14:45:31 »
It sounds like boot magic functions like swap alt/win and win lock.

I like to know how you got firmware or what the version of it?
Can you get version info on hid_listen with pressing both shifts and v key?

Sent from my WAS-LX2J using Tapatalk

TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline kaesve

  • Posts: 6
Re: [TMK] HHKB Alt Controller
« Reply #503 on: Wed, 04 April 2018, 15:18:58 »
Thank you so much for your quick response. My firmware is tmk with a custom keymap. device info:

----- Version -----
DESC: t.m.k. keyboard firmware for HHKB mod
VID: 0xFEED(t.m.k.) PID: 0xCAFE(HHKB mod) VER: 0x0104
BUILD: 10a6b2c-dirty (18:37:16 Nov 27 2015)
OPTIONS: LUFA BOOTMAGIC MOUSEKEY EXTRAKEY CONSOLE COMMAND NKRO 4096
GCC: 4.8.1 AVR-LIBC: 1.8.0svn AVR_ARCH: avr5

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #504 on: Wed, 04 April 2018, 20:12:32 »
Thank you so much for your quick response. My firmware is tmk with a custom keymap. device info:

----- Version -----
DESC: t.m.k. keyboard firmware for HHKB mod
VID: 0xFEED(t.m.k.) PID: 0xCAFE(HHKB mod) VER: 0x0104
BUILD: 10a6b2c-dirty (18:37:16 Nov 27 2015)
OPTIONS: LUFA BOOTMAGIC MOUSEKEY EXTRAKEY CONSOLE COMMAND NKRO 4096
GCC: 4.8.1 AVR-LIBC: 1.8.0svn AVR_ARCH: avr5

I beleive you accidentally held space bar and some keys down accidentally when plugin the keyboard.
Bootmagic settings are stored in EEPROM and you have to remove it by bootmagic command.

Hold space and backspace and plugin in to remove the settings.

Check this entry for detail.
https://github.com/tmk/tmk_keyboard/#boot-magic-configuration---virtual-dip-switch

After that optionally you can update the controller with the latest firmware downloaded from keymap editor. Current firmware disables the bootmagic and users never go wrong like this.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline the_fascist

  • Posts: 13
Re: [TMK] HHKB Alt Controller
« Reply #505 on: Thu, 05 April 2018, 19:02:32 »
question about the ACTION_LAYER_TAP_KEY function.  Is it possible to shorten the time you need to press the button down?  It is a bit too slow for me.

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #506 on: Thu, 05 April 2018, 20:00:19 »
question about the ACTION_LAYER_TAP_KEY function.  Is it possible to shorten the time you need to press the button down?  It is a bit too slow for me.


Currently 'TAPPING_TERM' is only parameter for tapping key. You will have to fix tmk_core code if this doesn't work for you.
https://github.com/tmk/tmk_keyboard/blob/51326077b085ad5c82cb0ea7c63405364c052cd5/tmk_core/common/action_tapping.h#L22-L25


EDIT: you can configure in config.h
https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/config.h#L43-L44

EDIT2: Added FAQ entry for this now.
https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#tap-keydual-role-key-doesnt-work-for-me
« Last Edit: Thu, 05 April 2018, 20:19:48 by hasu »
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline LynnDeisky

  • Posts: 5
  • Location: KR
Re: [TMK] HHKB Alt Controller
« Reply #507 on: Thu, 24 May 2018, 03:06:08 »
Nice work.

Would you consider the controller for HHKB BT?

Because I love BTís case design but it does not support USB connection to type and keymapping.

Thanks

Offline menuhin

  • Posts: 834
  • Location: Germany
Re: [TMK] HHKB Alt Controller
« Reply #508 on: Thu, 24 May 2018, 04:53:34 »
Updated firmware for Bluetooth controller.
With this new firmware it does NKRO in USB mode by default now, still 6KRO in Bluetooth.
No other improvents at all. If you have no problem with 6KRO you don't have to update. This update is not for USB controller.

The firmware is available from Keymap Editor or github repo.
http://www.tmk-kbd.com/tmk_keyboard/editor/
https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hhkb

Check this commit for detail.
https://github.com/tmk/tmk_keyboard/commit/f2761c9565e76706853a4a0b148c8e93369e49e5

Thanks

A bit late to get to the good news.
Thanks for working on that Hasu!
Wishlist: 1) hotswap boards for MX and for Alps; 2) Alps64; 3) Universal Teensy convertor; 3) Quack & Split Planck; 4) Solid cases like TX
More
Wishful-list: 1) HASU BT battery lasts a year; 2) ABS Shine-proof/PBT DoubleShot spherical; 3) We order from keyboard-layout-editor.com; 4) Endgame
IBM M13 black
IBM SpaceSaver II
IBM KPD8923 Trackpoint
Choc mini Gateron black
PLUM 84 'Topre-clone' 55g Korean dome
HHKB Pro 2 stock
[typing slowly at ~80WPM, in love with Emacs, and growing in Lisp]

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #509 on: Thu, 24 May 2018, 17:26:16 »
Nice work.

Would you consider the controller for HHKB BT?

Because I love BTís case design but it does not support USB connection to type and keymapping.

Thanks

I looked into that and decided not to. I have no plan on PD-KB600 at this point, at least.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline locker47

  • Posts: 2
Re: [TMK] HHKB Alt Controller
« Reply #510 on: Sun, 27 May 2018, 16:41:59 »
I'm not sure if this is the correct place to post this, but is anyone interested in swapping their HHKB Pro 2 bottom casing (with openings for the USB) for one without (from HHKB JP)? I bought a BT controller and am looking for the clean solution to mount it on my JP case (no drilling).

On another note, great work hasu! Any new projects you're working on (HHKB-related or not)?

Offline kaio

  • Posts: 1
  • Location: Brisbane, Australia
Re: [TMK] HHKB Alt Controller
« Reply #511 on: Sat, 02 June 2018, 22:46:39 »
(Thank you very much, Hasu-san. Hand waving from Brisbane, Australia! Received the module and worked perfectly. I have just ordered a LiPo on eBay but it scheduled the arrival in 2.5 months which is typical for those China sellers who always sent by ships...  :()

Hi, it is not difficult to drill 3 holes and very clean. You just need to measure the drill spots precisely, and be patient drilling from the smaller tips to the ideal tip size. I did about 5-6 times for avoiding the plastic crack. Done within 10 mins:


I'm not sure if this is the correct place to post this, but is anyone interested in swapping their HHKB Pro 2 bottom casing (with openings for the USB) for one without (from HHKB JP)? I bought a BT controller and am looking for the clean solution to mount it on my JP case (no drilling).

On another note, great work hasu! Any new projects you're working on (HHKB-related or not)?
« Last Edit: Sat, 02 June 2018, 22:51:26 by kaio »

Offline locker47

  • Posts: 2
Re: [TMK] HHKB Alt Controller
« Reply #512 on: Wed, 06 June 2018, 22:21:35 »
Thanks for the tips! That looks like it was done very cleanly. I guess I'll just give it a shot and hope for the best.

Just a small note, do you have any tips on how to measure the drill spots? And also how accessible is your power switch?

(Thank you very much, Hasu-san. Hand waving from Brisbane, Australia! Received the module and worked perfectly. I have just ordered a LiPo on eBay but it scheduled the arrival in 2.5 months which is typical for those China sellers who always sent by ships...  :()

Hi, it is not difficult to drill 3 holes and very clean. You just need to measure the drill spots precisely, and be patient drilling from the smaller tips to the ideal tip size. I did about 5-6 times for avoiding the plastic crack. Done within 10 mins:

Show Image

I'm not sure if this is the correct place to post this, but is anyone interested in swapping their HHKB Pro 2 bottom casing (with openings for the USB) for one without (from HHKB JP)? I bought a BT controller and am looking for the clean solution to mount it on my JP case (no drilling).

On another note, great work hasu! Any new projects you're working on (HHKB-related or not)?

Offline the_marsbar

  • Posts: 143
Re: [TMK] Alt Controller Board for HHKB
« Reply #513 on: Tue, 19 June 2018, 12:29:22 »
Hasu BT controller should work via BT connection to iPad, and BT is a big plus for either home use or on the road. But BT has its limitations and I'm not keen on always watching out for whether this or that device is going to run out of juice.

What is unfair is that HHKP Pro 1 and HHKP JP (with their unmodified original controllers) can connect to iPads through cable without any problem; it's just HHKB Pro 2's original controller.

Please do if you have the chance and I'm also looking forward to Hasu's answer (I'm not sure if he has access to an iPad model with thunderbolt socket)

If you want USB connection to iPad you better have USB controller. Bluetooth controller draws fair amount of current for battery charging and iPad will refuse it. Charging current of Bluetooth controller can be up to 500mA. Original Pro2 draws around 120mA for its hubs, for reference.

USB Alt controller(of all variants) draws around 20mA and it should work with iPad on USB connection.

Does this mean that if the purpose is to connect the HHKB to an iPad using the camera adapter, then the USB controller is better than the BT controller?
 

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #514 on: Tue, 19 June 2018, 16:49:13 »
Hasu BT controller should work via BT connection to iPad, and BT is a big plus for either home use or on the road. But BT has its limitations and I'm not keen on always watching out for whether this or that device is going to run out of juice.

What is unfair is that HHKP Pro 1 and HHKP JP (with their unmodified original controllers) can connect to iPads through cable without any problem; it's just HHKB Pro 2's original controller.

Please do if you have the chance and I'm also looking forward to Hasu's answer (I'm not sure if he has access to an iPad model with thunderbolt socket)

If you want USB connection to iPad you better have USB controller. Bluetooth controller draws fair amount of current for battery charging and iPad will refuse it. Charging current of Bluetooth controller can be up to 500mA. Original Pro2 draws around 120mA for its hubs, for reference.

USB Alt controller(of all variants) draws around 20mA and it should work with iPad on USB connection.

Does this mean that if the purpose is to connect the HHKB to an iPad using the camera adapter, then the USB controller is better than the BT controller?

Yes, USB controller draws less current from USB port than Bluetooth controller does.
With the latest firmware setup, HHKB installed with USB Alt controller draws around 40mA  while it consumes around 50mA with Bluetooth Alt controller.

EDIT: But I don't know if this difference matters with iPad, except for power consumption. I don't have the camera adapter and iPad to test.
« Last Edit: Tue, 19 June 2018, 16:52:36 by hasu »
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline the_marsbar

  • Posts: 143
Re: [TMK] HHKB Alt Controller
« Reply #515 on: Fri, 22 June 2018, 02:30:46 »
Thanks for your reply hasu.

I can see that the response time of the HHKB is listed at ~16 ms. Will installing a new controller not affect this (positively or negatively)? Or is the delay due to the sensing circuit?
 

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #516 on: Fri, 22 June 2018, 03:55:37 »
Thanks for your reply hasu.

I can see that the response time of the HHKB is listed at ~16 ms. Will installing a new controller not affect this (positively or negatively)? Or is the delay due to the sensing circuit?

It is scan rate, that is, original HHKB scans all keys on its matrix per 16ms.
This Alt controller emulates this behaviour basically by default. You will be able to configure firmware to scan upto twice faster safely, but I don't know if it works properly at further faster rate.
Yes, Topre capacitive sensing chip defines upper limit of this rate.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline the_marsbar

  • Posts: 143
Re: [TMK] HHKB Alt Controller
« Reply #517 on: Fri, 22 June 2018, 12:01:27 »
Great, thanks for that. Iíll do some experiment when I receive it. 16 ms is not that fast in terms of analog to digital conversion.
 

Offline sabotai

  • Posts: 1
Re: [TMK] HHKB Alt Controller
« Reply #518 on: Wed, 27 June 2018, 10:31:58 »
Hi everyone, I need some help. I just bought a BT controller and it seems to not register keypresses in bluetooth mode.

I connect to my PC just fine, solid red LED(right)
Keypress register when connected via USB

info that might help:
got my hex file from TMK Keymad Editor
flash my hex with qmk_toolbox

Thanks in advance!

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #519 on: Wed, 27 June 2018, 18:07:32 »
Hi everyone, I need some help. I just bought a BT controller and it seems to not register keypresses in bluetooth mode.

I connect to my PC just fine, solid red LED(right)
Keypress register when connected via USB

info that might help:
got my hex file from TMK Keymad Editor
flash my hex with qmk_toolbox

Thanks in advance!

It looks to me like you are using firmware for USB controller for some reason. Try getting firmware from here and flash it again.
http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?hhkb_rn42
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline the_marsbar

  • Posts: 143
Re: [TMK] HHKB Alt Controller
« Reply #520 on: Tue, 03 July 2018, 14:26:31 »
Within approx. one hour I managed to flash QMK firmware with an advertised power draw of 50 mA, and the keyboard now works with and iPad, iPhone etc.

Nice work :) I may consider adding a battery later on, but for now I don't need it.

One small issue though; there's a high-pitched noise when the controller is connected to the computer via USB. Are you aware of this, hasu?
« Last Edit: Wed, 04 July 2018, 04:17:35 by the_marsbar »
 

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #521 on: Thu, 05 July 2018, 19:40:39 »
Within approx. one hour I managed to flash QMK firmware with an advertised power draw of 50 mA, and the keyboard now works with and iPad, iPhone etc.

Nice work :) I may consider adding a battery later on, but for now I don't need it.

One small issue though; there's a high-pitched noise when the controller is connected to the computer via USB. Are you aware of this, hasu?

With not-full charged battery the controller will try to draw charging current around 500mA max from iPad, this may cause problem.

Yes, it is normal with the DC-DC converter setup.
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline the_marsbar

  • Posts: 143
Re: [TMK] HHKB Alt Controller
« Reply #522 on: Thu, 05 July 2018, 23:34:00 »
Wait, what? When I asked you about the power consumption you wrote the following to me
Notice that Bluetooth controller without battery consumes 50mA while USB controller consumes 40mA.
 

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #523 on: Fri, 06 July 2018, 00:08:46 »
Wait, what? When I asked you about the power consumption you wrote the following to me
Notice that Bluetooth controller without battery consumes 50mA while USB controller consumes 40mA.

Yes, it is ture but did it confuse you?
Bluetooth controller draws 50mA without battery or 500mA max with battery when charging.

TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline the_marsbar

  • Posts: 143
Re: [TMK] HHKB Alt Controller
« Reply #524 on: Fri, 06 July 2018, 01:06:56 »
Yes, it did confuse me a bit. Sorry, but just to make sure I understand you correctly then; I don't have a battery installed. I assume that means the power draw is approx. 50 mA, then?

Could you tell me where on the board to measure the power draw? +/- on the USB connection is suppose? There's a multimeter I can use in the office.

Thanks.
 

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #525 on: Fri, 06 July 2018, 01:27:52 »
Yes, it did confuse me a bit. Sorry, but just to make sure I understand you correctly then; I don't have a battery installed. I assume that means the power draw is approx. 50 mA, then?

Could you tell me where on the board to measure the power draw? +/- on the USB connection is suppose? There's a multimeter I can use in the office.

Thanks.

You are rIght, it draws 50mA when you don't install battery.

To measure current  with multimeter, you have to cut trace on the PCB or USB cable somewhere halfway.  otherwise you can use USB power meter without any hassle.
I'd recommend to get cheap USB meter from amazon or aliexpress.

TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline the_marsbar

  • Posts: 143
Re: [TMK] HHKB Alt Controller
« Reply #526 on: Fri, 06 July 2018, 01:35:42 »
Great, thanks for clearing that up, and sorry about the confusion.

I might get one of those small devices, thanks for the suggestion.
 

Offline the_marsbar

  • Posts: 143
Re: [TMK] HHKB Alt Controller
« Reply #527 on: Fri, 13 July 2018, 06:49:44 »
I'm sorry to bring this up again. This coil whine is bothering me a bit. I have sensitive ears, I'll admit that.

Would the USB controller (without wi-fi) also have this?

What about a Teensy?
 

Offline hasu

  •  Moderator
  • Thread Starter
  • Posts: 2729
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: [TMK] HHKB Alt Controller
« Reply #528 on: Fri, 13 July 2018, 06:52:42 »
I'm sorry to bring this up again. This coil whine is bothering me a bit. I have sensitive ears, I'll admit that.

Would the USB controller (without wi-fi) also have this?

What about a Teensy?

No and No. They don't have the inductor and won't irritate your ears!
TMK products:HHKB Alt  ⌨ConvertersAlps64FC660C AltFC980C Alt

Offline the_marsbar

  • Posts: 143
Re: [TMK] HHKB Alt Controller
« Reply #529 on: Fri, 13 July 2018, 07:01:35 »
Alright, thanks for that. I don't mean to offend you by any means. For sure the frequency is high enough that some people won't hear it. The same applies if you're in a noisy environment.