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

0 Members and 3 Guests are viewing this topic.

Offline yankez001

  • Posts: 6
Re: Alternative Controller for HHKB
« Reply #300 on: Mon, 23 March 2015, 11:43:38 »
I've been trying Seil + Karabiner for a while, but with no luck, can't make the international keys and other special keys to work, urr.
BTW, I tried it on Windows and works fine.

Offline Bucake

  • Posts: 925
  • Location: The Netherlands
Re: Alternative Controller for HHKB
« Reply #301 on: Tue, 24 March 2015, 12:18:50 »
are these available still?
IBM Model F XT // Realforce 87U 55g Type-S // HHKBP2 45g Type-S // KBT Pure Pro Cherry MX Red

Offline byker

  • Literally Canada
  • * Global Moderator
  • Posts: 3007
  • Location: West Coast - Canada
Re: Alternative Controller for HHKB
« Reply #302 on: Tue, 24 March 2015, 12:19:49 »
are these available still?


If you pm hasu, he will add you to a list of people who are waiting :)

Offline Bucake

  • Posts: 925
  • Location: The Netherlands
Re: Alternative Controller for HHKB
« Reply #303 on: Tue, 24 March 2015, 13:12:40 »
are these available still?


If you pm hasu, he will add you to a list of people who are waiting :)

sent him a PM.
thank you :D
IBM Model F XT // Realforce 87U 55g Type-S // HHKBP2 45g Type-S // KBT Pure Pro Cherry MX Red

Offline Matt3o

  • -[_]-
  • ** Robot Emeritus
  • Posts: 4329
  • Location: Italy
Re: Alternative Controller for HHKB
« Reply #304 on: Thu, 26 March 2015, 03:45:44 »
ok. got the controller and finally had time to play with it.

everything seems to be working but something strange happens. Every time I connect the keyboard the PC fans start spinning a full throttle, then they stop soon after, but they start spinning again every 10 minutes or so. Rebooting doesn't help, I have to turn the PC off and on again.

It happens only after I connect the keyboard.

Any idea?!

Offline Bromono

  • Wanabe Cicerone
  • * Destiny Supporter
  • Posts: 1180
  • Location: The Alamo
  • HHKB > Your Opinion
Re: Alternative Controller for HHKB
« Reply #305 on: Thu, 26 March 2015, 05:47:52 »
ok. got the controller and finally had time to play with it.

everything seems to be working but something strange happens. Every time I connect the keyboard the PC fans start spinning a full throttle, then they stop soon after, but they start spinning again every 10 minutes or so. Rebooting doesn't help, I have to turn the PC off and on again.

It happens only after I connect the keyboard.

Any idea?!

You where hax0red?

On a serious note, it could be a faulty driver. Try reinstalling your input drivers.

Does the controller install its own driver or are you using default windows drivers?

I don't see this controller taking a huge load from your psu so that shouldn't be an issue.


Offline Matt3o

  • -[_]-
  • ** Robot Emeritus
  • Posts: 4329
  • Location: Italy
Re: Alternative Controller for HHKB
« Reply #306 on: Thu, 26 March 2015, 06:18:22 »
I'm using default drivers. I'll try to reinstall them.

Offline Ardvan

  • Posts: 3
  • Location: Switzerland
  • Keep it simple, stupid
Re: Alternative Controller for HHKB
« Reply #307 on: Mon, 30 March 2015, 09:59:40 »
Hi everyone

I own two HHKB pro (white & black) for about 10 years now and am still happy with them. Unfortunately I couldn't use them as well as I wanted because of the different hardware I work on and languages I have to write.

So a two weeks ago I decided to clean and mod both HHKB's. For the first one I even added a USB-Hub (like the pro 2 has). The second one will be without it.

This text is now written with my first modified HHKB with a Teensy++ and an LED-Bar. I even got the shift-lock LED running without any troubles.

Thanks Hasu, for your great work. :thumb:



Here a glimpse inside. I know I can't press the reset button though the switch opening, because I had to turn the teensy because the usb cable for it was to thick. But even turning it around didn't help much. Anyway with the magic key combination a reset is always possible.

HHK HHK

Offline byker

  • Literally Canada
  • * Global Moderator
  • Posts: 3007
  • Location: West Coast - Canada
Re: Alternative Controller for HHKB
« Reply #308 on: Mon, 30 March 2015, 11:49:21 »
Hi everyone

I own two HHKB pro (white & black) for about 10 years now and am still happy with them. Unfortunately I couldn't use them as well as I wanted because of the different hardware I work on and languages I have to write.

So a two weeks ago I decided to clean and mod both HHKB's. For the first one I even added a USB-Hub (like the pro 2 has). The second one will be without it.

This text is now written with my first modified HHKB with a Teensy++ and an LED-Bar. I even got the shift-lock LED running without any troubles.

Thanks Hasu, for your great work. :thumb:

Show Image


Here a glimpse inside. I know I can't press the reset button though the switch opening, because I had to turn the teensy because the usb cable for it was to thick. But even turning it around didn't help much. Anyway with the magic key combination a reset is always possible.

Show Image



Great job! I love the keyset you have on that too, looks good with the black case. That led-bar that you added looks well done too!

Offline hasu

  • Thread Starter
  • Posts: 2436
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #309 on: Mon, 30 March 2015, 13:13:13 »
Really looks nice. Thanks for the posting.
⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline ctm

  • Posts: 442
  • Location: Pittsburgh, PA
  • Hello, world!
Re: Alternative Controller for HHKB
« Reply #310 on: Mon, 06 April 2015, 21:10:19 »
Awesome! Does this firmware support fn lock?
TMK Alps64 w/ Matias Quiet Switches in KBP V60 case.
CM Storm QRF w/ Frosty Flake controller, Cherry MX Blue Switches and TMK firmware.
Infinity60 with Matias Quiet Switches w/ TMK.

Coming:
Ellipse Model F F62.

Offline hasu

  • Thread Starter
  • Posts: 2436
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #311 on: Mon, 06 April 2015, 23:49:16 »
Yes. You can toggle layer.
⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline hasu

  • Thread Starter
  • Posts: 2436
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #312 on: Mon, 13 April 2015, 02:00:34 »
Updated firmware used in Keymap Editor to the latest version and added Keymap Editor for TMK Bluetooth controller.
Try it and give feedback.

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


⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline Moralless

  • Posts: 657
  • Location: Sydney, Australia
Re: Alternative Controller for HHKB
« Reply #313 on: Mon, 13 April 2015, 02:34:14 »
Updated firmware used in Keymap Editor to the latest version and added Keymap Editor for TMK Bluetooth controller.
Try it and give feedback.

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


Show Image


Awesome Hasu! Just got my BT controller today so I'll play around with this. But I won't be able to test the BT capabilities of it for another week since I can't find a place that has them in stock.

EDIT: I really recommend following this guide after downloading the hex file from the keymap editor that hasu made. Just have to remember that when choosing the device you have to look for "ATmega32U4"
« Last Edit: Mon, 13 April 2015, 21:19:53 by Moralless »

Offline naasfu

  • The Curator
  • * Destiny Supporter
  • Posts: 3626
  • Location: California
  • dare iz a darkside
Re: Alternative Controller for HHKB
« Reply #314 on: Sat, 18 April 2015, 17:44:46 »
Just in case anyone runs into this behavior:

Today I was trying to reprogram my HHKB controller using Flip.  Flip would recognize my plugged in board and flashing would succeed, but then the HHKB would not work afterwards, even after resetting the controller using Flip or replugging the USB cable.  Seems like my controller got into a state where it was stuck in programming mode.  In Windows device list, I would see the ATMega device present, and it would not get recognized as a keyboard.

After lots of retries, I finally found that using the makefile's flip command would get the controller working again for me.

1.  Plug in USB cable
2.  Press the controller's bootloader button
3.  Wait for the ATMega device to appear in Windows device manager list
4.  "make -f Makefile.rn42 flip" (rn42 for BT version of the controller)

Not sure what happened since manually running Flip used to work for me, but I'll be using make flip from now on.
« Last Edit: Sat, 18 April 2015, 17:46:26 by naasfu »
WANTED: ClackVent things and other clacks                   post your mspaints!                 post your rubber domes!

Offline Matt3o

  • -[_]-
  • ** Robot Emeritus
  • Posts: 4329
  • Location: Italy
Re: Alternative Controller for HHKB
« Reply #315 on: Sun, 19 April 2015, 02:08:18 »
Updated firmware used in Keymap Editor to the latest version and added Keymap Editor for TMK Bluetooth controller.
Try it and give feedback.

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


Show Image


works great Hasu! You are a rockstar

Offline thefebruaryman

  • Posts: 261
  • Location: UK
  • turn it off and turn it on again
Re: Alternative Controller for HHKB
« Reply #316 on: Sun, 19 April 2015, 16:21:16 »
Updated firmware used in Keymap Editor to the latest version and added Keymap Editor for TMK Bluetooth controller.
Try it and give feedback.

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


Show Image


Awesome Hasu! Just got my BT controller today so I'll play around with this. But I won't be able to test the BT capabilities of it for another week since I can't find a place that has them in stock.

EDIT: I really recommend following this guide after downloading the hex file from the keymap editor that hasu made. Just have to remember that when choosing the device you have to look for "ATmega32U4"

The link for the guide doesn't work :(

Offline joneslee85

  • HHKB Scrub JP
  • Posts: 473
  • Location: Sydney, Australia
  • Professional Rubyist programmer!
    • Ruby Journal
Re: Alternative Controller for HHKB
« Reply #317 on: Sun, 19 April 2015, 21:50:26 »
dear Hasu

Firstly great work.

I'm wondering if you are planning to do a USB type C PCB? I'd order 2 instantly.
TOO MANY KEYBOARDS THAT I COULD NOT COUNT! BUT I AM STILL USING MY MODEL F77

Offline thefebruaryman

  • Posts: 261
  • Location: UK
  • turn it off and turn it on again
Re: Alternative Controller for HHKB
« Reply #318 on: Tue, 21 April 2015, 17:49:21 »
[ This has also been posted in the GB thread, probably the wrong place]

Hi all I am going to be getting my hands on a couple of the HAUS alt controllers in a few days and have been reading the documentation. I have found some of it confusing to find the best method for flashing the controller with a custom layout using a linux system. I have tried to write a step by step that I hope to improve on in the future and it has some big holes in it. Could you please help me fill in these holes so that I am ready to go when my controllers arrive? This is as far as I have got

--------------------------------------------------------------------------------------------------------------------------------

HAUS alt controller Step by Step linux (opensuse) for HHKB pro 2

1. Download DFU-programmer.

https://dfu-programmer.github.io/

2. Extract it into a directory. I picked with

# tar -xzf dfu-programmer-<version>.tar.gz

# /home/thomas/bin/

3. Install needed extra software. I had to install libusb-1_0-0 and lisbusb-devel. I did this using software management
in yast.

4. cd into dfu-programmer folder.

# cd dfu-programmer

# sudo ./configure

# sudo make

# sudo make install

4. Move back to /home/thomas/bin directory (your equvilant of)

# mv /home/thomas/bin

5. Git clone the software. Make sure git is installed.

# sudo git clone https://github.com/tmk/tmk_keyboard

6. Make you custom layout using keymap editor.

http://www.tmk-kbd.com/tmk_keyboard/editor/hhkb/index.html

and download the hex file

7. ......

-----------------------------------------------------------------------------------------------------------------------------

As you can see I still haven't worked out the next step correctly get the hex onto the board.
Modify message

Offline thefebruaryman

  • Posts: 261
  • Location: UK
  • turn it off and turn it on again
Re: Alternative Controller for HHKB
« Reply #319 on: Tue, 21 April 2015, 18:22:44 »
A couple of more things. When trying

# make -f Makefile

I get

-------- begin --------
sh: avr-gcc: command not found
../../rules.mk:405: recipe for target 'gccversion' failed
make: *** [gccversion] Error 127


and when running

# sudo make -f Makefile

I get

root's password:
sh: dfu-programmer: command not found

-------- begin --------
sh: avr-gcc: command not found
../../rules.mk:405: recipe for target 'gccversion' failed
make: *** [gccversion] Error 127


I am assuming I have not configured dfu-programmer correctly. A little help please.  :D

Offline hasu

  • Thread Starter
  • Posts: 2436
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #320 on: Tue, 21 April 2015, 18:48:42 »
First, install tools, you need dfu-programmer and AVR gcc. I think you can use package manager to install those tools.
https://github.com/tmk/tmk_keyboard/blob/master/doc/build.md#download-and-install

EDIT: fixed my engrish
« Last Edit: Tue, 21 April 2015, 19:03:26 by hasu »
⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline Matt3o

  • -[_]-
  • ** Robot Emeritus
  • Posts: 4329
  • Location: Italy
Re: Alternative Controller for HHKB
« Reply #321 on: Wed, 22 April 2015, 05:04:34 »
fixed that for you :P


HAUS alt controller Step by Step linux (opensuse) for HHKB pro 2

1. Download DFU-programmer.

https://dfu-programmer.github.io/

2. Extract it into a directory. I picked with

# tar -xzf dfu-programmer-<version>.tar.gz

# /home/thomas/bin/

3. Install needed extra software. I had to install libusb-1_0-0 and lisbusb-devel. I did this using software management
in yast.

4. cd into dfu-programmer folder.

# cd dfu-programmer

# sudo ./configure

# sudo make

# sudo make install

4. Move back to /home/thomas/bin directory (your equvilant of)

# mv /home/thomas/bin

5. Git clone the software. Make sure git is installed.

# sudo git clone https://github.com/tmk/tmk_keyboard

6. Make you custom layout using keymap editor.

http://www.tmk-kbd.com/tmk_keyboard/editor/hhkb/index.html

and download the hex file

7. ......


Offline thefebruaryman

  • Posts: 261
  • Location: UK
  • turn it off and turn it on again
Re: Alternative Controller for HHKB
« Reply #322 on: Wed, 22 April 2015, 17:58:32 »
Hey all. I have got a little further with getting the linux install going. But am still stuck. I have installed dfu-programmer, cross-avr-gcc and AVR LibC. However when I go to run

# make -f Makefile KEYMAP=hasu

i get this

-------- begin --------
avr-gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


mkdir -p obj_hhkb_lufa
Compiling C: keymap_hasu.c
avr-gcc -c -mmcu=atmega32u4 -gdwarf-2 -DF_CPU=16000000UL -DBOOTLOADER_SIZE=4096 -DF_USB=16000000UL -DARCH=ARCH_AVR8 -DUSB_DEVICE_ONLY -DUSE_FLASH_DESCRIPTORS -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -DFIXED_CONTROL_ENDPOINT_SIZE=8  -DFIXED_NUM_CONFIGURATIONS=1 -DPROTOCOL_LUFA -DBOOTMAGIC_ENABLE -DMOUSEKEY_ENABLE -DMOUSE_ENABLE -DEXTRAKEY_ENABLE -DCONSOLE_ENABLE -DCOMMAND_ENABLE -DNKRO_ENABLE -DVERSION=08ec8bb -Os -funsigned-char -funsigned-bitfields -ffunction-sections -fno-inline-small-functions -fpack-struct -fshort-enums -fno-strict-aliasing -Wall -Wstrict-prototypes -Wa,-adhlns=obj_hhkb_lufa/keymap_hasu.lst -I. -I../.. -I../../protocol/lufa -I../../protocol/lufa/LUFA-120730 -I../../common -std=gnu99 -include config.h -MMD -MP -MF .dep/obj_hhkb_lufa_keymap_hasu.o.d  keymap_hasu.c -o obj_hhkb_lufa/keymap_hasu.o
In file included from keymap_common.h:20:0,
                 from keymap_hasu.c:4:
/opt/cross/avr/lib/gcc/avr/4.8.3/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
 # include_next <stdint.h>
                          ^
compilation terminated.
../../rules.mk:546: recipe for target 'obj_hhkb_lufa/keymap_hasu.o' failed
make: *** [obj_hhkb_lufa/keymap_hasu.o] Error 1


Any ideas?

Offline hasu

  • Thread Starter
  • Posts: 2436
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #323 on: Wed, 22 April 2015, 19:33:02 »
I didn't know this.
Quote
On AVR, the configure option --with-avrlibc supported since GCC 4.7.2 is turned on per default for all non-RTEMS configurations. This option arranges for a better integration of AVR Libc with avr-gcc. For technical details, see PR54461. To turn off the option in non-RTEMS configurations, use --with-avrlibc=no. If the compiler is configured for RTEMS, the option is always turned off.
https://gcc.gnu.org/gcc-4.8/changes.html

I think avr libc may conflict with newer avr gcc, remove your avr libc.
⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline thefebruaryman

  • Posts: 261
  • Location: UK
  • turn it off and turn it on again
Re: Alternative Controller for HHKB
« Reply #324 on: Thu, 23 April 2015, 17:08:26 »
I didn't know this.
Quote
On AVR, the configure option --with-avrlibc supported since GCC 4.7.2 is turned on per default for all non-RTEMS configurations. This option arranges for a better integration of AVR Libc with avr-gcc. For technical details, see PR54461. To turn off the option in non-RTEMS configurations, use --with-avrlibc=no. If the compiler is configured for RTEMS, the option is always turned off.
https://gcc.gnu.org/gcc-4.8/changes.html

I think avr libc may conflict with newer avr gcc, remove your avr libc.

Have tried removing it and got the same error. Going to use my windows box for the time being untill I get it sorted out. Have installed easydfu so that should allow me to flash the chip with the hex created on the online editor.
« Last Edit: Thu, 23 April 2015, 17:50:52 by thefebruaryman »

Offline jackiecanev2

  • Posts: 72
  • Location: US
Re: Alternative Controller for HHKB
« Reply #325 on: Fri, 24 April 2015, 00:47:29 »
Updated firmware used in Keymap Editor to the latest version and added Keymap Editor for TMK Bluetooth controller.
Try it and give feedback.

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


Show Image


Successfully flashed my own edited compiled RRkeymap.h .rn42, and thought I'd give the layout editor a try for kicks. I couldn't get the hex to flash for the life of me, either using the CLI or flip GUI (assuming less familiar users might opt for the layout editor + flip gui combo.) Not sure if I did something wrong trying to use the generated hex, but I was able to reflash my recompiled and previously working firmware and layout.... so, no harm no foul. However, I couldn't personally get any combination of the layout editor hex to flash properly...
| HHKB2 | Viper | 356.2 | Ducati | pitties | scalpels |

Offline thefebruaryman

  • Posts: 261
  • Location: UK
  • turn it off and turn it on again
Re: Alternative Controller for HHKB
« Reply #326 on: Fri, 24 April 2015, 02:31:41 »
Can someone tell me what linux os they are using and what version of the tools they are using to build and flash the controller?


Offline Smasher816

  • HHKB Master
  • Posts: 581
  • Location: return STATE_MISSOURI;
Re: Alternative Controller for HHKB
« Reply #327 on: Sat, 25 April 2015, 03:35:01 »
Arch Linux. Newest packages.

cmake 3.2.1-1
make 4.1-1
avr-binutils 2.25-2
avr-gcc 4.9.2-2
avr-libc 1.8.1-2
arm-none-eabi-binutils 2.25-2
arm-none-eabi-gcc 4.9.2-5
arm-none-eabi-newlib 2.2.0-2
teensy_loader_cli 2.1-1
dfu-util 0.8-1

I haven't built tmk recently but stuff like the infinity project work fine. I'v never had any issues.

Offline thefebruaryman

  • Posts: 261
  • Location: UK
  • turn it off and turn it on again
Re: Alternative Controller for HHKB
« Reply #328 on: Sat, 25 April 2015, 03:49:50 »
Arch Linux. Newest packages.

cmake 3.2.1-1
make 4.1-1
avr-binutils 2.25-2
avr-gcc 4.9.2-2
avr-libc 1.8.1-2
arm-none-eabi-binutils 2.25-2
arm-none-eabi-gcc 4.9.2-5
arm-none-eabi-newlib 2.2.0-2
teensy_loader_cli 2.1-1
dfu-util 0.8-1

I haven't built tmk recently but stuff like the infinity project work fine. I'v never had any issues.

Many thanks it all now seems to be up and working and making hex. Fingers crossed my two controls and second hhkb should get here next week and I can start building.
Do we have a place where people can post their layout and hex for sharing?

Online Joey Quinn

  • Posts: 4614
  • Location: Houghton
  • "..."
Re: Alternative Controller for HHKB
« Reply #329 on: Mon, 27 April 2015, 19:27:49 »
I finally programmed mine, there are so many layers!
People in the 1980s, in general, were clearly just better than we are now in every measurable way.

The dumber the reason the more it must be done

Online Joey Quinn

  • Posts: 4614
  • Location: Houghton
  • "..."
Re: Alternative Controller for HHKB
« Reply #330 on: Tue, 28 April 2015, 00:58:12 »
Playing with layouts is too damn fun! I love the mouse buttons.

Has anyone gotten caps lock to work on OSX? I don't use it much but I'd like to have access to in in a function layer.
People in the 1980s, in general, were clearly just better than we are now in every measurable way.

The dumber the reason the more it must be done

Offline thefebruaryman

  • Posts: 261
  • Location: UK
  • turn it off and turn it on again
Re: Alternative Controller for HHKB
« Reply #331 on: Tue, 28 April 2015, 02:04:37 »
I finally programmed mine, there are so many layers!

Spent most of my evening doing the same though still using the editor and not the .c and .h files yet. I didn't bother putting the caps lock on as have so little use for it.
Did you find that if you forgot to put the key as transparent for that above the the used function key you get stuck on that layer as I did  :rolleyes:

Online Joey Quinn

  • Posts: 4614
  • Location: Houghton
  • "..."
Re: Alternative Controller for HHKB
« Reply #332 on: Tue, 28 April 2015, 02:12:46 »
I finally programmed mine, there are so many layers!

Spent most of my evening doing the same though still using the editor and not the .c and .h files yet. I didn't bother putting the caps lock on as have so little use for it.
Did you find that if you forgot to put the key as transparent for that above the the used function key you get stuck on that layer as I did  :rolleyes:
I accidentally trapped myself in an empty layer for a bit.
People in the 1980s, in general, were clearly just better than we are now in every measurable way.

The dumber the reason the more it must be done

Offline thefebruaryman

  • Posts: 261
  • Location: UK
  • turn it off and turn it on again
Re: Alternative Controller for HHKB
« Reply #333 on: Tue, 28 April 2015, 02:15:54 »
I finally programmed mine, there are so many layers!

Spent most of my evening doing the same though still using the editor and not the .c and .h files yet. I didn't bother putting the caps lock on as have so little use for it.
Did you find that if you forgot to put the key as transparent for that above the the used function key you get stuck on that layer as I did  :rolleyes:
I accidentally trapped myself in an empty layer for a bit.

On my ducky zero I got a key that causes a right click action on the word my cursor is over, its really useful for a poor speller like myself. Any ideas on how to get it on the alt controller?

Online Joey Quinn

  • Posts: 4614
  • Location: Houghton
  • "..."
Re: Alternative Controller for HHKB
« Reply #334 on: Tue, 28 April 2015, 02:18:52 »
More
I finally programmed mine, there are so many layers!

Spent most of my evening doing the same though still using the editor and not the .c and .h files yet. I didn't bother putting the caps lock on as have so little use for it.
Did you find that if you forgot to put the key as transparent for that above the the used function key you get stuck on that layer as I did  :rolleyes:
I accidentally trapped myself in an empty layer for a bit.

On my ducky zero I got a key that causes a right click action on the word my cursor is over, its really useful for a poor speller like myself. Any ideas on how to get it on the alt controller?


Left and right click are built into the configurator. My third layer is all mouse actions. 
People in the 1980s, in general, were clearly just better than we are now in every measurable way.

The dumber the reason the more it must be done

Offline hasu

  • Thread Starter
  • Posts: 2436
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #335 on: Tue, 28 April 2015, 02:55:39 »
Try disabling NKRO by pressing both shift and n key. Not sure if NKRO works on Mac OSX after recent updates.

Someone is also having weird problem on Mac with TMK firmware.
⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Online Joey Quinn

  • Posts: 4614
  • Location: Houghton
  • "..."
Re: Alternative Controller for HHKB
« Reply #336 on: Tue, 28 April 2015, 03:07:58 »
Thanks, I'll give it a shot tomorrow.
People in the 1980s, in general, were clearly just better than we are now in every measurable way.

The dumber the reason the more it must be done

Offline MJ45

  • HHKB Pro
  • Posts: 584
  • Location: Chicagoland
Re: Alternative Controller for HHKB
« Reply #337 on: Tue, 28 April 2015, 04:45:38 »
Try disabling NKRO by pressing both shift and n key. Not sure if NKRO works on Mac OSX after recent updates.

Someone is also having weird problem on Mac with TMK firmware.
I am using Mac OSX (10.10.3 Yosemite) without any issues with NKRO active. Caps Lock works as well but I rarely use it.
« Last Edit: Tue, 28 April 2015, 04:48:23 by MJ45 »

Offline joric

  • Posts: 99
Re: Alternative Controller for HHKB
« Reply #338 on: Sat, 16 May 2015, 17:13:20 »
Hasu, why bluetooth controller eats so much power (battery lasts hours, not days)? Is there a way to improve it somehow?

Offline hasu

  • Thread Starter
  • Posts: 2436
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #339 on: Sat, 16 May 2015, 18:49:43 »
joric,
RN-42 is very easy to make a keyboard without hassle and deep knowledge of Bluetooth while it doesn'tt offer much methods to controll power. See datasheet, you can find some options related to power control and try them. Of course I already tried them all and I couldn't find useful options to improve battery life much.

Other modules may have better power control but I didn't find a module with easy solution for keyboard like RN-42. With using HCI you will be able to control a module power consumption better but you need more hassle and knowledge.
⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Online alienman82

  • * Elevated Elder
  • Posts: 3820
  • G80-5000
Re: Alternative Controller for HHKB
« Reply #340 on: Wed, 20 May 2015, 16:47:09 »
.
« Last Edit: Sun, 29 January 2017, 20:15:03 by alienman82 »

Online alienman82

  • * Elevated Elder
  • Posts: 3820
  • G80-5000
Re: Alternative Controller for HHKB
« Reply #341 on: Wed, 20 May 2015, 20:15:09 »
.
« Last Edit: Sun, 29 January 2017, 20:15:22 by alienman82 »

Offline hasu

  • Thread Starter
  • Posts: 2436
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #342 on: Wed, 20 May 2015, 21:19:31 »
Thanks for your posting!
Really looks nice.

hat is exactly what I've wanted to do but been lazy to learn CAD and 3D printing :p
⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Online alienman82

  • * Elevated Elder
  • Posts: 3820
  • G80-5000
Re: Alternative Controller for HHKB
« Reply #343 on: Thu, 21 May 2015, 07:33:10 »
.
« Last Edit: Sun, 29 January 2017, 20:15:31 by alienman82 »

Offline thefebruaryman

  • Posts: 261
  • Location: UK
  • turn it off and turn it on again
Re: Alternative Controller for HHKB
« Reply #344 on: Thu, 21 May 2015, 15:47:34 »
Here is the .stl file:
https://www.dropbox.com/s/v6vtinzjoh5y06u/HHKBusbcover.stl?dl=0

I am kindle asking my brother in law to band a few of these through his 3d printer at work. Will let you know the results. Thanks for the file.

 :thumb: :thumb: :thumb:

Offline joric

  • Posts: 99
Re: Alternative Controller for HHKB
« Reply #345 on: Fri, 22 May 2015, 04:57:11 »
joric,
RN-42 is very easy to make a keyboard without hassle and deep knowledge of Bluetooth while it doesn'tt offer much methods to controll power. See datasheet, you can find some options related to power control and try them. Of course I already tried them all and I couldn't find useful options to improve battery life much.

Other modules may have better power control but I didn't find a module with easy solution for keyboard like RN-42. With using HCI you will be able to control a module power consumption better but you need more hassle and knowledge.

I think the matter is not the bluetooth module it's the hhkb capacitive electronics (wake up still needs a fully powered capacitive circuit). According to specs it alone draws 100 mA (probably about 80 mA without usb hubs) at 5v (doesn't even function at 3.3v, unfortunately) so a 2000 mAh battery will last only 25 hours, tops. Looks like the only way is to redesign the main board, maybe even place the whole controller there, but it's not very easy. It just wasn't designed as a low voltage keyboard. As for RN-42 it draws only 12 mA in the idle mode and 26 uA (!) in the deep sleep mode. Maybe it's possible to implement wake up using some kind of piezo vibration sensor, that could actually be the solution. E.g. this one costs only $2.95: https://www.sparkfun.com/products/9196. Or maybe it's possible to power the main board using short impulses (1/10 s.) in the sleep mode, I don't have much experience with that.


Also there's some tips about arduino/atmega battery operation (http://www.mysensors.org/build/battery):

Use the 3.3V version Arduino Pro Mini with the lower CPU clock speed (8MHz)
Sleep whenever possible by powering down the Arduino and radio. The sensor node can periodically wake up by either triggering a timer interrupt or by an attached sensor registering a reading on one of the Arduino interrupt enabled io-pins. Most of the MySensors example sketches implement sleep mode.
When powered down, the CPU, DS18B20 temp sensor and radio consume (very roughly) 120 uA - which is similar to the self discharge rate of a battery.
Disconnect the Arduino's power indicator LED by cutting the track between the LED and the resistor in series. Saves about 1.5 mA  >
Disconnect the 3.3 VDC regulator because it is not needed. Cut the Vout pin with a sharp fine wire cutter. See images to the right on how to locate regulator. Saves about 220 uA.
Power the device with two AA batteries connected in series to the PCB. You can power 5 VDC sensors using an ultra low power step up converter (see the Buying Guide below). Power regulators will reduce the battery life due constant power consumption.

And... I don't know really how much an average  keyboard sleeps when it's in use, probably almost never so all that sleep/wake thing might be worthless.
« Last Edit: Fri, 22 May 2015, 06:54:56 by joric »

Offline hasu

  • Thread Starter
  • Posts: 2436
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #346 on: Fri, 22 May 2015, 18:20:09 »
Pro2 switch board itself consumes around 13mA(overall 140mA with USB Hub). And Topre capacitive switch scan is not fast so you can't cut power so long time, compared to normal passive mechanical switches. My implementation cuts power for 2/3 time of scan cyle.

Using prescaler(/2) you can 8MHz(16/2) frequency even with 16MHz crystal, I found it has same result as 8MHz crystal does in terms of power saving. Unfortunately UART doesn't work at 115200bps at 8MHz you need to change baud rate of the module or use software serial. Mine uses still 16MHz due to this.
https://www.pjrc.com/teensy/low_power.html
⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt

Offline joric

  • Posts: 99
Re: Alternative Controller for HHKB
« Reply #347 on: Mon, 25 May 2015, 06:11:45 »
Found a mod that uses a cheap 4.0 bluetooth module with a custom HID firmware https://flashandrc.wordpress.com/2014/07/27/bluetooth-hid-keyboard-mouse-bridge/ (the blog also mentions turning an ordinary hc-06 into an exact copy of RN-42-HID here https://flashandrc.wordpress.com/2014/10/04/hid-firmware-on-hc-06-bluetooth-modules/).
« Last Edit: Fri, 29 May 2015, 13:23:50 by joric »

Online alienman82

  • * Elevated Elder
  • Posts: 3820
  • G80-5000
Re: Alternative Controller for HHKB
« Reply #348 on: Wed, 27 May 2015, 21:43:58 »
.
« Last Edit: Sun, 29 January 2017, 20:17:05 by alienman82 »

Offline hasu

  • Thread Starter
  • Posts: 2436
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Alternative Controller for HHKB
« Reply #349 on: Sat, 30 May 2015, 06:03:03 »
Finally desgined and ordered PCB for my HHKB *Pro*!
I hope this works from the begining.

⚠ My Engrish is broken.  TMK firmwareHHKB Alt  ⌨ConvertersAlps64FC660C Alt