geekhack

geekhack Projects => Making Stuff Together! => DIY Discussions ARCHIVE => Topic started by: hasu on Wed, 10 August 2011, 09:03:54

Title: HHKB pro BT - Bluetooth mod
Post by: hasu on Wed, 10 August 2011, 09:03:54
No wire! Best fit for RMS style. It is a keyboard for nomad hackers!






Source code:
Code for BT has merged my keyboard firmware now.
You can access the code here: https://github.com/tmk/tmk_keyboard

Building firmware:
$ cd hhkb
$ make -f Makefile.iwrap
and upload(if you have a proper bootloader)
$ make -f Makefile.iwrap program


Power Supply: Battery(3.7V/310mAh), charger(LTC4054-4.2), and step-up DC-DC for 5V.
[ATTACH=CONFIG]23776[/ATTACH]

Controller: ATMega168P(5V)
3.3V regulator and 3.3V/5V converter for Bluetooth module.
[ATTACH=CONFIG]23778[/ATTACH]

Bluetooth Module: Bluegiga WT12(3.3V)
Power switch and LEDs.
[ATTACH=CONFIG]23777[/ATTACH]

Back: Power switch and LEDs on left window, header pins of UART and reset switch on right window.
[ATTACH=CONFIG]23787[/ATTACH]

Overall,
[ATTACH=CONFIG]23779[/ATTACH]

Circuit
[ATTACH=CONFIG]27857[/ATTACH]
2011/10/04 fixed 5V-3.3V level shift
Title: HHKB pro BT - Bluetooth mod
Post by: RiGS on Wed, 10 August 2011, 09:31:04
Very nice. I will add this to the Wiki.
Title: HHKB pro BT - Bluetooth mod
Post by: WasabiJ on Wed, 10 August 2011, 11:02:52
You must post instructions!

:D
Title: HHKB pro BT - Bluetooth mod
Post by: heedpantsnow on Fri, 19 August 2011, 14:21:11
Quote from: WasabiJ;396443
You must post instructions!

:D

+1000
Title: HHKB pro BT - Bluetooth mod
Post by: itlnstln on Tue, 23 August 2011, 10:00:46
Well done.  A perfect mod for the HHKB.  Can you still use the USB port just in cast Bluetooth in unavailable?
Title: HHKB pro BT - Bluetooth mod
Post by: csm725 on Tue, 23 August 2011, 12:18:53
Impossible.
Title: HHKB pro BT - Bluetooth mod
Post by: keyboardlover on Tue, 23 August 2011, 13:23:40
Quote from: csm725;403924
Impossible.

Who are you?
Title: HHKB pro BT - Bluetooth mod
Post by: keyboardlover on Tue, 23 August 2011, 13:32:26
Oh an OCNer. No wonder.
Title: HHKB pro BT - Bluetooth mod
Post by: keyboardlover on Tue, 23 August 2011, 13:34:56
Nope. I also haven't posted.

Kinda boring.
Title: HHKB pro BT - Bluetooth mod
Post by: hasu on Tue, 23 August 2011, 17:40:28
Quote from: itlnstln;403825
Well done.  A perfect mod for the HHKB.  Can you still use the USB port just in cast Bluetooth in unavailable?


Not yet. It's just what I'm planning to implement.
Now USB port is used only to charge battery and program controller.


If you are interested in source codes you can look into them now.
I pushed codes to github from my private branch. Note that it's still under development and not ready to distribute.
This branch(iwrap) may include codes not compatible for GPL, Please don't distribute them to others.
You can find them here: https://github.com/tmk/tmk_keyboard/tree/iwrap

I'll post description of hardware and a circuit diagram sometime.


I have a lot to do:
-battery life(only several hour with 310mAh)
-LED indicator
-media key(consumer page) support
-Bluetooth/USB switching
-Bluetooth SPP keyboard support

and some limitations:
-mouse wheel function is not available
Title: HHKB pro BT - Bluetooth mod
Post by: bluecar5556 on Wed, 24 August 2011, 14:05:30
Some praise specifications as overlord's, but THIS is a prime example of what separates geekHACK apart from the rest.

Excellent work hasu.  There are people who hardware and some who are software inclined but you have vast knowledge in both.  Do you know of any reading material/projects/programs or anything for that matter to get someone's feet wet using programming language such as myself?  Need to bite the bullet but feel like I need a direction first if that makes sense.  At any rate, good job and keep it up!
Title: HHKB pro BT - Bluetooth mod
Post by: hasu on Tue, 06 September 2011, 02:48:03
I added handwriting circuit picture. I know, I should play with KiCAD...

USB/Bluetooth switching feature has added now. I can also use this on PC without Bluetooth or BIOS setting such like normal USB keyboard.

With some improvement its battery life  lasts 10 hour or so now. This is very short by comparison with others in the market,
though, it is not completely lame. I'm still happy with this.
I think HHKB Capacitive switch which need 5V and extra hardware is very disadvantage in current consumption.
Title: HHKB pro BT - Bluetooth mod
Post by: Arexxk on Tue, 24 January 2012, 18:23:49
Does this reroute the driver board away from the usb? Or is it possible to use either usb or bluetooth. Also without the custom bluetooth firmware, will the keyboard default to a generic keyboard layout?
Title: HHKB pro BT - Bluetooth mod
Post by: hasu on Tue, 24 January 2012, 19:05:05
It can be hooked up to USB port to use as normal USB keyboard or to just charge the battery.

Bluegiga module(with stock firmware) is unique and highly functional, it already knows bluetooth HID protocol itself and can interface to your keyboard controller with UART.
All you need is only send key events to the module with UART, so you can define keyboard layout in your keyboard controller firmware.
Title: HHKB pro BT - Bluetooth mod
Post by: isp on Tue, 24 January 2012, 19:25:26
what is rms style?

nice work btw, i have seen your other mods on youtube
Title: HHKB pro BT - Bluetooth mod
Post by: cactux on Tue, 24 January 2012, 19:30:15
Have you consider something less intrusive, like a self powered moule connected via usb?
Title: HHKB pro BT - Bluetooth mod
Post by: hasu on Tue, 24 January 2012, 20:16:13
Quote from: isp;498041
what is rms style?

nice work btw, i have seen your other mods on youtube


hehe, I meant this :-)

http://www.flickr.com/photos/lawrencelry/2540914602
(http://www.lugos.si/lugos/rms2000/pic/RMS-2000-10-13/pic00001.jpg)
Title: HHKB pro BT - Bluetooth mod
Post by: hasu on Tue, 24 January 2012, 20:34:26
Quote from: cactux;498043
Have you consider something less intrusive, like a self powered moule connected via usb?

Yeah, it is an interesting. But it will need some wire yet :)
PS/2 to Bluetooth converter will be possible with my existent firmware(and some new codes),
while USB to Bluetooth one is a bit challenging. Hosting USB keyboard with MCU is new field to me.
Title: HHKB pro BT - Bluetooth mod
Post by: cactux on Tue, 24 January 2012, 21:20:57
^ But this aproach will add portability, and also the module can be use to configure multiple layers
Title: HHKB pro BT - Bluetooth mod
Post by: Wildcard on Tue, 24 January 2012, 21:24:57
Quote from: ripster;403998
Oh, OCN has it's moments (http://www.overclock.net/keyboards/1098339-help-filco-majestouch-2-tenkeyless.html).


it's not trolling if your right.

Right?
Title: HHKB pro BT - Bluetooth mod
Post by: Arexxk on Tue, 24 January 2012, 22:14:21
Quote from: cactux;498144
^ But this aproach will add portability, and also the module can be use to configure multiple layers

This is true, but I'd hard wire it if I had a chance. It'd be WAY leet.
Title: HHKB pro BT - Bluetooth mod
Post by: o2dazone on Wed, 25 January 2012, 11:53:25
Incredible!!!
Title: HHKB pro BT - Bluetooth mod
Post by: isp on Wed, 25 January 2012, 13:43:56
oh stallman :P